mirror of
https://github.com/Aurorastation/Aurora.3.git
synced 2026-08-23 21:12:24 +01:00
Fixes #2803 Fixes #2553 Fixes #2597 (Couldn't find a cleaner way to make this work, unfortunately. Not all procs-as-verbs can be used as procs.) Fixes #2498 Fixes #2912
This commit is contained in:
@@ -43,7 +43,9 @@
|
||||
|
||||
/obj/structure/ladder/attackby(obj/item/C as obj, mob/user as mob)
|
||||
attack_hand(user)
|
||||
return
|
||||
|
||||
/obj/structure/ladder/attack_robot(mob/user)
|
||||
attack_hand(user)
|
||||
|
||||
/obj/structure/ladder/attack_hand(var/mob/M)
|
||||
if(!M.may_climb_ladders(src))
|
||||
@@ -102,6 +104,19 @@
|
||||
return FALSE
|
||||
return TRUE
|
||||
|
||||
/mob/living/silicon/may_climb_ladders(ladder)
|
||||
to_chat(src, "<span class='warning'>You're too heavy to climb [ladder]!</span>")
|
||||
return FALSE
|
||||
|
||||
/mob/living/silicon/robot/drone/may_climb_ladders(ladder)
|
||||
if(!Adjacent(ladder))
|
||||
to_chat(src, "<span class='warning'>You need to be next to \the [ladder] to start climbing.</span>")
|
||||
return FALSE
|
||||
if(incapacitated())
|
||||
to_chat(src, "<span class='warning'>You are physically unable to climb \the [ladder].</span>")
|
||||
return FALSE
|
||||
return TRUE
|
||||
|
||||
/mob/observer/ghost/may_climb_ladders(var/ladder)
|
||||
return TRUE
|
||||
|
||||
|
||||
Reference in New Issue
Block a user