()
| 299 | const cooldown = { |
| 300 | canUse, |
| 301 | useIfAble() { |
| 302 | const usable = canUse(); |
| 303 | if (usable) timeRemaining += rechargeTime; |
| 304 | return usable; |
| 305 | }, |
| 306 | mutate(options) { |
| 307 | if (options.rechargeTime) { |
| 308 | // Apply recharge time delta so change takes effect immediately. |