diff options
| author | Florian Fischer <florian.fischer@muhq.space> | 2023-02-08 17:50:10 +0100 |
|---|---|---|
| committer | Florian Fischer <florian.fischer@muhq.space> | 2023-02-08 17:50:10 +0100 |
| commit | 23ecef83b28e9b51187fe34032e9558cf0eb5e05 (patch) | |
| tree | c55d54dd209509e376a4965782b9161243c1fd7d /go/ui/textBox.go | |
| parent | bd558df11dbe60c0bd310b95b26bf17ba06cab35 (diff) | |
| download | muhqs-game-rework-targets.tar.gz muhqs-game-rework-targets.zip | |
intermediate commitrework-targets
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 58a3e679..80e6186c 100644 --- a/go/ui/textBox.go +++ b/go/ui/textBox.go @@ -56,7 +56,7 @@ func NewCenteringAutoTextBox(x, y int, t string) *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()) |
