between() -> clamp() & swaps args 1 and 2 in uses

This commit is contained in:
Spookerton
2024-01-31 13:34:02 +00:00
parent dfac4a77fe
commit ebbf0e33fb
68 changed files with 137 additions and 146 deletions
@@ -23,7 +23,7 @@
amount = round(amount)
if(damage_casing)
damage += amount
damage = between(0, damage, max_damage)
damage = clamp(damage, 0, max_damage)
if(component_probability)
for(var/obj/item/computer_hardware/H in get_all_components())