mirror of
https://github.com/Sandstorm-Station/Sandstorm-Station-13.git
synced 2026-08-30 16:56:26 +01:00
makes it work, somewhat
This commit is contained in:
@@ -1,12 +0,0 @@
|
||||
//i have no idea what the difference is between this and get_turf()
|
||||
/proc/get_turf_global(atom/A, recursion_limit = 5)
|
||||
var/turf/T = get_turf(A)
|
||||
if(!T)
|
||||
return
|
||||
if(recursion_limit <= 0)
|
||||
return T
|
||||
if(T.loc)
|
||||
var/area/R = T.loc
|
||||
if(R.global_turf_object)
|
||||
return get_turf_global(R.global_turf_object, recursion_limit - 1)
|
||||
return T
|
||||
@@ -66,4 +66,4 @@ SUBSYSTEM_DEF(bluespace_locker)
|
||||
internal_locker.open()
|
||||
internal_locker.dump_contents()
|
||||
internal_locker.update_icon()
|
||||
external_locker.update_icon()
|
||||
external_locker.update_icon()
|
||||
|
||||
@@ -64,18 +64,16 @@
|
||||
return ..()
|
||||
if(!other.opened && (other.welded || other.locked))
|
||||
if(ismovable(other.loc))
|
||||
user.changeNext_move(CLICK_CD_BREAKOUT)
|
||||
user.last_special = world.time + CLICK_CD_BREAKOUT
|
||||
user.DelayNextAction(CLICK_CD_BREAKOUT)
|
||||
var/atom/movable/AM = other.loc
|
||||
AM.relay_container_resist(user, other)
|
||||
return
|
||||
|
||||
//okay, so the closet is either welded or locked... resist!!!
|
||||
user.changeNext_move(CLICK_CD_BREAKOUT)
|
||||
user.last_special = world.time + CLICK_CD_BREAKOUT
|
||||
user.DelayNextAction(CLICK_CD_BREAKOUT)
|
||||
other.visible_message("<span class='warning'>[other] begins to shake violently!</span>")
|
||||
to_chat(user, "<span class='notice'>You start pushing the door open... (this will take about [DisplayTimeText(other.breakout_time)].)</span>")
|
||||
if(do_after(user,(other.breakout_time), target = src))
|
||||
if(do_after(user,(other.breakout_time), target = src, required_mobility_flags = MOBILITY_RESIST))
|
||||
if(!user || user.stat != CONSCIOUS || other.opened || (!other.locked && !other.welded))
|
||||
return
|
||||
//we check after a while whether there is a point of resisting anymore and whether the user is capable of resisting
|
||||
|
||||
Reference in New Issue
Block a user