Ninja fix.

This commit is contained in:
Fermi
2019-06-26 12:01:26 +01:00
parent 19b79b8232
commit fbf54cd560
2 changed files with 7 additions and 1 deletions
+1 -1
View File
@@ -101,7 +101,7 @@ Contents:
to_chat(H, "<span class='danger'><B>fÄTaL ÈÈRRoR</B>: 382200-*#00CÖDE <B>RED</B>\nUNAU†HORIZED USÈ DETÈC†††eD\nCoMMÈNCING SUB-R0U†IN3 13...\nTÈRMInATING U-U-USÈR...</span>")
H.gib()
return FALSE
if(!istype(H.head, /obj/item/clothing/head/helmet/space/space_ninja) || !istype(H.head, /obj/item/clothing/head/hattip))//Fermichem edit, so ninjas can still use their suit with a fancy hat.
if(!istype(H.head, /obj/item/clothing/head/helmet/space/space_ninja))
to_chat(H, "<span class='userdanger'>ERROR</span>: 100113 UNABLE TO LOCATE HEAD GEAR\nABORTING...")
return FALSE
if(!istype(H.shoes, /obj/item/clothing/shoes/space_ninja))
@@ -10,6 +10,9 @@
//item_flags = NODROP //Tips their hat!
/obj/item/clothing/head/hattip/attack_hand(mob/user)
if(is_ninja(user))
to_chat(user, "<span class='notice'>Using your superior ninja reflexes, you take the hat off before tipping.</span>")
return ..()
if(iscarbon(user))
var/mob/living/carbon/C = user
if(src == C.head)
@@ -20,6 +23,9 @@
return ..()
/obj/item/clothing/head/hattip/MouseDrop(atom/over_object)
if(is_ninja(user))
to_chat(user, "<span class='notice'>Using your superior ninja reflexes, you take the hat off before tipping.</span>")
return ..()
//You sure do love tipping your hat.
if(usr)
var/mob/living/carbon/C = usr