pAIs can no longer force people on help intent to pick them up.

Apparently, pAIs could force people to pick them up by dragging themselves onto a person on help intent. This adds an alert which makes it a bit more clear what's happening, and requires the person to agree, similar to the give verb.
This commit is contained in:
veganzombeh
2015-09-12 16:14:21 +01:00
parent fbba5003f7
commit ce768eae26
+8 -5
View File
@@ -554,11 +554,14 @@
/mob/living/silicon/pai/MouseDrop(atom/over_object)
var/mob/living/carbon/H = over_object
if(!istype(H) || !Adjacent(H)) return ..()
if(H.a_intent == I_HELP)
get_scooped(H)
//return
else
return ..()
switch(alert(H,"[src] wants you to pick them up. Do it?",,"Yes","No"))
if("Yes")
if(Adjacent(H))
get_scooped(H)
else
src << "<span class='warning'>You need to stay in reaching distance to be picked up.</span>"
if("No")
src << "<span class='warning'>[H] decided not to pick you up.</span>"
/mob/living/silicon/pai/on_forcemove(atom/newloc)
if(card)