IoIxD / Cobblemounts

Cobblemon sidemod that lets you mount the Pokemon.
GNU Lesser General Public License v3.0
1 stars 11 forks source link

Adjustable scaling, and experimental logarithmic scaling. #17

Closed fleefie closed 1 month ago

fleefie commented 6 months ago

Hey ! It's me from discord. Again, this code is VERY messy and the log scaling is IMO just plain bad. However, the fundamentals are there, it's just adding more configs being read.

This fork pretty much just features the ability to adjust not just the speed cap, but the actual scaling of the mount speed based on the cobblemon's speed stat. The old formula was completely changed, and a new option to use a logarithmic scaling instead is available. These options are all available independently per transport medium (air, water, ground). Also, the legendary bonus has been reworked to be a flat bonus, and there's an option for the legendary speed bonus to break the cap.

Linear scaling formula : (speed / 256) (scalar / 2) + (legendarybonus scalar) / 2

Logarithmic scaling formula : (log((speed + scalar) / scalar) + legendarybonus

Desmos link for these formulae : https://www.desmos.com/calculator/ccxdf7ll24

fleefie commented 6 months ago

Oopsie, the desmos link isn't up to date anymore, I did some tweaking to the formulae from my personal experience, watch out !

Mickeon commented 2 months ago

Any further updates on this?