RCInet / LastEpoch_Mods

MelonLoader Mods for LastEpoch
47 stars 18 forks source link

Passive Points Maximum #13

Open Wookfg opened 4 months ago

Wookfg commented 4 months ago

In the previous versions of the mod it was possible to enable more than the 255 passive points limit. Previous I believe this was fixed by changing it to a ushort instead of a float.

Right now though in game it's limited to 255 again even if the config file is higher.

Edit: Was trying to solve this myself and figure out the Float is a limitation of the Unity Slider. As a temporary work around I adding a multiplier of 5 to Passive_Points.cs Refs_Manager.player_treedata.passiveTree.pointsEarnt = (ushort)(5 *(ushort)Save_Manager.instance.data.Skills.PassivePoints);

Likely would need to add a second slider/value to handle this in the UI as I'm not sure if the Slider can be changed to not be a Float.

RCInet commented 3 months ago

Max points should be FF FF (65535), if you use a multiplier this should be 65535 / 255 = 257

Points can be edited in "AssetBundleExport" with Unity Export