diff options
| author | historia <[not public]> | 2026-07-01 04:53:56 -0400 |
|---|---|---|
| committer | historia <[not public]> | 2026-07-01 04:53:56 -0400 |
| commit | bf7c27c2cbf3eb56a0a4c5141e39b152c51614b5 (patch) | |
| tree | 5383c325fafeb34c01ea737a7070402f040fc5af /internal/game/production_engine.go | |
| parent | fbe5090ac3325ff8ea6989cdf4515c7f077c975b (diff) | |
| download | thehouseoficarus-bf7c27c2cbf3eb56a0a4c5141e39b152c51614b5.tar.gz | |
feat: admin gui map, item, and objects mostly complete
Diffstat (limited to 'internal/game/production_engine.go')
| -rw-r--r-- | internal/game/production_engine.go | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/internal/game/production_engine.go b/internal/game/production_engine.go index 1d54714..2fb7968 100644 --- a/internal/game/production_engine.go +++ b/internal/game/production_engine.go @@ -95,7 +95,7 @@ func (g *Game) startProduction(sess *net.Session, p *player.Player, item *item.I outDef, _ := g.ItemStore.Load(item.ID) - wait := craft.Wait + wait := craft.TicksPerCycle if wait <= 0 { wait = 4 } @@ -110,12 +110,12 @@ func (g *Game) startProduction(sess *net.Session, p *player.Player, item *item.I TargetID: item.ID, TargetName: outputName, Data: &behavior.ProductionData{ - ItemID: item.ID, - Phase: 0, - Wait: wait, - StartMessage: startMsg, - EndMessage: endMsg, - Remaining: count, + ItemID: item.ID, + Phase: 0, + TicksPerCycle: wait, + StartMessage: startMsg, + EndMessage: endMsg, + Remaining: count, }, WaitLeft: engine.ToTicks(1), } @@ -181,7 +181,7 @@ func (g *Game) advanceProduction(sess *net.Session, p *player.Player) bool { } itemID := d.ItemID phase := d.Phase - wait := d.Wait + wait := d.TicksPerCycle startMsg := d.StartMessage endMsg := d.EndMessage remaining := d.Remaining |
