Closed ddbrown30 closed 3 months ago
I just noticed that attributes have the same issue. Assuming you take this PR, I'll make another that fixes those to be localized as well.
Are you able to raise the PR with both changes? I'll be happy to merge both changes in one PR. thanks for heping :)
Sure thing. It shouldn't take me long. I'll try to get it done tomorrow. Happy to help. 🙂
There you go. Let me know if you have any questions.
I need to adjust other stuffs an I'll release this change soon. Thanks for the help.
This change makes the status effects human readable and localized. Prior to this, it was just using the effect ids which was especially a problem with effects added through SUCC as they have a generated GUID. This also required the removal of the toLower on the id compare which was unnecessary and would have broken on any status effect with an id that wasn't lowercase since defaults_statuses is populated directly from CONFIG.statusEffects anyway.
As an aside, IMO it would be cleaner if _effects and everything down the chain just used the contents of statusEffects rather than the ids. Right now, we convert the array of effects into an array of ids and then use that array of ids to look up the effect back in the original array. I wanted to minimize my changes, though, so I left it as is. Just a suggestion for something to look at if you're looking to clean up the code at any point.