diff options
| author | historia <[not public]> | 2026-06-25 00:44:47 -0400 |
|---|---|---|
| committer | historia <[not public]> | 2026-06-25 00:44:47 -0400 |
| commit | 94a06fbbe682701ca4d4bd2a70cd74d8df29c932 (patch) | |
| tree | eb49fb1893e61092138164d419e863ee3fe0d1e2 /internal/game/cmd_clean.go | |
| parent | 15b7e221b799ef107dec44ecdb294026dfd3d059 (diff) | |
| download | thehouseoficarus-94a06fbbe682701ca4d4bd2a70cd74d8df29c932.tar.gz | |
refactor: replaced map[string]any with typed structs for Data
Diffstat (limited to 'internal/game/cmd_clean.go')
| -rw-r--r-- | internal/game/cmd_clean.go | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/internal/game/cmd_clean.go b/internal/game/cmd_clean.go index a40f5fc..63bea24 100644 --- a/internal/game/cmd_clean.go +++ b/internal/game/cmd_clean.go @@ -66,13 +66,12 @@ func (g *Game) doClean(sess *net.Session, input string) { p.BackgroundAction = &action.Action{ Type: "clean", TargetID: "clean_herbs", - Data: map[string]any{ - "phase": 0, - "filter": filter, + Data: &action.CleanData{ + Phase: 0, + Filter: filter, }, WaitLeft: engine.ToTicks(1), } - p.BackgroundActionState = &ActionState{Type: ActionCleaning} g.broadcastAction(sess, "%s starts cleaning herbs.", p.Name) |
