mirror of
https://github.com/Bubberstation/Bubberstation.git
synced 2026-08-28 23:58:07 +01:00
Enables ghost to go through ladders
Adds Cold snow turf Adds Infinite Candles
This commit is contained in:
@@ -8,10 +8,14 @@
|
||||
w_class = 1
|
||||
var/wax = 200
|
||||
var/lit = 0
|
||||
var/infinite = 0
|
||||
var/start_lit = 0
|
||||
heat = 1000
|
||||
proc
|
||||
light(var/flavor_text = "<span class='danger'>[usr] lights the [name].</span>")
|
||||
|
||||
/obj/item/candle/New()
|
||||
..()
|
||||
if(start_lit)
|
||||
light()
|
||||
|
||||
/obj/item/candle/update_icon()
|
||||
var/i
|
||||
@@ -51,14 +55,16 @@
|
||||
light() //honk
|
||||
return
|
||||
|
||||
/obj/item/candle/light(var/flavor_text = "<span class='danger'>[usr] lights the [name].</span>")
|
||||
/obj/item/candle/proc/light(var/flavor_text = "<span class='danger'>[usr] lights the [name].</span>")
|
||||
if(!src.lit)
|
||||
src.lit = 1
|
||||
//src.damtype = "fire"
|
||||
for(var/mob/O in viewers(usr, null))
|
||||
O.show_message(flavor_text, 1)
|
||||
SetLuminosity(CANDLE_LUMINOSITY)
|
||||
SSobj.processing |= src
|
||||
if(!infinite)
|
||||
SSobj.processing |= src
|
||||
update_icon()
|
||||
|
||||
|
||||
/obj/item/candle/process()
|
||||
@@ -99,4 +105,9 @@
|
||||
/obj/item/candle/is_hot()
|
||||
return lit * heat
|
||||
|
||||
|
||||
/obj/item/candle/infinite
|
||||
infinite = 1
|
||||
start_lit = 1
|
||||
|
||||
#undef CANDLE_LUMINOSITY
|
||||
Reference in New Issue
Block a user