This is( or at least it is supposed to be) radioactive candle traitor item, which emits radiation, when set on fire.
Yell at me, if something is wrong( It would be nice, if you would add what is wrong and how not to repeat the mistake again, though)
Code: Select all
/obj/item/candle/radcandle /////// If I got that hierarchy thing right from getting into the code guide, it should assume all the properties of ordinary candle.
/obj/item/candle/radcandle/process() ///// Process to make lit candle emit radiation
if(!lit)
and
if(cooldown < world.time - 60)
cooldown = world.time
radiation_pulse(get_turf(src), 4, 8, 80, 1)
/datum/uplink_item/stealthy_weapons/radcandle /////////// adding thing to the uplink
name = "Radioactive candle"
desc = "Candle made from wax mixed with radioactive isotopes.IT IS RADIOACTIVE, OPERATIVE!" /////On server I usually play, people often complain that they did not expect plutonium core to be radioactive, so I added warning just to be sure
item = /obj/item/candle/radcandle
cost = 4
/datum/uplink_item/dangerous/radcandle/New()
..()
cost = 4