diff options
| author | Florian Fischer <florian.fischer@muhq.space> | 2023-02-02 00:13:30 +0100 |
|---|---|---|
| committer | Florian Fischer <florian.fischer@muhq.space> | 2025-08-20 15:46:38 +0200 |
| commit | e8f44219976edf8cf57cbd9e964f66fe9d145a9c (patch) | |
| tree | 8618f3b22d94ff443227d7ebbc84014e2a786fae /go/ui | |
| parent | e64e268155c4398a82245626cf36bc39f3bea6a8 (diff) | |
| download | muhqs-game-e8f44219976edf8cf57cbd9e964f66fe9d145a9c.tar.gz muhqs-game-e8f44219976edf8cf57cbd9e964f66fe9d145a9c.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()) } |
