diff options
| author | Florian Fischer <florian.fischer@muhq.space> | 2023-02-08 17:50:10 +0100 |
|---|---|---|
| committer | Florian Fischer <florian.fischer@muhq.space> | 2025-01-27 16:43:49 +0100 |
| commit | 805cbf397589e5cb861f866713c2eb4bec9ce40b (patch) | |
| tree | 084ef7d136f33b87efe5aa02c7401bde50c9d251 /go/ui/textBox.go | |
| parent | 05de94b9d97079ca9a7b23e011516f55056472b3 (diff) | |
| download | muhqs-game-805cbf397589e5cb861f866713c2eb4bec9ce40b.tar.gz muhqs-game-805cbf397589e5cb861f866713c2eb4bec9ce40b.zip | |
intermediate commit
Diffstat (limited to 'go/ui/textBox.go')
| -rw-r--r-- | go/ui/textBox.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/go/ui/textBox.go b/go/ui/textBox.go index cc813a4e..7f1ab98c 100644 --- a/go/ui/textBox.go +++ b/go/ui/textBox.go @@ -64,7 +64,7 @@ func (tb *TextBox) Centering(centering bool) *TextBox { func NewUnitInfo(x, y int, u *game.Unit) *TextBox { info := fmt.Sprintf("%s\nDamage: %d\nHealth: %d\nUpkeep: %d", - u.String(), u.Damage(), u.Health, u.Upkeep) + u.String(), u.Damage(), u.Health, u.UpkeepCost()) if u.Movement != game.INVALID_MOVEMENT() { info = fmt.Sprintf("%s\nMovement: %s", info, u.Movement.String()) |
