mobility refactor (#52929)

This commit is contained in:
Rohesie
2020-08-24 13:56:07 -07:00
committed by GitHub
parent 6eff1644f3
commit 988319b3e3
87 changed files with 522 additions and 341 deletions
@@ -87,7 +87,7 @@
AM.forceMove(get_turf(src))
return ..()
/obj/effect/dummy/phased_mob/spell_jaunt/relaymove(mob/user, direction)
/obj/effect/dummy/phased_mob/spell_jaunt/relaymove(mob/living/user, direction)
if ((movedelay > world.time) || reappearing || !direction)
return
var/turf/newLoc = get_step(src,direction)
@@ -45,7 +45,7 @@
invisibility = 60
resistance_flags = LAVA_PROOF | FIRE_PROOF | UNACIDABLE | ACID_PROOF
/obj/effect/dummy/phased_mob/shadow/relaymove(mob/user, direction)
/obj/effect/dummy/phased_mob/shadow/relaymove(mob/living/user, direction)
var/turf/newLoc = get_step(src,direction)
if(isspaceturf(newLoc))
to_chat(user, "<span class='warning'>It really would not be wise to go into space.</span>")
@@ -48,7 +48,7 @@
attached_hand.attached_spell = src
if(!user.put_in_hands(attached_hand))
remove_hand(TRUE)
if (user.get_num_arms() <= 0)
if (user.usable_hands == 0)
to_chat(user, "<span class='warning'>You dont have any usable hands!</span>")
else
to_chat(user, "<span class='warning'>Your hands are full!</span>")