* combat refactoring * i hate this * mobility flags part 2 time xd * whew * stuff * a * ok * changes * Wew * k * add flags * FUCKYOUVORE * fixes * typo * no using this in hard stamcrit * update icon * woopsy * . = ..() * sigh * Update living_combat.dm * wew * wups * fix * i hate you * wrong button * k * ok * bet * k * Update code/modules/mob/living/living_combat.dm Co-Authored-By: Ghom <42542238+Ghommie@users.noreply.github.com> * Update code/modules/mob/living/living_combat.dm Co-Authored-By: Ghom <42542238+Ghommie@users.noreply.github.com> * Update code/modules/mob/living/living_combat.dm Co-Authored-By: Ghom <42542238+Ghommie@users.noreply.github.com> * early returns * skreee * agony * k * k * k * k * wack * compile * wack Co-authored-by: Ghom <42542238+Ghommie@users.noreply.github.com>
27 lines
759 B
Plaintext
27 lines
759 B
Plaintext
/mob/living/silicon/robot/Process_Spacemove(movement_dir = 0)
|
|
if(ionpulse())
|
|
return 1
|
|
return ..()
|
|
|
|
/mob/living/silicon/robot/mob_negates_gravity()
|
|
return magpulse
|
|
|
|
/mob/living/silicon/robot/mob_has_gravity()
|
|
return ..() || mob_negates_gravity()
|
|
|
|
/mob/living/silicon/robot/experience_pressure_difference(pressure_difference, direction)
|
|
if(!magpulse)
|
|
return ..()
|
|
|
|
/mob/living/silicon/robot/Move(NewLoc, direct)
|
|
. = ..()
|
|
if(. && (combat_flags & COMBAT_FLAG_SPRINT_ACTIVE) && !(movement_type & FLYING) && CHECK_ALL_MOBILITY(src, MOBILITY_STAND | MOBILITY_MOVE))
|
|
if(!(cell?.use(25)))
|
|
default_toggle_sprint(TRUE)
|
|
|
|
/mob/living/silicon/robot/movement_delay()
|
|
. = ..()
|
|
if(!resting && !(combat_flags & COMBAT_FLAG_SPRINT_ACTIVE))
|
|
. += 1
|
|
. += speed
|