mirror of
https://github.com/yogstation13/Yogstation.git
synced 2025-02-26 09:04:50 +00:00
* Tones down values for a lot of different hotspot_expose calls * Update LINDA_fire.dm (#38217) * Automatic changelog compile, [ci skip] * Slight changes to camera network code (#38223) * Removes a useless var and corrects two cameras to use the automatic naming system to reduce dv usage. * Damn github didnt notice this was here.... * Fixes datediff not returning (#38215) * Fixes pocket items being deleted when monkeyizing (#38220) * Automatic changelog generation for PR #38220 [ci skip] * readds atmos heating from hotspot_expose(), as requested by naksu * Tones down hotspot_expose values for sparks moving and destroying * tones down item heat by a lot. no more burning your face off after smoking a cigarette
42 lines
1.2 KiB
Plaintext
42 lines
1.2 KiB
Plaintext
/obj/item/assembly/igniter
|
|
name = "igniter"
|
|
desc = "A small electronic device able to ignite combustible substances."
|
|
icon_state = "igniter"
|
|
materials = list(MAT_METAL=500, MAT_GLASS=50)
|
|
var/datum/effect_system/spark_spread/sparks = new /datum/effect_system/spark_spread
|
|
heat = 1000
|
|
|
|
/obj/item/assembly/igniter/suicide_act(mob/living/carbon/user)
|
|
user.visible_message("<span class='suicide'>[user] is trying to ignite [user.p_them()]self with \the [src]! It looks like [user.p_theyre()] trying to commit suicide!</span>")
|
|
user.IgniteMob()
|
|
return FIRELOSS
|
|
|
|
/obj/item/assembly/igniter/New()
|
|
..()
|
|
sparks.set_up(2, 0, src)
|
|
sparks.attach(src)
|
|
|
|
/obj/item/assembly/igniter/Destroy()
|
|
qdel(sparks)
|
|
sparks = null
|
|
. = ..()
|
|
|
|
/obj/item/assembly/igniter/activate()
|
|
if(!..())
|
|
return FALSE//Cooldown check
|
|
var/turf/location = get_turf(loc)
|
|
if(location)
|
|
location.hotspot_expose(700,10)
|
|
sparks.start()
|
|
return TRUE
|
|
|
|
/obj/item/assembly/igniter/attack_self(mob/user)
|
|
activate()
|
|
add_fingerprint(user)
|
|
|
|
/obj/item/assembly/igniter/ignition_effect(atom/A, mob/user)
|
|
. = "<span class='notice'>[user] fiddles with [src], and manages to \
|
|
light [A].</span>"
|
|
activate()
|
|
add_fingerprint(user)
|