diff options
| author | historia <[not public]> | 2026-06-25 15:40:48 -0400 |
|---|---|---|
| committer | historia <[not public]> | 2026-06-25 15:40:48 -0400 |
| commit | abd612c15799f604e671e83dc7c410ed2b44185f (patch) | |
| tree | 0597ca92350de73aac2a7cf26b2f2d6595dac0cc /internal/game/cmd_farm.go | |
| parent | 2725e2927a1595c7b100d942d1f14146252adeb7 (diff) | |
| download | thehouseoficarus-abd612c15799f604e671e83dc7c410ed2b44185f.tar.gz | |
slop refactor
Diffstat (limited to 'internal/game/cmd_farm.go')
| -rw-r--r-- | internal/game/cmd_farm.go | 22 |
1 files changed, 11 insertions, 11 deletions
diff --git a/internal/game/cmd_farm.go b/internal/game/cmd_farm.go index eca0429..b601e49 100644 --- a/internal/game/cmd_farm.go +++ b/internal/game/cmd_farm.go @@ -4,7 +4,7 @@ import ( "fmt" "strings" - "thehouseoficarus/internal/action" + "thehouseoficarus/internal/behavior" "thehouseoficarus/internal/net" "thehouseoficarus/internal/player" ) @@ -134,12 +134,12 @@ func (g *Game) doPlant(sess *net.Session, input string) { p.RemoveItem(seedID, 1) - p.Action = &action.Action{ + p.Action = &behavior.Action{ Type: "plant", TargetID: seedID, TargetName: seedDef.Name, WaitLeft: 2, - Data: &action.FarmData{ + Data: &behavior.FarmData{ SeedID: seedID, Prefix: prefix, XP: float64(seedDef.FarmPlantXP), @@ -216,12 +216,12 @@ func (g *Game) doHarvest(sess *net.Session, input string) { } harvestXP := seedDef.FarmHarvestXP - p.Action = &action.Action{ + p.Action = &behavior.Action{ Type: "harvest", TargetID: prefix, TargetName: productName, WaitLeft: 3, - Data: &action.FarmData{ + Data: &behavior.FarmData{ Prefix: prefix, SeedID: seedID, Product: product, @@ -266,12 +266,12 @@ func (g *Game) doRake(sess *net.Session, input string) { patchName := patchDisplayName(prefix) - p.Action = &action.Action{ + p.Action = &behavior.Action{ Type: "rake", TargetID: prefix, TargetName: patchName, WaitLeft: 4, - Data: &action.FarmData{ + Data: &behavior.FarmData{ Prefix: prefix, }, } @@ -325,12 +325,12 @@ func (g *Game) doWater(sess *net.Session, input string) { patchName := patchDisplayName(prefix) - p.Action = &action.Action{ + p.Action = &behavior.Action{ Type: "water", TargetID: prefix, TargetName: patchName, WaitLeft: 2, - Data: &action.FarmData{ + Data: &behavior.FarmData{ Prefix: prefix, }, } @@ -368,12 +368,12 @@ func (g *Game) doCure(sess *net.Session, input string) { patchName := patchDisplayName(prefix) - p.Action = &action.Action{ + p.Action = &behavior.Action{ Type: "cure", TargetID: prefix, TargetName: patchName, WaitLeft: 2, - Data: &action.FarmData{ + Data: &behavior.FarmData{ Prefix: prefix, }, } |
