mirror of
https://github.com/Aurorastation/Aurora.3.git
synced 2026-08-23 21:12:24 +01:00
Repaths obj/machinery to obj/structure/machinery. **Note for reviewers:** the only meaningful changed code exists within **code/game/objects/structures.dm** and **code/game/objects/structures/_machinery.dm**, largely concerning damage procs. With the exception of moving airlock defines to their own file, ALL OTHER CHANGES ARE STRICTLY PATH CHANGES. Objects, _categorically_, are largely divided between those you can hold in your hand/inventory and those you can't. Machinery objects are already subtypes of Structures behaviorally, this PR just makes their pathing reflect that, and allows for future work (tool actions, more health/destruction functionality) to be developed without unnecessary code duplication. I have tested this PR by loading up the Horizon and dismantling various machines and structures with tools, shooting guns of various types throughout the ship, and detonating a bunch of explosions throughout the ship.
39 lines
1.3 KiB
Plaintext
39 lines
1.3 KiB
Plaintext
/obj/structure/machinery/computer/shuttle_control/mining
|
|
name = "mining shuttle control console"
|
|
shuttle_tag = "Mining"
|
|
circuit = /obj/item/circuitboard/mining_shuttle
|
|
|
|
/obj/structure/machinery/computer/shuttle_control/engineering
|
|
name = "engineering shuttle control console"
|
|
shuttle_tag = "Engineering"
|
|
circuit = /obj/item/circuitboard/engineering_shuttle
|
|
|
|
/obj/structure/machinery/computer/shuttle_control/research
|
|
name = "research shuttle control console"
|
|
shuttle_tag = "Research Shuttle"
|
|
req_access = list(ACCESS_RESEARCH)
|
|
|
|
/obj/structure/machinery/computer/shuttle_control/multi/research
|
|
name = "research shuttle control computer"
|
|
shuttle_tag = "Research Shuttle"
|
|
req_access = list(ACCESS_RESEARCH)
|
|
circuit = /obj/item/circuitboard/research_shuttle
|
|
|
|
/datum/shuttle/autodock/multi/research_aurora
|
|
var/triggered_away_sites = FALSE
|
|
|
|
/datum/shuttle/autodock/multi/research_aurora/shuttle_moved()
|
|
. = ..()
|
|
if(!triggered_away_sites && !is_station_level(next_location.loc.z))
|
|
for(var/s in SSghostroles.spawners)
|
|
var/datum/ghostspawner/G = SSghostroles.spawners[s]
|
|
if(G.away_site)
|
|
G.enable()
|
|
triggered_away_sites = TRUE
|
|
|
|
/obj/structure/machinery/computer/shuttle_control/merchant
|
|
name = "merchant shuttle control console"
|
|
req_access = list(ACCESS_MERCHANT)
|
|
shuttle_tag = "ICV Enterprise"
|
|
can_rename_ship = TRUE
|