mirror of
https://github.com/PolarisSS13/Polaris.git
synced 2026-08-30 00:30:06 +01:00
Fixes drake move intent switching
Updates a check so that non-carbon mobs actually have move intents that function.
This commit is contained in:
@@ -274,15 +274,16 @@
|
||||
L.resist()
|
||||
|
||||
if("mov_intent")
|
||||
if(iscarbon(usr))
|
||||
var/mob/living/carbon/C = usr
|
||||
if(C.legcuffed)
|
||||
to_chat(C, "<span class='notice'>You are legcuffed! You cannot run until you get [C.legcuffed] removed!</span>")
|
||||
C.set_move_intent(/decl/move_intent/walk) // Just incase.
|
||||
return 1
|
||||
else
|
||||
var/next_move_intent = next_in_list(C.move_intent.type, C.move_intents)
|
||||
C.set_move_intent(next_move_intent)
|
||||
if(isliving(usr))
|
||||
var/mob/living/L = usr
|
||||
if(iscarbon(usr))
|
||||
var/mob/living/carbon/C = L
|
||||
if(C.legcuffed)
|
||||
to_chat(C, "<span class='notice'>You are legcuffed! You cannot run until you get [C.legcuffed] removed!</span>")
|
||||
C.set_move_intent(/decl/move_intent/walk) // Just incase.
|
||||
return 1
|
||||
var/next_move_intent = next_in_list(L.move_intent.type, L.move_intents)
|
||||
L.set_move_intent(next_move_intent)
|
||||
|
||||
if("Reset Machine")
|
||||
usr.unset_machine()
|
||||
|
||||
Reference in New Issue
Block a user