diff options
Diffstat (limited to 'internal/game/core_flags.go')
| -rw-r--r-- | internal/game/core_flags.go | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/internal/game/core_flags.go b/internal/game/core_flags.go index 5e1c812..c78f3c3 100644 --- a/internal/game/core_flags.go +++ b/internal/game/core_flags.go @@ -1,6 +1,9 @@ package game -import "thehouseoficarus/internal/player" +import ( + "thehouseoficarus/internal/engine" + "thehouseoficarus/internal/player" +) func getPlayerFlagInt(p *player.Player, key string) int { if p.Flags == nil { @@ -37,7 +40,7 @@ func (g *Game) setPlayerFlag(p *player.Player, key string, val any) { p.EnsureFlags() old, existed := p.Flags[key] p.Flags[key] = val - if !existed || !valuesEqual(old, val) { + if !existed || !engine.ValuesEqual(old, val) { g.firePlayerFlagTrigger(p, key, val) } } |
