fix: new encumbrance limit was not applied AT ALL

This commit is contained in:
minjaesong
2024-02-01 16:17:58 +09:00
parent 55bb33b4ce
commit 6e1ad9f768
3 changed files with 15 additions and 3 deletions

View File

@@ -163,7 +163,7 @@ internal object SavegameMigrator {
}
@AppliedVersion("0.3.99999")
@AppliedVersion("0.4.0")
fun updatePlayerEncumbrance(actor: Actor) {
if (actor is IngamePlayer && actor.actorValue.getAsInt("encumbrance") == 1000) {
actor.actorValue.set("encumbrance", 50000)