mirror of
https://github.com/CHOMPstation/CHOMPstation.git
synced 2026-08-22 19:46:36 +01:00
Ability to spawn a paper bundle by hitting paper with paper
This commit is contained in:
@@ -315,6 +315,26 @@
|
||||
if(user.mind && (user.mind.assigned_role == "Clown"))
|
||||
clown = 1
|
||||
|
||||
if(istype(P, /obj/item/weapon/paper))
|
||||
var/obj/item/weapon/paper_bundle/B = new(usr.loc)
|
||||
B.icon_state = icon_state
|
||||
if (name != "paper")
|
||||
B.name = name
|
||||
usr.drop_item()
|
||||
B.loc = usr
|
||||
if (usr.hand)
|
||||
usr.l_hand = B
|
||||
B.layer = 20
|
||||
else
|
||||
usr.r_hand = B
|
||||
B.layer = 20
|
||||
if(istype(usr,/mob/living/carbon/human))
|
||||
usr:update_inv_l_hand()
|
||||
usr:update_inv_r_hand()
|
||||
del(P)
|
||||
del(src)
|
||||
|
||||
|
||||
if(istype(P, /obj/item/weapon/pen) || istype(P, /obj/item/toy/crayon))
|
||||
if ( istype(P, /obj/item/weapon/pen/robopen) && P:mode == 2 )
|
||||
P:RenamePaper(user,src)
|
||||
|
||||
@@ -0,0 +1,12 @@
|
||||
/obj/item/weapon/paper_bundle
|
||||
name = "paper bundle"
|
||||
gender = PLURAL
|
||||
icon = 'icons/obj/bureaucracy.dmi'
|
||||
icon_state = "paper"
|
||||
throwforce = 0
|
||||
w_class = 1.0
|
||||
throw_range = 2
|
||||
throw_speed = 1
|
||||
layer = 4
|
||||
pressure_resistance = 1
|
||||
attack_verb = list("slaps")
|
||||
Reference in New Issue
Block a user