From bf7c27c2cbf3eb56a0a4c5141e39b152c51614b5 Mon Sep 17 00:00:00 2001 From: historia <[not public]> Date: Wed, 1 Jul 2026 04:53:56 -0400 Subject: feat: admin gui map, item, and objects mostly complete --- internal/game/production_engine.go | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) (limited to 'internal/game/production_engine.go') 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 -- cgit v1.2.3