Backward 512 compatibility removal.

This commit is contained in:
Ghommie
2020-04-23 00:59:23 +02:00
parent 7f271157c3
commit 42201343a9
248 changed files with 478 additions and 544 deletions
+2 -2
View File
@@ -66,7 +66,7 @@
if(world.time < last_time_used && !dissipating)
return
var/old_charges = charges
charges = CLAMP(charges + recharge_rate, 0, max_charges)
charges = clamp(charges + recharge_rate, 0, max_charges)
if(round(old_charges) >= round(charges)) //only send outputs if it effectively gained at least one charge
return
var/sound = recharge_sound
@@ -85,7 +85,7 @@
/datum/component/shielded/proc/adjust_charges(amount)
var/old_charges = charges
charges = CLAMP(charges + amount, 0, max_charges)
charges = clamp(charges + amount, 0, max_charges)
if(recharge_delay && recharge_rate && (dissipating ? !charges : charges == max_charges))
STOP_PROCESSING(SSdcs, src)
if(charges < 1 && del_on_overload)