diff options
| author | historia <[not public]> | 2026-06-24 22:55:35 -0400 |
|---|---|---|
| committer | historia <[not public]> | 2026-06-24 22:55:35 -0400 |
| commit | 15b7e221b799ef107dec44ecdb294026dfd3d059 (patch) | |
| tree | 3748e464a77f0f082bea1567e9d6990052054961 /internal/game/action_talk.go | |
| parent | 9d4b799db4868bcab291b83599ff088763cd4ed6 (diff) | |
| download | thehouseoficarus-15b7e221b799ef107dec44ecdb294026dfd3d059.tar.gz | |
refactor: pulled techs out to yaml files, unified numerous combat functions, broke up game object
Diffstat (limited to 'internal/game/action_talk.go')
| -rw-r--r-- | internal/game/action_talk.go | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/internal/game/action_talk.go b/internal/game/action_talk.go index d57181a..560b34d 100644 --- a/internal/game/action_talk.go +++ b/internal/game/action_talk.go @@ -65,8 +65,8 @@ func (g *Game) showTalkNode(sess *net.Session, node action.TalkNode) { } g.applyNodeAction(sess, node.Action) - if g.WorldFlags["guard_hostile"] != nil { - delete(g.WorldFlags, "guard_hostile") + if v, ok := g.Flags.Get("guard_hostile"); ok && v != nil { + g.Flags.Delete("guard_hostile") p := sess.Player if p != nil && p.Action != nil && p.Action.Data["steal_guard"] == true { guardMob := g.findGuardInRoom(p.RoomID, "guard") @@ -220,7 +220,7 @@ func (g *Game) applyNodeAction(sess *net.Session, na *action.NodeAction) { } for k, v := range na.SetFlags { - g.WorldFlags[k] = v + g.Flags.Set(k, v) } for k, v := range na.SetPlayerFlags { p.EnsureFlags() |
