Enables ghost to go through ladders

Adds Cold snow turf
Adds Infinite Candles
This commit is contained in:
AnturK
2015-11-28 18:14:52 +01:00
parent b14e9133d2
commit b662b470a9
4 changed files with 60 additions and 17 deletions
+15 -4
View File
@@ -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