mirror of
https://github.com/PolarisSS13/Polaris.git
synced 2026-08-28 07:38:35 +01:00
between() -> clamp() & swaps args 1 and 2 in uses
This commit is contained in:
@@ -437,7 +437,7 @@ GLOBAL_LIST_EMPTY(all_blobs)
|
||||
return
|
||||
|
||||
/obj/structure/blob/proc/adjust_integrity(amount)
|
||||
integrity = between(0, integrity + amount, max_integrity)
|
||||
integrity = clamp(integrity + amount, 0, max_integrity)
|
||||
if(integrity == 0)
|
||||
playsound(src, 'sound/effects/splat.ogg', 50, 1)
|
||||
if(overmind)
|
||||
|
||||
@@ -97,7 +97,7 @@ var/global/list/overminds = list()
|
||||
return TRUE
|
||||
|
||||
/mob/observer/blob/proc/add_points(points)
|
||||
blob_points = between(0, blob_points + points, max_blob_points)
|
||||
blob_points = clamp(blob_points + points, 0, max_blob_points)
|
||||
|
||||
/mob/observer/blob/Life()
|
||||
if(ai_controlled && (!client || auto_pilot))
|
||||
|
||||
Reference in New Issue
Block a user