mirror of
https://github.com/infinitefusion/infinitefusion-e18.git
synced 2025-12-07 13:15:01 +00:00
small fixes
This commit is contained in:
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user