Skip to content

Commit

Permalink
feat: added hp type data
Browse files Browse the repository at this point in the history
  • Loading branch information
dd84ai committed Apr 7, 2024
1 parent 8af9a4b commit 10467cc
Show file tree
Hide file tree
Showing 6 changed files with 14 additions and 2 deletions.
2 changes: 2 additions & 0 deletions darkstat/front/engines.templ
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,7 @@ templ Engines(engines []configs_export.Engine) {
<th style="width:50px;">Max Force</th>
<th style="width:100px;">Referse Fraction</th>
<th style="width:50px;">Nickname</th>
<th style="width:50px;">HpType</th>
<th style="width:100px;">Name ID</th>
<th style="width:100px;">Info ID</th>
<th style="max-width:100%;"></th>
Expand Down Expand Up @@ -64,6 +65,7 @@ templ Engines(engines []configs_export.Engine) {
<td>{ strconv.Itoa(engine.MaxForce) }</td>
<td>{ fmt.Sprintf("%.2f", engine.ReverseFraction) }</td>
<td>{ engine.Nickname } </td>
<td>{ engine.HpType } </td>
<td>{ strconv.Itoa(engine.NameID) } </td>
<td>{ strconv.Itoa(engine.InfoID) } </td>
<td
Expand Down
2 changes: 2 additions & 0 deletions darkstat/front/guns.templ
Original file line number Diff line number Diff line change
Expand Up @@ -67,6 +67,7 @@ templ GunsT(guns []configs_export.Gun, mode GunTabMode) {
<th style="width:100px;">Hit Pts</th>
<th style="width:100px;">Lootable</th>
<th style="width:100px;">Nickname</th>
<th style="width:100px;">HpType</th>
<th style="width:100px;">Name ID</th>
<th style="width:100px;">Info ID</th>
<th style="max-width:100%;"></th>
Expand Down Expand Up @@ -103,6 +104,7 @@ templ GunsT(guns []configs_export.Gun, mode GunTabMode) {
<td>{ gun.HitPts }</td>
<td>{ strconv.FormatBool(gun.Lootable) }</td>
<td>{ gun.Nickname } </td>
<td>{ gun.HpType } </td>
<td>{ strconv.Itoa(gun.IdsName) } </td>
<td>{ strconv.Itoa(gun.IdsInfo) } </td>
<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 @@ -39,6 +39,7 @@ templ ShieldT(shields []configs_export.Shield) {
<th style="width:50px;">Hit Pts</th>
<th style="width:50px;">Lootable</th>
<th style="width:50px;">Nickname</th>
<th style="width:50px;">HpType</th>
<th style="width:100px;">Name ID</th>
<th style="width:100px;">Info ID</th>
<th style="max-width:100%;"></th>
Expand Down Expand Up @@ -68,6 +69,7 @@ templ ShieldT(shields []configs_export.Shield) {
<td>{ strconv.Itoa(shield.HitPts) }</td>
<td>{ strconv.FormatBool(shield.Lootable) }</td>
<td>{ shield.Nickname } </td>
<td>{ shield.HpType } </td>
<td>{ strconv.Itoa(shield.IdsName) } </td>
<td>{ strconv.Itoa(shield.IdsInfo) } </td>
<td
Expand Down
2 changes: 1 addition & 1 deletion darkstat/front/ships.templ
Original file line number Diff line number Diff line change
Expand Up @@ -132,7 +132,7 @@ templ ShipDetailsShared(columns []string) {
<tr class="flexed-tr">
<th style="width:50px;">Ship Hardpoint</th>
for index, _ := range columns {
<th style="width:50px;">Equip { strconv.Itoa(index) }</th>
<th style="width:50px;">HpType { strconv.Itoa(index) }</th>
}
<th style="max-width:100%;"></th>
</tr>
Expand Down
2 changes: 1 addition & 1 deletion go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ go 1.21.1

require (
github.com/a-h/templ v0.2.543
github.com/darklab8/fl-configs v0.29.0
github.com/darklab8/fl-configs v0.30.2
github.com/darklab8/go-typelog v0.6.0
github.com/darklab8/go-utils v0.12.0
github.com/yosssi/gohtml v0.0.0-20201013000340-ee4748c638f4
Expand Down
6 changes: 6 additions & 0 deletions go.sum
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,12 @@ github.com/darklab8/fl-configs v0.28.0 h1:DvsMg/1H4oo+zjym2AeuSXurThW/WgyOlEKTjA
github.com/darklab8/fl-configs v0.28.0/go.mod h1:8zaCaFL21TvawP65KB9NOJ+nEpaMDQYsnoOi77RiSVY=
github.com/darklab8/fl-configs v0.29.0 h1:NEc+mzkJtATtmpM0/GJW3jxm3buaQtv0Lkmg6EoA2Sk=
github.com/darklab8/fl-configs v0.29.0/go.mod h1:8zaCaFL21TvawP65KB9NOJ+nEpaMDQYsnoOi77RiSVY=
github.com/darklab8/fl-configs v0.30.0 h1:F+lDkxy5NWomHiq0PaLEClI2yo/3Vsn+YQR4fRQoAkI=
github.com/darklab8/fl-configs v0.30.0/go.mod h1:8zaCaFL21TvawP65KB9NOJ+nEpaMDQYsnoOi77RiSVY=
github.com/darklab8/fl-configs v0.30.1 h1:n7G4UasdHqB9mO+aoHJb5nXrckrrw6avtmKcBfenLbU=
github.com/darklab8/fl-configs v0.30.1/go.mod h1:8zaCaFL21TvawP65KB9NOJ+nEpaMDQYsnoOi77RiSVY=
github.com/darklab8/fl-configs v0.30.2 h1:D6EbwOF5wlIqU7Tqh5y77qal9S3+mOo3oLtq+okCAf8=
github.com/darklab8/fl-configs v0.30.2/go.mod h1:8zaCaFL21TvawP65KB9NOJ+nEpaMDQYsnoOi77RiSVY=
github.com/darklab8/go-typelog v0.6.0 h1:Ci8imc7ScXiy5e1qMgf46NyJjrqNLPoIE1gbVe7bxl4=
github.com/darklab8/go-typelog v0.6.0/go.mod h1:AwwOf3dkp/tpevHFNbkB+PbwlDrUUgO1CVFkEnj+q5w=
github.com/darklab8/go-utils v0.12.0 h1:LxsG3yVNf9W4xyV+tHPOaZB2ewItgM/1BzOXyKFvofs=
Expand Down

0 comments on commit 10467cc

Please sign in to comment.