Merge pull request #15201 from Very-Soft/adjustlayer

Add ability to adjust your layer/plane
This commit is contained in:
Casey
2023-08-05 14:46:07 -04:00
committed by GitHub
3 changed files with 327 additions and 276 deletions
@@ -276,6 +276,8 @@ default behaviour is:
is_shifted = FALSE
pixel_x = default_pixel_x
pixel_y = default_pixel_y
layer = MOB_LAYER
plane = MOB_PLANE
// End VOREstation edit
if(pulling) // we were pulling a thing and didn't lose it during our move.
+27
View File
@@ -1093,6 +1093,33 @@
if(pixel_x <= (default_pixel_x + 16))
pixel_x++
is_shifted = TRUE
/mob/verb/planeup()
set hidden = TRUE
if(!canface())
return FALSE
if(plane >= MOB_PLANE + 3) //Don't bother going too high!
return
if(layer == MOB_LAYER) //Become higher
layer = ABOVE_MOB_LAYER
plane += 1 //Increase the plane
if(plane == MOB_PLANE) //Return to normal
layer = MOB_LAYER
is_shifted = TRUE
/mob/verb/planedown()
set hidden = TRUE
if(!canface())
return FALSE
if(plane <= MOB_PLANE - 3) //Don't bother going too low!
return
if(layer == MOB_LAYER) //Become lower
layer = BELOW_MOB_LAYER
plane -= 1 //Decrease the plane
if(plane == MOB_PLANE) //Return to normal
layer = MOB_LAYER
is_shifted = TRUE
// End VOREstation edit
/mob/proc/adjustEarDamage()
+298 -276
View File
File diff suppressed because it is too large Load Diff