removed CLAMP define

This commit is contained in:
spookerton
2022-03-31 19:21:58 +01:00
parent bcfe3e9851
commit 602cc67d2b
65 changed files with 116 additions and 118 deletions
+1 -1
View File
@@ -144,7 +144,7 @@ var/list/organ_cache = list()
owner.death()
/obj/item/organ/proc/adjust_germ_level(var/amount) // Unless you're setting germ level directly to 0, use this proc instead
germ_level = CLAMP(germ_level + amount, 0, INFECTION_LEVEL_MAX)
germ_level = clamp(germ_level + amount, 0, INFECTION_LEVEL_MAX)
/obj/item/organ/process()
+1 -1
View File
@@ -114,7 +114,7 @@
else if(amount > 0)
last_strain_increase = world.time
strain = CLAMP(strain + amount, 0, min_broken_damage)
strain = clamp(strain + amount, 0, min_broken_damage)
/obj/item/organ/internal/regennetwork/process()
..()
+1 -1
View File
@@ -48,7 +48,7 @@
adjust_plasma(1)
/obj/item/organ/internal/xenos/plasmavessel/proc/adjust_plasma(var/amount = 0)
stored_plasma = CLAMP(stored_plasma + amount, 0, max_plasma)
stored_plasma = clamp(stored_plasma + amount, 0, max_plasma)
/obj/item/organ/internal/xenos/plasmavessel/grey
icon_state = "plasma_grey"