From abd612c15799f604e671e83dc7c410ed2b44185f Mon Sep 17 00:00:00 2001 From: historia <[not public]> Date: Thu, 25 Jun 2026 15:40:48 -0400 Subject: slop refactor --- internal/game/cmd_farm.go | 22 +++++++++++----------- 1 file changed, 11 insertions(+), 11 deletions(-) (limited to 'internal/game/cmd_farm.go') 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, }, } -- cgit v1.2.3