small fixes

This commit is contained in:
infinitefusion
2025-01-18 10:35:28 -05:00
parent d523f30eb7
commit 6c621d04e4
14 changed files with 6 additions and 4 deletions

View File

@@ -1426,7 +1426,7 @@ def calculate_pokemon_weight(pokemon,nerf=0)
# Cap the weight between min and max values
weight = [[weight, min_weight].max, max_weight].min
weight -= nerf if nerf > nerf
weight -= nerf if weight- nerf > min_weight
return weight.round(2) # Round to 2 decimal places
end