aboutsummaryrefslogtreecommitdiff
path: root/go/ui
diff options
context:
space:
mode:
authorFlorian Fischer <florian.fischer@muhq.space>2023-02-02 00:13:30 +0100
committerFlorian Fischer <florian.fischer@muhq.space>2025-08-20 15:46:38 +0200
commite8f44219976edf8cf57cbd9e964f66fe9d145a9c (patch)
tree8618f3b22d94ff443227d7ebbc84014e2a786fae /go/ui
parente64e268155c4398a82245626cf36bc39f3bea6a8 (diff)
downloadmuhqs-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.go2
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())
}