diff options
| author | Florian Fischer <florian.fischer@muhq.space> | 2023-02-02 00:13:30 +0100 |
|---|---|---|
| committer | Florian Fischer <florian.fischer@muhq.space> | 2025-01-27 16:43:46 +0100 |
| commit | 6034149d014e999b17247af75b98913e4e4c68af (patch) | |
| tree | 8a1a105b543b44307d3cbab9e0805d882448f02a /go/ui | |
| parent | d9a41e478c59e03cc5409fdc8090319ada42957c (diff) | |
| download | muhqs-game-6034149d014e999b17247af75b98913e4e4c68af.tar.gz muhqs-game-6034149d014e999b17247af75b98913e4e4c68af.zip | |
change unit attack representation and implement sword
Diffstat (limited to 'go/ui')
| -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 78199410..b4a580bf 100644 --- a/go/ui/textBox.go +++ b/go/ui/textBox.go @@ -61,7 +61,7 @@ func NewUnitInfo(x, y int, u *game.Unit) *TextBox { info = fmt.Sprintf("%s\nMovement: %s", info, u.Movement.String()) } - if u.Attack != game.INVALID_ATTACK() { + if !game.INVALID_ATTACK(u.Attack) { info = fmt.Sprintf("%s\nAttack: %s", info, u.Attack.String()) } |
