Status effects expire on their data duration; loot rolls never throw
A status effect added without an explicit duration started with no remaining turns and the countdown skipped it, so it never expired. OnTurnEnd counted down a second time, expired unlimited effects after one turn and removed expired stacks by id; it is now a pure hook. The victory screen rolls loot through LootEntry.Roll, so a loot table with MinCount > MaxCount no longer throws half-way through the battle end, and its success-path diagnostics are no longer logged as errors. Mod unit tests for the status effect lifetime.
This commit is contained in:
1 parent
72b54eb564
commit
68976523f0
5 files changed
+55
-27
No files matched your search
@@ -8,5 +8,6 @@
|
||||
"sources": [
|
||||
"src/**/*.cs"
|
||||
],
|
||||
"test_sources": ["tests/*.cs"],
|
||||
"depends": [ "characters_base>=1", "ui_base>=1", "items_base>=1", "quests_base>=1", "time_base>=1" ]
|
||||
}
|
||||
Reference in new issue
Block a user