Add durable recipe discovery and profession crafting
This commit is contained in:
@@ -260,7 +260,7 @@ func (w *World) consumeGathering(c *Character, id string) error {
|
||||
if len(c.View.GatheringEffects) >= 64 && !slices.ContainsFunc(c.View.GatheringEffects, func(e p.TimedGatheringEffect) bool { return e.Source == id }) {
|
||||
return errors.New("too many active gathering effects")
|
||||
}
|
||||
c.View.Inventory[id]--
|
||||
TakeStack(c, id, 1)
|
||||
w.applyGatheringEffect(c, p.TimedGatheringEffect{Source: id, Name: v.Name, ExpiresAt: float64(w.now.UnixMilli())/1000 + v.Seconds, Modifiers: protocolModifiers(v.Modifiers)})
|
||||
w.RefreshStats(c)
|
||||
c.Message = "Used " + v.Name
|
||||
|
||||
Reference in New Issue
Block a user