Skip to content

Commit

Permalink
feat: add buyable column
Browse files Browse the repository at this point in the history
  • Loading branch information
dd84ai committed Apr 1, 2024
1 parent 5627c36 commit 746bb5b
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
2 changes: 2 additions & 0 deletions darkstat/front/mines.templ
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@ templ MinesT(mines []configs_export.Mine) {
<tr>
<th style="width:200px;">Mine</th>
<th style="width:50px;">Price</th>
<th style="width:50px;">Buyable</th>
<th style="width:50px;">Ammo Price</th>
<th style="width:50px;">Hull Dmg</th>
<th style="width:50px;">Shield Dmg</th>
Expand Down Expand Up @@ -59,6 +60,7 @@ templ MinesT(mines []configs_export.Mine) {
>
<td>{ mine.Name }</td>
<td>{ strconv.Itoa(mine.Price) } </td>
<td>{ strconv.FormatBool(len(mine.Bases) > 0) }</td>
<td>{ strconv.Itoa(mine.AmmoPrice) } </td>
<td>{ strconv.Itoa(mine.HullDamage) }</td>
<td>{ strconv.Itoa(mine.ShieldDamage) }</td>
Expand Down
2 changes: 2 additions & 0 deletions darkstat/front/shields.templ
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@ templ ShieldT(shields []configs_export.Shield) {
<th style="width:50px;">Type</th>
<th style="width:50px;">Technology</th>
<th style="width:50px;">Price</th>
<th style="width:50px;">Buyable</th>
<th style="width:50px;">Capacity</th>
<th style="width:50px;">Regen Rate</th>
<th style="width:50px;">Const Power Draw</th>
Expand Down Expand Up @@ -57,6 +58,7 @@ templ ShieldT(shields []configs_export.Shield) {
<td>{ shield.Type }</td>
<td>{ shield.Technology }</td>
<td>{ strconv.Itoa(shield.Price) } </td>
<td>{ strconv.FormatBool(len(shield.Bases) > 0) }</td>
<td>{ strconv.Itoa(shield.Capacity) } </td>
<td>{ strconv.Itoa(shield.RegenerationRate) }</td>
<td>{ strconv.Itoa(shield.ConstantPowerDraw) }</td>
Expand Down

0 comments on commit 746bb5b

Please sign in to comment.