mirror of
https://github.com/Bubberstation/Bubberstation.git
synced 2026-08-29 16:18:01 +01:00
The real slips rewrite (#22490)
* Fix a bug in forceMove Don't call Exited/Entered if the loc is the same * Added forced_movement * Remove usages comment Fixed a parameters bug * Refactor slips * Refactors meathook * Negative check * Shittier syntax, more performance * Seperation of src and args * Sanity check Because you know someone will fuck it up * X to Y is inclusive * Bettter diagonals * Remove unused var * Better suggestion * This was never used, why was it here? * Arg prefixing... * Better cleanup * Do not touch the self managing var * Cleanup * More cleanup * Missed 2 * Added callbacks * Fix ice again * Sanity checks * Applied to larva/attack_hulk * Fix the chain's usage * LDFJAHDJKAGFHLJKDSAGHJKLSDAGBLKJADGFHKLJADGNLKAMDFNBJK:ANFDJKLADSNLSJKDFHNASFADSFLK:AJFL:KASJFKLASJF:LAJSF:LKJASKFMSALKF
This commit is contained in:
@@ -64,6 +64,12 @@
|
||||
step(O, get_dir(O, src))
|
||||
return
|
||||
|
||||
/obj/structure/proc/do_climb(atom/movable/A)
|
||||
if(climbable)
|
||||
density = 0
|
||||
. = step(A,get_dir(A,src.loc))
|
||||
density = 1
|
||||
|
||||
/obj/structure/proc/climb_structure(mob/user)
|
||||
src.add_fingerprint(user)
|
||||
user.visible_message("<span class='warning'>[user] starts climbing onto [src].</span>", \
|
||||
@@ -76,8 +82,7 @@
|
||||
structureclimber = user
|
||||
if(do_mob(user, user, adjusted_climb_time))
|
||||
if(src.loc) //Checking if structure has been destroyed
|
||||
density = 0
|
||||
if(step(user,get_dir(user,src.loc)))
|
||||
if(do_climb(user))
|
||||
user.visible_message("<span class='warning'>[user] climbs onto [src].</span>", \
|
||||
"<span class='notice'>You climb onto [src].</span>")
|
||||
add_logs(user, src, "climbed onto")
|
||||
@@ -85,7 +90,6 @@
|
||||
. = 1
|
||||
else
|
||||
user << "<span class='warning'>You fail to climb onto [src].</span>"
|
||||
density = 1
|
||||
structureclimber = null
|
||||
|
||||
/obj/structure/examine(mob/user)
|
||||
|
||||
Reference in New Issue
Block a user