mirror of
https://github.com/ParadiseSS13/Paradise.git
synced 2026-07-19 02:54:41 +01:00
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:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user