aboutsummaryrefslogtreecommitdiff
path: root/internal/game/production_engine.go
diff options
context:
space:
mode:
authorhistoria <[not public]>2026-07-01 04:53:56 -0400
committerhistoria <[not public]>2026-07-01 04:53:56 -0400
commitbf7c27c2cbf3eb56a0a4c5141e39b152c51614b5 (patch)
tree5383c325fafeb34c01ea737a7070402f040fc5af /internal/game/production_engine.go
parentfbe5090ac3325ff8ea6989cdf4515c7f077c975b (diff)
downloadthehouseoficarus-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.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