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/act_fletch.go | |
| parent | fbe5090ac3325ff8ea6989cdf4515c7f077c975b (diff) | |
| download | thehouseoficarus-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.go | 12 |
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) |
