Skip to content

Commit a8b0e0d

Browse files
Merge pull request #133 from MistakeNot4892/pyrelight
Updating from Neb dev
2 parents 9c95f72 + c32c0c3 commit a8b0e0d

File tree

26 files changed

+95
-64
lines changed

26 files changed

+95
-64
lines changed

code/_helpers/type2type.dm

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,17 @@
11
/*
22
* Holds procs designed to change one type of value, into another.
33
* Contains:
4-
* text2list & list2text
4+
* alist2list
55
* file2list
66
* angle2dir
77
* angle2text
8-
* worldtime2text
98
*/
109

10+
/proc/alist2list(alist/input)
11+
. = list()
12+
for(var/k,v in input)
13+
.[k] = v
14+
1115
// Splits the text of a file at seperator and returns them in a list.
1216
/proc/file2list(filename, seperator = "\n")
1317
return splittext(safe_file2text(filename), seperator)

code/game/base_turf.dm

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@
3434

3535
// Returns the open turf of a Z-stack by finding the nearest non-open turf below.
3636
/proc/get_open_turf_type(var/turf/T)
37-
if(!HasBelow(T.z))
37+
if(!istype(T) || !HasBelow(T.z))
3838
return
3939
var/turf/below = T
4040
while ((below = GetBelow(below)))

code/game/machinery/alarm.dm

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -159,7 +159,7 @@
159159
TLV["temperature"] = list(T0C-26, T0C, T0C+40, T0C+66) // K
160160

161161
var/decl/environment_data/env_info = GET_DECL(environment_type)
162-
for(var/g in decls_repository.get_decl_paths_of_subtype(/decl/material/gas))
162+
for(var/g in get_filterable_material_types())
163163
if(!env_info.important_gasses[g])
164164
trace_gas += g
165165
// not everything in these lists is a subtype of /decl/material/gas, so:

code/game/machinery/atmoalter/scrubber.dm

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@
2424
. = ..()
2525
if(!scrubbing_gas)
2626
scrubbing_gas = list()
27-
for(var/g in decls_repository.get_decl_paths_of_subtype(/decl/material/gas))
27+
for(var/g in get_filterable_material_types())
2828
if(g != /decl/material/gas/oxygen && g != /decl/material/gas/nitrogen)
2929
scrubbing_gas += g
3030

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,8 @@
11
/obj/effect
22
abstract_type = /obj/effect
3+
4+
/obj/effect/can_be_grabbed(var/mob/grabber, var/target_zone)
5+
return FALSE
6+
7+
/obj/effect/try_make_grab(mob/living/user, defer_hand = FALSE)
8+
return FALSE

code/game/turfs/flooring/_flooring.dm

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@ var/global/list/flooring_cache = list()
1919
var/color = COLOR_WHITE
2020
var/footstep_type = /decl/footsteps/plating
2121
var/growth_value = 0
22+
var/deconstruct_sound
2223

2324
var/neighbour_type
2425

@@ -295,7 +296,8 @@ var/global/list/flooring_cache = list()
295296
return TRUE
296297
to_chat(user, SPAN_NOTICE("You remove the [get_surface_descriptor()] with \the [item]."))
297298
floor.remove_flooring(floor.get_topmost_flooring(), place_product = TRUE)
298-
playsound(floor, 'sound/items/Deconstruct.ogg', 80, 1)
299+
if(deconstruct_sound)
300+
playsound(floor, deconstruct_sound, 80, 1)
299301
return TRUE
300302

301303
if(constructed)

code/game/turfs/flooring/flooring_reinforced.dm

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,7 @@
2424
"broken4"
2525
)
2626
uid = "floor_reinf"
27+
deconstruct_sound = 'sound/items/Deconstruct.ogg'
2728

2829
/decl/flooring/reinforced/circuit
2930
name = "processing strata"

code/game/turfs/flooring/flooring_tiled.dm

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,8 @@
1515
space_smooth = SMOOTH_ALL
1616
constructed = TRUE
1717
gender = NEUTER
18+
deconstruct_sound = 'sound/items/Deconstruct.ogg'
19+
1820
burned_states = list(
1921
"burned0",
2022
"burned1"
@@ -87,6 +89,7 @@
8789
color = null
8890
build_type = null
8991
uid = "floor_tiled_new"
92+
deconstruct_sound = 'sound/items/Deconstruct.ogg'
9093

9194
/decl/flooring/tiling/new_tile/cargo_one
9295
icon_base = "cargo_one_full"

code/game/turfs/floors/subtypes/floor_reinforced.dm

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
/turf/floor/reinforced
2-
name = "reinforced floor"
3-
icon = 'icons/turf/flooring/tiles.dmi'
4-
icon_state = "reinforced"
5-
_flooring = /decl/flooring/reinforced
2+
name = "reinforced floor"
3+
icon = 'icons/turf/flooring/tiles.dmi'
4+
icon_state = "reinforced"
5+
_flooring = /decl/flooring/reinforced
66

77
/turf/floor/reinforced/airless
88
initial_gas = null

code/game/turfs/turf_ramps.dm

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,9 @@
11
/turf/proc/handle_ramp_dug_below(turf/wall/natural/ramp)
22
if(simulated && !is_open())
3-
ChangeTurf(get_base_turf(z))
3+
ChangeTurf(get_open_turf_type(src))
4+
return TRUE
5+
return FALSE
6+
7+
/turf/floor/handle_ramp_dug_below(turf/wall/natural/ramp)
8+
var/decl/flooring/floor = get_topmost_flooring()
9+
return !floor.constructed && ..()

0 commit comments

Comments
 (0)