CrystalFerrai / ValheimMods

Contains all Valheim mods created by Crystal
Other
19 stars 5 forks source link

[Bug Report?] DeathPenalty - Accumulated experience is lost on death with SkillLostPercent at 0 (skill loss disabled) #22

Closed Abbanon closed 1 year ago

Abbanon commented 1 year ago

As the title says, I'm not sure if this is a bug or intended behaviour with the DeathPenalty mod, so I'm posting just in case. When SkillLossPercent is set to 0 (disabled), levels do not decrease on death, as intended. However, any accumulated XP towards the next level is lost on death.

Stetzon commented 1 year ago

Replying here because I was looking for a mod that does exactly that ^ (on death - only lose your accumulated XP towards the next level), but intentionally :)

CrystalFerrai commented 1 year ago

I don't know why this might be happening, most likely due to a change in game code since this mod was written. I will look into it next time I get a chance, but I cannot say for sure when that will be. If possible, I will add a config option to lose all exp in current level instead of losing a percentage so people can configure it either way they want.

CrystalFerrai commented 1 year ago

I finally got back to this. Death Penalty version 1.1.0 now has a config option called ResetLevelProgress which controls whether skill progress towards the next level is reset when dying. Defaults to true. This option is independent of the preexisting SkillLossPercent config option which affects the percentage of levels lost.