aboutsummaryrefslogtreecommitdiff
path: root/internal/game/act_fletch.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/act_fletch.go
parentfbe5090ac3325ff8ea6989cdf4515c7f077c975b (diff)
downloadthehouseoficarus-bf7c27c2cbf3eb56a0a4c5141e39b152c51614b5.tar.gz
feat: admin gui map, item, and objects mostly complete
Diffstat (limited to 'internal/game/act_fletch.go')
-rw-r--r--internal/game/act_fletch.go12
1 files changed, 6 insertions, 6 deletions
diff --git a/internal/game/act_fletch.go b/internal/game/act_fletch.go
index ce3a525..c4dcef0 100644
--- a/internal/game/act_fletch.go
+++ b/internal/game/act_fletch.go
@@ -15,7 +15,7 @@ func (g *Game) startFletchAction(sess *net.Session, p *player.Player, def *item.
g.setPlayerFlag(p, "last_fletch", def.ID)
g.AccountStore.SaveCharacter(p)
- if def.FirstCraft().Wait <= 0 {
+ if def.FirstCraft().TicksPerCycle <= 0 {
g.doInstantFletch(sess, p, def, count)
return
}
@@ -113,10 +113,10 @@ func (g *Game) startTimedFletch(sess *net.Session, p *player.Player, def *item.I
TargetID: def.ID,
TargetName: def.Name,
Data: &behavior.FletchData{
- ItemID: def.ID,
- Phase: 0,
- Wait: craft.Wait,
- Remaining: count,
+ ItemID: def.ID,
+ Phase: 0,
+ TicksPerCycle: craft.TicksPerCycle,
+ Remaining: count,
},
WaitLeft: engine.ToTicks(1),
}
@@ -130,7 +130,7 @@ func (g *Game) advanceFletch(sess *net.Session, p *player.Player) {
}
itemID := data.ItemID
phase := data.Phase
- wait := data.Wait
+ wait := data.TicksPerCycle
remaining := data.Remaining
def := g.loadCraftItem(itemID)