Merge pull request #3301 from CHOMPStation2/upstream-merge-11968

[MIRROR] Allows simplemobs climb ladders + trash pile interaction fix
This commit is contained in:
Nadyr
2021-12-12 06:22:42 -05:00
committed by GitHub
2 changed files with 9 additions and 2 deletions

View File

@@ -69,13 +69,13 @@
var/mob/living/L = user
//They're in it, and want to get out.
if(L.loc == src)
var/choice = tgui_alert(usr, "Do you want to exit \the [src]?","Un-Hide?",list("Exit","Stay"))
var/choice = tgui_alert(user, "Do you want to exit \the [src]?","Un-Hide?",list("Exit","Stay"))
if(choice == "Exit")
if(L == hider)
hider = null
L.forceMove(get_turf(src))
else if(!hider)
var/choice = tgui_alert(usr, "Do you want to hide in \the [src]?","Un-Hide?",list("Hide","Stay"))
var/choice = tgui_alert(user, "Do you want to hide in \the [src]?","Un-Hide?",list("Hide","Stay"))
if(choice == "Hide" && !hider) //Check again because PROMPT
L.forceMove(src)
hider = L

View File

@@ -33,6 +33,13 @@
target_up = null
return ..()
/obj/structure/ladder/attack_generic(mob/user)
//Simple Animal
if(isanimal(user))
attack_hand(user)
else
return ..()
/obj/structure/ladder/attackby(obj/item/C as obj, mob/user as mob)
attack_hand(user)
return