Attributes Keep Their Original Values After Changing Per-Level In Perks
DootLoot opened this issue ยท 5 comments
Describe the Bug
Changing Per-Level and starting the game again slowly increased the default generic.movement_speed using attribute command
Expected Behavior
generic.movement_speed resets on loading, then scales to level based on perk
To Reproduce
- Set agility to level 50
- close the game
- increase Per-Level in Agility skill up for the speed attribute
- open the world
- Set agility to level 0
Version
Minecraft (1.19.2)
Forge (43.2.0)
PMMO (2.1.5)
I am not sure what you are describing. could you elaborate? can you also share your pmmo-perks.toml
when i was changing the values for speed using per_level, changing the value changes how much of a boost the perk gives you, but changing it to a number smaller then the original and then decreasing your level causes the mod to decrease the attribute by the new value, which causes the generic stats to be higher then the default vanilla value at level 0. This can also happen the other way around too.
pmmo-Perks_file.txt
what happens when you reach level 1 though? i'm thinking level zero is just creating a mathematical anomaly that wouldn't appear outside of testing/configuring.
it just leaves the value above the default due to the math anomaly, so the generic is left higher then it should be when it scales up again
I have followed the instructions you gave and tested a few cases of my own. I am not able to replicate this issue. These are the steps i tool while testing
- create new world with fresh configurations
- set agility level to 50
- use /attribute command to view modifier
- close game
- set per_level in config to 0.000000035 (a smaller number than the default)
- open game and world and use /attribute command to see value still the same
- set agility to zero
- use /attribute command to view modifier and confirm value is removed.
- set agility to lvl 50 again
- use /attribute command to see value set to new per_level-scaled value
- close game entirely
- set per_level in config to 0.005 (larger than the default)
- open game and use /attribute command to view modifier is same as before closing
- set agility to zero
- use /attribute command to view modifier and confirm it is at zero
- set agility to 50
- use /attribute command to see modifier is now scaled off the new per_level
Based on this testing, everything is working as intended. Is there an aspect i missed?