Skip to content

Commit 36cc073

Browse files
Merge pull request #103 from NebulaSS13/dev
Updating from Neb dev.
2 parents c340bde + f7eedf1 commit 36cc073

File tree

27 files changed

+523
-328
lines changed

27 files changed

+523
-328
lines changed

code/datums/trading/traders/ai.dm

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -90,7 +90,8 @@ They sell generic supplies and ask for generic supplies.
9090
/obj/item/stack/material/ingot/mapped/osmium = TRADER_THIS_TYPE,
9191
/obj/item/stack/material/sheet/mapped/steel = TRADER_THIS_TYPE,
9292
/obj/item/stack/material/sheet/reinforced/mapped/plasteel = TRADER_THIS_TYPE,
93-
/obj/machinery/mining = TRADER_SUBTYPES_ONLY
93+
/obj/machinery/mining_drill = TRADER_THIS_TYPE,
94+
/obj/structure/drill_brace = TRADER_THIS_TYPE
9495
)
9596

9697
/datum/trader/trading_beacon/manufacturing

code/datums/trading/traders/goods.dm

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -454,8 +454,8 @@ Sells devices, odds and ends, and medical stuff
454454
)
455455

456456
possible_trading_items = list(
457-
/obj/machinery/mining/drill = TRADER_THIS_TYPE,
458-
/obj/machinery/mining/brace = TRADER_THIS_TYPE,
457+
/obj/machinery/mining_drill = TRADER_THIS_TYPE,
458+
/obj/structure/drill_brace = TRADER_THIS_TYPE,
459459
/obj/machinery/floodlight = TRADER_THIS_TYPE,
460460
/obj/item/box/greenglowsticks = TRADER_THIS_TYPE,
461461
/obj/item/clothing/suit/space/void/engineering/salvage/prepared = TRADER_THIS_TYPE,
Lines changed: 4 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,21 +1,15 @@
11
/obj/item/stock_parts/circuitboard/miningdrill
22
name = "circuitboard (mining drill head)"
3-
build_path = /obj/machinery/mining/drill
3+
build_path = /obj/machinery/mining_drill
44
board_type = "machine"
55
origin_tech = @'{"programming":1,"engineering":1}'
66
req_components = list(
77
/obj/item/stock_parts/capacitor = 1,
88
/obj/item/stock_parts/matter_bin = 1,
9-
/obj/item/stock_parts/micro_laser = 1)
9+
/obj/item/stock_parts/micro_laser = 1,
10+
/obj/item/stock_parts/scanning_module = 1
11+
)
1012
additional_spawn_components = list(
1113
/obj/item/stock_parts/power/battery/buildable/stock,
1214
/obj/item/cell = 1
1315
)
14-
15-
/obj/item/stock_parts/circuitboard/miningdrillbrace
16-
name = "circuitboard (mining drill brace)"
17-
build_path = /obj/machinery/mining/brace
18-
board_type = "machine"
19-
origin_tech = @'{"programming":1,"engineering":1}'
20-
req_components = list()
21-
additional_spawn_components = null

code/game/turfs/flooring/flooring_reinforced.dm

Lines changed: 18 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -15,22 +15,28 @@
1515
gender = NEUTER
1616

1717
/decl/flooring/reinforced/circuit
18-
name = "processing strata"
19-
desc = "A complex network of circuits beneath reinforced glass."
20-
icon = 'icons/turf/flooring/circuit.dmi'
21-
icon_base = "bcircuit"
22-
build_type = null
23-
flooring_flags = TURF_ACID_IMMUNE | TURF_CAN_BREAK | TURF_REMOVE_WRENCH
24-
can_paint = 1
25-
can_engrave = FALSE
18+
name = "processing strata"
19+
desc = "A complex network of circuits beneath reinforced glass."
20+
icon = 'icons/turf/flooring/circuit.dmi'
21+
icon_base = "bcircuit"
22+
build_type = null
23+
flooring_flags = TURF_ACID_IMMUNE | TURF_CAN_BREAK | TURF_REMOVE_WRENCH
24+
can_paint = 1
25+
can_engrave = FALSE
26+
turf_light_range = 2
27+
turf_light_power = 3
28+
turf_light_color = COLOR_BLUE
2629

2730
/decl/flooring/reinforced/circuit/green
28-
icon_base = "gcircuit"
31+
icon_base = "gcircuit"
32+
turf_light_color = COLOR_GREEN
2933

3034
/decl/flooring/reinforced/circuit/red
31-
icon_base = "rcircuit"
32-
flooring_flags = TURF_ACID_IMMUNE
33-
can_paint = 0
35+
icon_base = "rcircuit"
36+
flooring_flags = TURF_ACID_IMMUNE
37+
can_paint = 0
38+
turf_light_power = 2
39+
turf_light_color = COLOR_RED
3440

3541
/decl/flooring/reinforced/shuttle
3642
name = "floor"

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

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,6 @@
33
icon = 'icons/turf/flooring/circuit.dmi'
44
icon_state = "bcircuit"
55
_flooring = /decl/flooring/reinforced/circuit
6-
light_range = 2
7-
light_power = 3
8-
light_color = COLOR_BLUE
96

107
/turf/floor/bluegrid/airless
118
name = "airless floor"
@@ -17,9 +14,6 @@
1714
icon = 'icons/turf/flooring/circuit.dmi'
1815
icon_state = "gcircuit"
1916
_flooring = /decl/flooring/reinforced/circuit/green
20-
light_range = 2
21-
light_power = 3
22-
light_color = COLOR_GREEN
2317

2418
/turf/floor/greengrid/airless
2519
name = "airless floor"
@@ -34,6 +28,3 @@
3428
icon = 'icons/turf/flooring/circuit.dmi'
3529
icon_state = "rcircuit"
3630
_flooring = /decl/flooring/reinforced/circuit/red
37-
light_range = 2
38-
light_power = 2
39-
light_color = COLOR_RED

code/modules/ZAS/Turf.dm

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -231,6 +231,10 @@ var/global/list/STANDARD_AIRMIX = list(
231231
/turf/return_air()
232232
RETURN_TYPE(/datum/gas_mixture)
233233

234+
// TODO: immutable gas mixtures for stuff like this, to avoid creating new datums every time.
235+
if(!simulated)
236+
return make_air()
237+
234238
// ZAS participation
235239
if(zone && !zone.invalid)
236240
SSair.mark_zone_update(zone)
@@ -261,7 +265,7 @@ var/global/list/STANDARD_AIRMIX = list(
261265
return FALSE
262266

263267
/turf/proc/make_air()
264-
air = new/datum/gas_mixture
268+
air = new /datum/gas_mixture
265269
air.temperature = temperature
266270
if(initial_gas)
267271
if(initial_gas == GAS_STANDARD_AIRMIX)

code/modules/codex/entries/machinery.dm

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -150,4 +150,16 @@
150150
lore_text = "A signal repeater, capable of transmitting and decoding hyperintense radio waves to and from PLEXUS uplinks."
151151
mechanics_text = "Allows for network devices in its sector to connect to and communicate with distant networks over PLEXUS.<BR>Networks requires a modem to utilize PLEXUS connections."
152152
disambiguator = "machine"
153+
available_to_map_tech_level = MAP_TECH_LEVEL_SPACE
154+
155+
/datum/codex_entry/mining_drill
156+
associated_paths = list(/obj/machinery/mining_drill)
157+
mechanics_text = "When properly supported by two adjacent braces, the mining drill can automatically mine underground mineral deposits.<br>\
158+
You can empty the ore storage by click-dragging the drill onto an ore box, or using the <b>Unload Drill</b> verb.<br>\
159+
The drill head can be upgraded using a number of different components:<br>\
160+
- Micro lasers control the drill's mining speed. The drill's energy usage proportionally increases with faster speed.<br>\
161+
- Matter bins expand the drill's internal ore storage, allowing it to mine for longer before it gets fill.<br>\
162+
- Scanning modules expand the drill's ore scanner radius, allowing it to mine from farther away.<br>\
163+
- Capacitors improve the drill's energy efficiency, reducing how much energy is required to extract a piece of ore from the ground."
164+
disambiguator = "machine"
153165
available_to_map_tech_level = MAP_TECH_LEVEL_SPACE

code/modules/crafting/stack_recipes/recipes_steel.dm

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -105,3 +105,6 @@
105105

106106
/decl/stack_recipe/steel/furniture/tank
107107
result_type = /obj/item/pipe/tank
108+
109+
/decl/stack_recipe/steel/furniture/drill_brace
110+
result_type = /obj/structure/drill_brace

code/modules/fabrication/designs/imprinter/designs_misc_circuits.dm

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -302,9 +302,6 @@
302302
/datum/fabricator_recipe/imprinter/circuit/miningdrill
303303
path = /obj/item/stock_parts/circuitboard/miningdrill
304304

305-
/datum/fabricator_recipe/imprinter/circuit/miningdrillbrace
306-
path = /obj/item/stock_parts/circuitboard/miningdrillbrace
307-
308305
/datum/fabricator_recipe/imprinter/circuit/floodlight
309306
path = /obj/item/stock_parts/circuitboard/floodlight
310307

code/modules/maps/template_types/random_exoplanet/random_planet_level_data.dm

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -82,11 +82,12 @@
8282
//Rename the surface area if we have one yet
8383
adapt_location_name(parent_planetoid.name)
8484

85-
///If we're getting atmos from our parent planet, decide if we're going to apply it, or ignore it
85+
///If we're getting atmos from our parent planet, apply it.
8686
/datum/level_data/planetoid/proc/apply_planet_atmosphere(var/datum/planetoid_data/P)
87-
if(istype(exterior_atmosphere))
88-
return //level atmos takes priority over planet atmos
89-
exterior_atmosphere = P.atmosphere.Clone() //Make sure we get one instance per level
87+
if(istype(P) && istype(P.atmosphere))
88+
exterior_atmosphere = P.atmosphere.Clone()
89+
exterior_atmosphere.update_values()
90+
exterior_atmosphere.check_tile_graphic()
9091

9192
///Apply our parent planet's ambient lighting settings if we want to.
9293
/datum/level_data/planetoid/proc/apply_planet_ambient_lighting(var/datum/planetoid_data/P)

0 commit comments

Comments
 (0)