Crematorium now needs power to work and consumes power, and a lot of power when burning (#15565)

* Update morgue.dm

* Update morgue.dm

* Update morgue.dm

* Update morgue.dm

* Update morgue.dm

* Update morgue.dm

* Update morgue.dm

* Update morgue.dm

* Update morgue.dm

* Update morgue.dm

* Update morgue.dm

* Update morgue.dm

* Update morgue.dm

* Update morgue.dm

* Update morgue.dm

* Update morgue.dm
This commit is contained in:
Kepplerx
2021-02-24 13:56:39 +01:00
committed by GitHub
parent bef19c6ac9
commit 7a545eadd7
+15 -7
View File
@@ -457,6 +457,10 @@
name = "crematorium igniter"
icon = 'icons/obj/power.dmi'
icon_state = "crema_switch"
power_channel = EQUIP
use_power = IDLE_POWER_USE
idle_power_usage = 100
active_power_usage = 5000
anchored = 1.0
req_access = list(ACCESS_CREMATORIUM)
var/on = 0
@@ -469,13 +473,17 @@
return attack_hand(user)
/obj/machinery/crema_switch/attack_hand(mob/user)
if(allowed(usr) || user.can_advanced_admin_interact())
for(var/obj/structure/crematorium/C in world)
if(C.id == id)
if(!C.cremating)
C.cremate(user)
else
to_chat(usr, "<span class='warning'>Access denied.</span>")
if(powered(power_channel)) // Do we have power?
if(allowed(usr) || user.can_advanced_admin_interact())
use_power(400000)
for(var/obj/structure/crematorium/C in world)
if(C.id == id)
if(!C.cremating)
C.cremate(user)
else
to_chat(usr, "<span class='warning'>Access denied.</span>")
/mob/proc/update_morgue()
if(stat == DEAD)