aboutsummaryrefslogtreecommitdiff
path: root/internal/game/action_state.go
diff options
context:
space:
mode:
authorhistoria <[not public]>2026-06-25 15:40:48 -0400
committerhistoria <[not public]>2026-06-25 15:40:48 -0400
commitabd612c15799f604e671e83dc7c410ed2b44185f (patch)
tree0597ca92350de73aac2a7cf26b2f2d6595dac0cc /internal/game/action_state.go
parent2725e2927a1595c7b100d942d1f14146252adeb7 (diff)
downloadthehouseoficarus-abd612c15799f604e671e83dc7c410ed2b44185f.tar.gz
slop refactor
Diffstat (limited to 'internal/game/action_state.go')
-rw-r--r--internal/game/action_state.go98
1 files changed, 0 insertions, 98 deletions
diff --git a/internal/game/action_state.go b/internal/game/action_state.go
deleted file mode 100644
index fc4b461..0000000
--- a/internal/game/action_state.go
+++ /dev/null
@@ -1,98 +0,0 @@
-package game
-
-import (
- "thehouseoficarus/internal/action"
- "thehouseoficarus/internal/combat"
- "thehouseoficarus/internal/player"
-)
-
-func (g *Game) playerActionDisplay(p *player.Player) string {
- if cs := combat.GetCombat(p.Name); cs != nil {
- mob := g.MobStore.GetInstance(cs.MobID)
- if mob != nil {
- if mob.IsTask() {
- return "working on a " + mob.Name
- }
- return "fighting a " + mob.Name
- }
- }
-
- if p.MoveTicks > 0 {
- return "heading " + p.MoveDirection
- }
- if len(p.WalkSequence) > 0 {
- return "walking somewhere with a purpose!"
- }
-
- if ss, ok := g.safespot.Get(p.Name); ok && ss.Active {
- obj, err := g.ObjectStore.Load(ss.ObjectDefID)
- if err == nil {
- return "positioning behind a " + obj.Name
- }
- return "hiding"
- }
-
- if a := p.Action; a != nil {
- switch a.Type {
- case action.TypeGather:
- if d, ok := a.Data.(*action.GatherData); ok {
- desc := d.Verb + " a " + a.TargetName
- if d.ToolName != "" {
- desc += " with a " + d.ToolName
- }
- return desc
- }
- case action.TypeSteal:
- return "stealing from " + a.TargetName
- case action.TypeTalk:
- return "talking to " + a.TargetName
- case action.TypeUse:
- return "using a " + a.TargetName
- case action.TypeBurn:
- return "trying to start a fire"
- case action.TypeStoke:
- return "tending to a fire"
- case action.TypeSearch:
- return "digging through a " + a.TargetName
- case action.TypeIdentify:
- return "identifying scrap at " + a.TargetName
- case action.TypePlant:
- return "planting " + a.TargetName
- case action.TypeHarvest:
- return "harvesting " + a.TargetName
- case action.TypeRake:
- return "raking a " + a.TargetName
- case action.TypeWater:
- return "watering a " + a.TargetName
- case action.TypeCure:
- return "curing a " + a.TargetName
- case action.TypeObstacle:
- return "traversing across " + a.TargetName
- case action.TypeCook:
- return "cooking some " + a.TargetName
- case action.TypeSmelt:
- return "smelting some " + a.TargetName
- case action.TypeSmith:
- return "smithing some " + a.TargetName
- case action.TypeCraft:
- return "crafting some " + a.TargetName
- case action.TypeCombine:
- return "combining some " + a.TargetName
- case action.TypeMix:
- return "mixing some " + a.TargetName
- case action.TypeConstruct:
- return "constructing some " + a.TargetName
- }
- }
-
- if a := p.BackgroundAction; a != nil {
- switch a.Type {
- case action.TypeFletch:
- return "fletching " + a.TargetName
- case action.TypeClean:
- return "cleaning herbs"
- }
- }
-
- return ""
-}