diff options
| author | Florian Fischer <florian.fischer@muhq.space> | 2023-02-02 00:13:30 +0100 |
|---|---|---|
| committer | Florian Fischer <florian.fischer@muhq.space> | 2023-02-02 00:13:30 +0100 |
| commit | 562538479916452a89fdda0bb77aa68a676b7f47 (patch) | |
| tree | 3d728812431f8875697f098b5283bc98ad8e97ad /go/ui/textBox.go | |
| parent | be9251c159c1679fa6e6ebb4914b5ace2237d491 (diff) | |
| download | muhqs-game-562538479916452a89fdda0bb77aa68a676b7f47.tar.gz muhqs-game-562538479916452a89fdda0bb77aa68a676b7f47.zip | |
change unit attack representation and implement sword
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 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()) } |
