Consumable host: an effect lives exactly its Duration, not Duration plus one tick
Expiry fires when the remaining duration reaches zero (<= 0), so behaviours execute on Duration/dt ticks and not one more. AConsumableRunsForExactlyItsDurationInTicks pins it with 0.25 s ticks. Builds; verified in the next run. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
parent
afe44b09d3
commit
d519d99b1e
2 changed files with 17 additions and 1 deletions
|
|
@ -1457,7 +1457,7 @@ public abstract class Entity
|
|||
for (var i = 0; i < _activeConsumables.Count; i++)
|
||||
{
|
||||
_activeConsumables[i].Update(delta);
|
||||
if (_activeConsumables[i].RemainingDuration < 0)
|
||||
if (_activeConsumables[i].RemainingDuration <= 0)
|
||||
{
|
||||
// Cut 2 Gate 1 fix (docs/stats-and-power-cut.md): an expired consumable dropped out of this
|
||||
// list without ever telling the resolver, leaving its generation/cache/modifier entries
|
||||
|
|
|
|||
Loading…
Reference in a new issue