mirror of
https://github.com/PolarisSS13/Polaris.git
synced 2026-08-26 06:39:22 +01:00
between() -> clamp() & swaps args 1 and 2 in uses
This commit is contained in:
@@ -40,7 +40,7 @@
|
||||
else
|
||||
L = holder
|
||||
|
||||
L.mind.changeling.chem_charges = between(0, L.mind.changeling.chem_charges - chem_maintenance, L.mind.changeling.chem_storage)
|
||||
L.mind.changeling.chem_charges = clamp(L.mind.changeling.chem_charges - chem_maintenance, 0, L.mind.changeling.chem_storage)
|
||||
|
||||
/datum/modifier/changeling/thermal_sight
|
||||
name = "Thermal Adaptation"
|
||||
|
||||
@@ -26,7 +26,7 @@
|
||||
|
||||
/datum/modifier/trait/phobia/proc/adjust_fear(var/amount)
|
||||
var/last_fear = current_fear
|
||||
current_fear = between(0, current_fear + amount, max_fear)
|
||||
current_fear = clamp(current_fear + amount, 0, max_fear)
|
||||
|
||||
// Handle messages. safepick() is used so that if no messages are defined, it just does nothing, verses runtiming.
|
||||
var/message = null
|
||||
@@ -689,4 +689,3 @@
|
||||
"WetSkrell was a mistake."
|
||||
)
|
||||
return pick(generic_responses)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user