mirror of
https://github.com/Aurorastation/Aurora.3.git
synced 2026-08-24 05:23:22 +01:00
New Map Mining (#1935)
* Alpha Commit * Alpha Commit * Seconds * Some Commit * Final Commit * Fixing minedrone synth ID * Dance Fever * Fixing Travis part 1 * Satisfying the demands * Stuff * Sub-final commit * Sculpting update * more sculpting. pr is 99% sculpting, in fact * kkk * brightness_off * swjaugyuwvhuw
This commit is contained in:
@@ -137,25 +137,6 @@
|
||||
|
||||
return TRUE
|
||||
|
||||
/mob/living/carbon/human/can_fall()
|
||||
if(Allow_Spacemove())
|
||||
return 0
|
||||
|
||||
if(Check_Shoegrip()) //scaling hull with magboots
|
||||
for(var/turf/simulated/T in trange(1,src))
|
||||
if(T.density)
|
||||
return 0
|
||||
..()
|
||||
|
||||
/mob/living/silicon/robot/can_fall()
|
||||
if(Allow_Spacemove()) //Checks for active jetpack
|
||||
return 0
|
||||
|
||||
for(var/turf/simulated/T in trange(1,src)) //Robots get "magboots"
|
||||
if(T.density)
|
||||
return 0
|
||||
..()
|
||||
|
||||
/obj/effect/can_fall()
|
||||
return FALSE
|
||||
|
||||
@@ -181,17 +162,28 @@
|
||||
|
||||
if(istype(landing, /turf/simulated/open))
|
||||
visible_message("\The [src] falls from the level above through \the [landing]!", "You hear a whoosh of displaced air.")
|
||||
else
|
||||
else if(!istype(landing, /turf/space))
|
||||
visible_message("\The [src] falls from the level above and slams onto \the [landing]!", "You hear something slam onto the floor.")
|
||||
|
||||
/mob/living/carbon/human/handle_fall(var/turf/landing)
|
||||
if(..())
|
||||
return
|
||||
|
||||
var/area/area1 = get_area(landing)
|
||||
if(!area1.has_gravity())
|
||||
return
|
||||
|
||||
if(istype(landing, /turf/simulated/open))
|
||||
var/turf/simulated/open/open = landing
|
||||
var/area/area2 = get_area(open.below)
|
||||
if(!area2.has_gravity())
|
||||
return
|
||||
|
||||
var/damage = 20
|
||||
apply_damage(rand(0, damage), BRUTE, "head")
|
||||
apply_damage(rand(0, damage), BRUTE, "chest")
|
||||
apply_damage(rand(0, damage), BRUTE, "l_leg")
|
||||
apply_damage(rand(0, damage), BRUTE, "r_leg")
|
||||
apply_damage(10 + rand(10, damage), BRUTE, "l_leg")
|
||||
apply_damage(10 + rand(10, damage), BRUTE, "r_leg")
|
||||
apply_damage(rand(0, damage), BRUTE, "l_arm")
|
||||
apply_damage(rand(0, damage), BRUTE, "r_arm")
|
||||
weakened = max(weakened,2)
|
||||
|
||||
@@ -13,6 +13,8 @@
|
||||
/turf/space/CanZPass(atom, direction)
|
||||
return 1
|
||||
|
||||
var/global/list/total_openspace = list()
|
||||
|
||||
/turf/simulated/open
|
||||
name = "open space"
|
||||
icon = 'icons/turf/space.dmi'
|
||||
@@ -23,6 +25,18 @@
|
||||
|
||||
var/turf/below
|
||||
|
||||
/turf/simulated/open/airless
|
||||
oxygen = 0
|
||||
nitrogen = 0
|
||||
temperature = TCMB
|
||||
|
||||
/turf/simulated/open/New()
|
||||
total_openspace += src
|
||||
|
||||
/turf/simulated/open/Destroy()
|
||||
total_openspace -= src
|
||||
..()
|
||||
|
||||
/turf/simulated/open/post_change()
|
||||
..()
|
||||
update()
|
||||
@@ -51,6 +65,8 @@
|
||||
O.hide(0)
|
||||
|
||||
/turf/simulated/open/update_icon()
|
||||
overlays.Cut()
|
||||
underlays.Cut()
|
||||
if(below)
|
||||
var/image/t_img = list()
|
||||
var/image/temp = image(icon = below.icon, icon_state = below.icon_state)
|
||||
@@ -135,4 +151,4 @@
|
||||
|
||||
//Most things use is_plating to test if there is a cover tile on top (like regular floors)
|
||||
/turf/simulated/open/is_plating()
|
||||
return 1
|
||||
return 1
|
||||
Reference in New Issue
Block a user