mirror of
https://github.com/VOREStation/VOREStation.git
synced 2026-08-22 11:38:12 +01:00
Merge pull request #15201 from Very-Soft/adjustlayer
Add ability to adjust your layer/plane
This commit is contained in:
@@ -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.
|
||||
|
||||
@@ -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
File diff suppressed because it is too large
Load Diff
Reference in New Issue
Block a user