ports "Standardize obj/updateicon() and update_icons() to update_icon()"

This commit is contained in:
Ghommie
2019-12-16 17:58:50 +01:00
parent 7ee71f9702
commit 93fbc17428
12 changed files with 44 additions and 45 deletions
+4 -4
View File
@@ -110,7 +110,7 @@
if(!user.transferItemToLoc(W, src))
return
loaded_tank = W
update_icons()
update_icon()
else if(W.GetID())
if(allowed(user))
if(active)
@@ -197,14 +197,14 @@
if(active)
toggle_power()
else
update_icons()
update_icon()
/obj/machinery/power/rad_collector/rad_act(pulse_strength)
. = ..()
if(loaded_tank && active && pulse_strength > RAD_COLLECTOR_EFFICIENCY)
stored_power += (pulse_strength-RAD_COLLECTOR_EFFICIENCY)*RAD_COLLECTOR_COEFFICIENT
/obj/machinery/power/rad_collector/proc/update_icons()
/obj/machinery/power/rad_collector/update_icon()
cut_overlays()
if(loaded_tank)
add_overlay("ptank")
@@ -222,7 +222,7 @@
else
icon_state = "ca"
flick("ca_deactive", src)
update_icons()
update_icon()
return
#undef RAD_COLLECTOR_EFFICIENCY