mirror of
https://github.com/Aurorastation/Aurora.3.git
synced 2026-01-15 20:02:16 +00:00
* SDQL2 update * fix that verb * cl * fix that * toworld * this is pointless * update info * siiiiick.. * vv edit update * fix that * fix editing vars * fix VV * Port the /TG/ globals controller. * part 1 * part 2 * oops * part 3 * Hollow Purple * sadas * bsbsdb * muda na agaki ta * ids 1-15 * 16-31 * 41-75 * bring me back to how things used to be before i lost it all * the strength of mayhem * final touches * cl * protect some vars * update sdql2 to use glob * stuff? * forgot that is not defined there * whoops * observ * but it never gets better * a --------- Co-authored-by: Matt Atlas <liermattia@gmail.com>
39 lines
1.1 KiB
Plaintext
39 lines
1.1 KiB
Plaintext
/obj/item/device/assembly/igniter
|
|
name = "igniter"
|
|
desc = "A small electronic device able to ignite combustable substances."
|
|
icon_state = "igniter"
|
|
drop_sound = 'sound/items/drop/component.ogg'
|
|
pickup_sound = 'sound/items/pickup/component.ogg'
|
|
origin_tech = list(TECH_MAGNET = 1)
|
|
matter = list(DEFAULT_WALL_MATERIAL = 500, MATERIAL_GLASS = 50)
|
|
|
|
secured = TRUE
|
|
wires = WIRE_RECEIVE_ASSEMBLY
|
|
|
|
/obj/item/device/assembly/igniter/activate()
|
|
. = ..()
|
|
if(!.)
|
|
return FALSE //Cooldown check
|
|
|
|
if(holder && istype(holder.loc, /obj/item/grenade/chem_grenade))
|
|
var/obj/item/grenade/chem_grenade/grenade = holder.loc
|
|
grenade.prime()
|
|
else
|
|
var/turf/location = get_turf(loc)
|
|
if(location)
|
|
location.hotspot_expose(1000, 1000)
|
|
if(istype(src.loc, /obj/item/device/assembly_holder))
|
|
if(istype(src.loc.loc, /obj/structure/reagent_dispensers/fueltank))
|
|
var/obj/structure/reagent_dispensers/fueltank/tank = src.loc.loc
|
|
if(tank?.is_leaking)
|
|
tank.ex_act(3)
|
|
spark(src, 4, GLOB.cardinal)
|
|
return TRUE
|
|
|
|
/obj/item/device/assembly/igniter/attack_self(mob/user)
|
|
activate()
|
|
add_fingerprint(user)
|
|
|
|
/obj/item/device/assembly/igniter/isFlameSource()
|
|
return TRUE
|