Fix exploit to get around delay, change to notice instead of warning

This commit is contained in:
Tigercat2000
2015-04-07 02:26:25 +02:00
parent f767cfa460
commit 34d0bdc946
+12 -2
View File
@@ -8,6 +8,8 @@
w_class = 4.0
attack_verb = list("bashed","smacked")
var/delayed = 0 //used to do delays
var/label = ""
/obj/item/weapon/picket_sign/attackby(obj/item/weapon/W, mob/user, params)
@@ -20,12 +22,20 @@
..()
/obj/item/weapon/picket_sign/attack_self(mob/living/carbon/human/user)
if(delayed)
user.show_message("<span class='warning'>Your arm is too tired to do that again so soon!</span>")
return
delayed = 1
if(label)
user.visible_message("<span class='warning'>[user] waves around \the \"[label]\" sign.</span>")
user.visible_message("<span class='notice'>[user] waves around \the \"[label]\" sign.</span>")
else
user.visible_message("<span class='warning'>[user] waves around blank sign.</span>")
user.visible_message("<span class='notice'>[user] waves around blank sign.</span>")
user.changeNext_move(CLICK_CD_MELEE)
sleep(8)
delayed = 0
/datum/table_recipe/picket_sign
name = "Picket Sign"
result = /obj/item/weapon/picket_sign