diff options
| author | historia <[not public]> | 2026-06-19 18:20:26 -0400 |
|---|---|---|
| committer | historia <[not public]> | 2026-06-19 18:20:26 -0400 |
| commit | 0ea4eec5dd2122c6704216971eb1249276297867 (patch) | |
| tree | 430fbbef04e837820f1d031c190f52ecd6112e25 /internal/game/action_default_target.go | |
| parent | 3a58125d14bb307f861b38c6c5b0a63babde7e08 (diff) | |
| download | thehouseoficarus-0ea4eec5dd2122c6704216971eb1249276297867.tar.gz | |
shop fixes, 'toggle' completely removed, movement speed increased
Diffstat (limited to 'internal/game/action_default_target.go')
| -rw-r--r-- | internal/game/action_default_target.go | 14 |
1 files changed, 2 insertions, 12 deletions
diff --git a/internal/game/action_default_target.go b/internal/game/action_default_target.go index b3825ca..2ca0bd3 100644 --- a/internal/game/action_default_target.go +++ b/internal/game/action_default_target.go @@ -30,21 +30,11 @@ func (g *Game) resolveDefaultTarget(roomID int, verb string) string { seen[st.DefID] = true objDef, err := g.ObjectStore.Load(st.DefID) - if err != nil || objDef.BehaviorID == "" { + if err != nil || !objDef.IsGatherable() { continue } - bh, err := g.BehaviorStore.Load(objDef.BehaviorID) - if err != nil || bh.Type != "gather" { - continue - } - - cfg, err := g.BehaviorStore.LoadGather(objDef.BehaviorID) - if err != nil { - continue - } - - if strings.EqualFold(cfg.Skill, skill) { + if strings.EqualFold(objDef.Gather.Skill, skill) { candidates = append(candidates, candidate{defID: st.DefID, name: objDef.Name}) } } |
