From e8f44219976edf8cf57cbd9e964f66fe9d145a9c Mon Sep 17 00:00:00 2001 From: Florian Fischer Date: Thu, 2 Feb 2023 00:13:30 +0100 Subject: change unit attack representation and implement sword --- go/ui/textBox.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'go/ui/textBox.go') 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()) } -- cgit v1.2.3