aboutsummaryrefslogtreecommitdiff
path: root/internal/game/production_engine.go
diff options
context:
space:
mode:
Diffstat (limited to 'internal/game/production_engine.go')
-rw-r--r--internal/game/production_engine.go16
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