Lets you pet pAIs on help intent. (#3874)

* Allows you to pet pAIs.

* user.name, not user

* minor fix
This commit is contained in:
Belsima
2017-09-22 02:21:38 -04:00
committed by Anewbe
parent cb222cafbf
commit 7e3dc535e2

View File

@@ -363,8 +363,11 @@
return
/mob/living/silicon/pai/attack_hand(mob/user as mob)
visible_message("<span class='danger'>[user.name] boops [src] on the head.</span>")
close_up()
if(user.a_intent == I_HELP)
visible_message("<span class='notice'>[user.name] pats [src].</span>")
else
visible_message("<span class='danger'>[user.name] boops [src] on the head.</span>")
close_up()
//I'm not sure how much of this is necessary, but I would rather avoid issues.
/mob/living/silicon/pai/proc/close_up()