Added support for multiple sizing algorithms to allow for future development of new algorithms.
sizingAlgorithm. At the moment, this accepts either "basic" or "gen9" as valid valuesThis sizer will simply take a random value between the minimum and maximum size modifiers and sets that value to the scale of the Cobblemon.
This definition is found in sizes/basic.json
This sizer attempts to replicate the sizing that's used in the 9th generation of Pokemon games.
The sizer will randomly choose a value between 0 and 255 and run it through the following formula to get the size for the Cobblemon:
minSizeModifier + (randomValue/255) * (maxSizeModifier - minSizeModifier) = chosenSizeValue
Thanks to WxAaRoNxW for this suggestion!
The definition is found in sizes/gen9.json
Both definitions have default values that can be modified.
Note: In the gen9 definition, the values defined must remain between 0 and 255.
Updated the pokesizer command with additional functionality.
Command definition:
/pokesizer <player|self> [pokemon|slot] [size]
/pokesizer <player|self>
/pokesizer <player|self> [pokemon|slot]
/pokesizer <player|self> [pokemon|slot] [size]
There are no permission changes in this version. You will still need the correct permissions to use these commands.