From 15b7e221b799ef107dec44ecdb294026dfd3d059 Mon Sep 17 00:00:00 2001 From: historia <[not public]> Date: Wed, 24 Jun 2026 22:55:35 -0400 Subject: refactor: pulled techs out to yaml files, unified numerous combat functions, broke up game object --- internal/game/action_room.go | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'internal/game/action_room.go') diff --git a/internal/game/action_room.go b/internal/game/action_room.go index 6c886c1..86c1737 100644 --- a/internal/game/action_room.go +++ b/internal/game/action_room.go @@ -186,9 +186,7 @@ func (g *Game) isCharLive(name string, sess *net.Session) bool { // applyFlagMutations sets world and player flags, shared by on_enter steps and // exit traversal. func (g *Game) applyFlagMutations(p *player.Player, setFlags, setPlayerFlags map[string]any) { - for k, v := range setFlags { - g.WorldFlags[k] = v - } + g.Flags.SetAll(setFlags) if len(setPlayerFlags) > 0 { p.EnsureFlags() for k, v := range setPlayerFlags { -- cgit v1.2.3