From c705ae942573984784ef501bf8198f61f5206ddd Mon Sep 17 00:00:00 2001 From: historia <[not public]> Date: Thu, 9 Jul 2026 05:27:10 -0400 Subject: refactor: simplify yaml, remove support for old scalar fields --- internal/game/core_flags.go | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'internal/game/core_flags.go') 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) } } -- cgit v1.2.3