Files
vgstation13/code/modules/RCD/tile painter.dm
SECBATON GRIFFON dada53f31c Suicide_act() update (#30086)
* Beginning suicide_act rework

* compile

* more acts

* compile

* compile

* compile

* compile

* better logic

* oh

* oh

* grammar

* TTVs now act like c4

* or now

* now for flares

* compile

* more general ones

* better

* even better

* generalises these too

* supermatter

* oversight

* circuit imprinters

* oversight

* tweaks

* tanks

* consistency

* oversight

* better chem dispenser one

* computers and gibbers

* oversights

* tweaks

* Fix

* processor

* NOOSINGS FINALLY PORTED FROM HIPPIE

* woops

* removing redundant code, consistency too

* more redundancy down

* this is better

* forgot one

* making nearby item checks more sane now

* better bomb one

* oversiiiight

* cuts down redundant function

* now for welderbomb suicide

* sanity

* more sanity

* switch looks nicer

* these too, obligatory

* oh right

* oh right

* hopefully these work right now

* updating for this one now

* species check

Co-authored-by: SECBATON GRIFFON <sage>
2021-08-24 20:48:18 -05:00

38 lines
1.4 KiB
Plaintext

/obj/item/device/rcd/tile_painter
name = "tile painter"
desc = "A device used to paint floors in various colours and fashions."
icon_state = "rpd" //placeholder art, someone please sprite it
starting_materials = list(MAT_IRON = 75000, MAT_GLASS = 37500)
origin_tech = "engineering=2;materials=1"
sparky = 0
var/emagged = 0
schematics = list(/datum/rcd_schematic/clear_decals)
/obj/item/device/rcd/tile_painter/New()
schematics += typesof(/datum/rcd_schematic/tile) - /datum/rcd_schematic/tile/emagged
. = ..()
/obj/item/device/rcd/tile_painter/emag_act(var/mob/emagger)
emagged = 1
spark(src, 5, FALSE)
to_chat(emagger, "<span class='warning'>You short out the selection circuitry in the [src].</span>")
var/datum/rcd_schematic/tile/emagged/schematic = new /datum/rcd_schematic/tile/emagged(src)
schematics = list(schematic)
selected = schematic
/obj/item/device/rcd/tile_painter/suicide_act(var/mob/living/user)
to_chat(viewers(user), "<span class='danger'>[user] is spraying tile paint into \his mouth! It looks like \he's trying to commit suicide!</span>")
playsound(src, 'sound/effects/spray3.ogg', 15, 1)
return (SUICIDE_ACT_TOXLOSS)
/obj/item/device/rcd/tile_painter/attack_self(var/mob/user)
if(!emagged)
return ..()
to_chat(user, "<span class='warning'>You press the button on the [src], but nothing seems to happen.</span>")