mirror of
https://github.com/Bubberstation/Bubberstation.git
synced 2026-01-14 19:03:21 +00:00
*TABLEPASS was already totally obsolete. FPRINT was used, but it was on virtually everything anyway. Removes those flags from every instance where they were used. Also assigned and removed other flags where it made sense. If it is desired, I can revive the flag as NOFPRINT, which would retain the original functionality, though inverted. That way it would be be used only where it was intentional (holodeck items could use this for example).
76 lines
1.5 KiB
Plaintext
76 lines
1.5 KiB
Plaintext
/* Pens!
|
|
* Contains:
|
|
* Pens
|
|
* Sleepy Pens
|
|
* Parapens
|
|
*/
|
|
|
|
|
|
/*
|
|
* Pens
|
|
*/
|
|
/obj/item/weapon/pen
|
|
desc = "It's a normal black ink pen."
|
|
name = "pen"
|
|
icon = 'icons/obj/bureaucracy.dmi'
|
|
icon_state = "pen"
|
|
item_state = "pen"
|
|
slot_flags = SLOT_BELT | SLOT_EARS
|
|
throwforce = 0
|
|
w_class = 1.0
|
|
throw_speed = 7
|
|
throw_range = 15
|
|
m_amt = 10
|
|
pressure_resistance = 2
|
|
var/colour = "black" //what colour the ink is!
|
|
|
|
|
|
/obj/item/weapon/pen/blue
|
|
desc = "It's a normal blue ink pen."
|
|
icon_state = "pen_blue"
|
|
colour = "blue"
|
|
|
|
/obj/item/weapon/pen/red
|
|
desc = "It's a normal red ink pen."
|
|
icon_state = "pen_red"
|
|
colour = "red"
|
|
|
|
/obj/item/weapon/pen/invisible
|
|
desc = "It's an invisble pen marker."
|
|
icon_state = "pen"
|
|
colour = "white"
|
|
|
|
|
|
/obj/item/weapon/pen/attack(mob/living/M, mob/user)
|
|
if(!istype(M))
|
|
return
|
|
|
|
if(M.can_inject(user, 1))
|
|
user << "<span class='warning'>You stab [M] with the pen.</span>"
|
|
M << "\red You feel a tiny prick!"
|
|
. = 1
|
|
|
|
add_logs(user, M, "stabbed", object="[name]")
|
|
|
|
/*
|
|
* Parapens
|
|
*/
|
|
/obj/item/weapon/pen/paralysis
|
|
origin_tech = "materials=2;syndicate=5"
|
|
|
|
|
|
/obj/item/weapon/pen/paralysis/attack(mob/living/M, mob/user)
|
|
if(!istype(M)) return
|
|
|
|
if(..())
|
|
if(reagents.total_volume)
|
|
if(M.reagents)
|
|
reagents.trans_to(M, 50)
|
|
|
|
|
|
/obj/item/weapon/pen/paralysis/New()
|
|
create_reagents(50)
|
|
reagents.add_reagent("zombiepowder", 10)
|
|
reagents.add_reagent("impedrezene", 25)
|
|
reagents.add_reagent("cryptobiolin", 15)
|
|
..() |