Skip to content

Commit

Permalink
tweak: Engi areas type shuffling. Supermatter and sub-engine areas ov…
Browse files Browse the repository at this point in the history
…erload-protected APCs. (#5995)

* Done.

* Ahem.
  • Loading branch information
Daeberdir authored Oct 13, 2024
1 parent cf59fa8 commit 9d665e4
Show file tree
Hide file tree
Showing 17 changed files with 5,359 additions and 5,355 deletions.
1,888 changes: 944 additions & 944 deletions _maps/map_files/Delta/delta.dmm

Large diffs are not rendered by default.

1,638 changes: 819 additions & 819 deletions _maps/map_files/celestation/celestation.dmm

Large diffs are not rendered by default.

1,208 changes: 604 additions & 604 deletions _maps/map_files/cerestation/cerestation.dmm

Large diffs are not rendered by default.

928 changes: 464 additions & 464 deletions _maps/map_files/cyberiad/cyberiad.dmm

Large diffs are not rendered by default.

124 changes: 62 additions & 62 deletions _maps/map_files/debug/multiz_test.dmm

Large diffs are not rendered by default.

1,866 changes: 933 additions & 933 deletions _maps/map_files/event/Station/delta_old.dmm

Large diffs are not rendered by default.

768 changes: 384 additions & 384 deletions _maps/map_files/event/Station/towerstation.dmm

Large diffs are not rendered by default.

2,216 changes: 1,108 additions & 1,108 deletions _maps/map_files/nova/nova.dmm

Large diffs are not rendered by default.

30 changes: 15 additions & 15 deletions code/game/area/ss13_areas.dm
Original file line number Diff line number Diff line change
Expand Up @@ -1633,65 +1633,65 @@ This applies to all STANDARD station areas


//Engineering
/area/engine
/area/engineering
ambientsounds = ENGINEERING_SOUNDS
sound_environment = SOUND_AREA_LARGE_ENCLOSED

/area/engine/engine_smes
/area/engineering/engine/smes
name = "Engineering SMES"
icon_state = "engine_smes"

/area/engine/engineering
/area/engineering/engine
name = "Engineering"
icon_state = "engine_smes"

/area/engine/engineering/monitor
/area/engineering/engine/monitor
name = "Engineering Monitoring Room"
icon_state = "engine_control"

/area/engine/break_room
/area/engineering/break_room
name = "Engineering Foyer"
icon_state = "engine"
sound_environment = SOUND_AREA_SMALL_ENCLOSED

/area/engine/aienter
/area/engineering/aienter
name = "AI Sattelit Access Point"
icon_state = "engine"

/area/engine/equipmentstorage
/area/engineering/equipmentstorage
name = "Engineering Equipment Storage"
icon_state = "storage"
sound_environment = SOUND_AREA_SMALL_ENCLOSED

/area/engine/hardsuitstorage
/area/engineering/hardsuitstorage
name = "Engineering Hardsuit Storage"
icon_state = "storage"

/area/engine/controlroom
/area/engineering/controlroom
name = "Engineering Control Room"
icon_state = "engine_control"

/area/engine/gravitygenerator
/area/engineering/gravitygenerator
name = "Gravity Generator"
icon_state = "engine"

/area/engine/chiefs_office
/area/engineering/chiefs_office
name = "Chief Engineer's Office"
icon_state = "engine_control"

/area/engine/mechanic_workshop
/area/engineering/mechanic_workshop
name = "Mechanic Workshop"
icon_state = "engine"

/area/engine/mechanic_workshop/expedition
/area/engineering/mechanic_workshop/expedition
name = "Hangar Expedition"
icon_state = "engine"

/area/engine/mechanic_workshop/hangar
/area/engineering/mechanic_workshop/hangar
name = "Hangаr Bay"
icon_state = "engine"

/area/engine/supermatter
/area/engineering/supermatter
name = "Supermatter Engine"
icon_state = "engine"
sound_environment = SOUND_AREA_SMALL_ENCLOSED
Expand Down
8 changes: 4 additions & 4 deletions code/game/gamemodes/miniantags/bot_swarm/swarmer.dm
Original file line number Diff line number Diff line change
Expand Up @@ -283,7 +283,7 @@
to_chat(S, "<span class='warning'>Destroying this object has the potential to cause a hull breach. Aborting.</span>")
S.GiveTarget(null)
return FALSE
else if(istype(A, /area/engine/supermatter))
else if(istype(A, /area/engineering/supermatter))
to_chat(S, "<span class='warning'>Disrupting the containment of a supermatter crystal would not be to our benefit. Aborting.</span>")
S.GiveTarget(null)
return FALSE
Expand Down Expand Up @@ -398,7 +398,7 @@
to_chat(S, "<span class='warning'>Destroying this object has the potential to cause a hull breach. Aborting.</span>")
S.GiveTarget(null)
return TRUE
else if(istype(A, /area/engine/supermatter))
else if(istype(A, /area/engineering/supermatter))
to_chat(S, "<span class='warning'>Disrupting the containment of a supermatter crystal would not be to our benefit. Aborting.</span>")
S.GiveTarget(null)
return TRUE
Expand All @@ -423,7 +423,7 @@
to_chat(S, "<span class='warning'>Destroying this object has the potential to cause a hull breach. Aborting.</span>")
S.GiveTarget(null)
return TRUE
else if(istype(A, /area/engine/supermatter))
else if(istype(A, /area/engineering/supermatter))
to_chat(S, "<span class='warning'>Disrupting the containment of a supermatter crystal would not be to our benefit. Aborting.</span>")
S.GiveTarget(null)
return TRUE
Expand All @@ -437,7 +437,7 @@
to_chat(S, "<span class='warning'>Destroying this object has the potential to cause a hull breach. Aborting.</span>")
S.GiveTarget(null)
return TRUE
else if(istype(A, /area/engine/supermatter))
else if(istype(A, /area/engineering/supermatter))
to_chat(S, "<span class='warning'>Disrupting the containment of a supermatter crystal would not be to our benefit. Aborting.</span>")
S.GiveTarget(null)
return TRUE
Expand Down
2 changes: 1 addition & 1 deletion code/game/gamemodes/nuclear/nuclear.dm
Original file line number Diff line number Diff line change
Expand Up @@ -442,7 +442,7 @@
else if(is_type_in_list(A, fiftythousand_penalty))
scoreboard.nuked_penalty = 50000

else if(istype(A, /area/engine))
else if(istype(A, /area/engineering))
scoreboard.nuked_penalty = 100000

else
Expand Down
2 changes: 1 addition & 1 deletion code/game/gamemodes/objective.dm
Original file line number Diff line number Diff line change
Expand Up @@ -1404,7 +1404,7 @@ GLOBAL_LIST_EMPTY(admin_objective_list)
///Where we should KABOOM
var/area/detonation_location
var/list/area_blacklist = list(
/area/engine/engineering, /area/engine/supermatter,
/area/engineering/engine, /area/engineering/supermatter,
/area/toxins/test_area, /area/turret_protected/ai)
needs_target = FALSE

Expand Down
2 changes: 1 addition & 1 deletion code/modules/antagonists/space_ninja/drain_act/apc.dm
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
var/drain_total = 0
add_game_logs("draining energy from [src] [COORD(src)]", ninja)
var/area/area = get_area(src)
if(area && (istype(area, /area/engine/engineering) || istype(area, /area/engine/supermatter)))
if(area && (istype(area, /area/engineering/engine) || istype(area, /area/engineering/supermatter)))
//На русском чтобы даже полному идиоту было ясно, почему им не даётся сосать ток из этого АПЦ
to_chat(ninja, span_danger("Внимание: Высасывание энергии из АПЦ в этой зоне потенциально может привести к неконтролируемым разрушениям. Процесс отменён."))
return INVALID_DRAIN
Expand Down
10 changes: 6 additions & 4 deletions code/modules/events/apc_overload.dm
Original file line number Diff line number Diff line change
Expand Up @@ -28,9 +28,11 @@
return TRUE

/proc/apc_overload_failure(announce=TRUE)
var/list/skipped_areas_apc = list(
/area/engine/engineering,
/area/turret_protected/ai)
var/static/list/skipped_areas_apc = typecacheof(list(
/area/engineering/engine,
/area/engineering/supermatter,
/area/turret_protected/ai,
))

if(announce)
GLOB.event_announcement.Announce("Зафиксирована перегрузка энергосети станции [station_name()]. Инженерному отделу надлежит проверить все терминалы ЛКП под напольным покрытием.", "ВНИМАНИЕ: КРИТИЧЕСКИЙ СБОЙ СИСТЕМЫ ПИТАНИЯ.", new_sound = 'sound/AI/attention.ogg')
Expand All @@ -41,7 +43,7 @@
var/obj/machinery/power/apc/C = thing
// skip any APCs that are too critical to break
var/area/current_area = get_area(C)
if((current_area.type in skipped_areas_apc) || !is_station_level(C.z))
if(is_type_in_typecache(current_area, skipped_areas_apc) || !is_station_level(C.z))
continue
// if we are going to break this one
if(prob(APC_BREAK_PROBABILITY))
Expand Down
10 changes: 6 additions & 4 deletions code/modules/events/apc_short.dm
Original file line number Diff line number Diff line change
Expand Up @@ -27,9 +27,11 @@
return TRUE

/proc/power_failure(announce=TRUE)
var/list/skipped_areas_apc = list(
/area/engine/engineering,
/area/turret_protected/ai)
var/static/list/skipped_areas_apc = typecacheof(list(
/area/engineering/engine,
/area/engineering/supermatter,
/area/turret_protected/ai,
))

if(announce)
GLOB.event_announcement.Announce("Зафиксирована перегрузка энергосети станции [station_name()]. Инженерному отделу надлежит проверить все замкнувшие ЛКП.", "ВНИМАНИЕ: СБОЙ СИСТЕМЫ ПИТАНИЯ.", new_sound = 'sound/AI/attention.ogg')
Expand All @@ -40,7 +42,7 @@
var/obj/machinery/power/apc/C = thing
// skip any APCs that are too critical to disable
var/area/current_area = get_area(C)
if((current_area.type in skipped_areas_apc) || !is_station_level(C.z))
if(is_type_in_typecache(current_area, skipped_areas_apc) || !is_station_level(C.z))
continue
// if we are going to break this one
if(prob(APC_BREAK_PROBABILITY))
Expand Down
12 changes: 6 additions & 6 deletions code/modules/events/event_procs.dm
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@
var/list/safe_areas = typecacheof(list(
/area/turret_protected/ai,
/area/turret_protected/ai_upload,
/area/engine,
/area/engineering,
/area/holodeck,
/area/shuttle,
/area/maintenance,
Expand All @@ -36,11 +36,11 @@

//These are needed because /area/station/engineering has to be removed from the list, but we still want these areas to get fucked up.
var/list/allowed_areas = list(
/area/engine/break_room,
/area/engine/equipmentstorage,
/area/engine/chiefs_office,
/area/engine/controlroom,
/area/engine/mechanic_workshop
/area/engineering/break_room,
/area/engineering/equipmentstorage,
/area/engineering/chiefs_office,
/area/engineering/controlroom,
/area/engineering/mechanic_workshop
)

var/list/remove_these_areas = safe_areas - allowed_areas
Expand Down
2 changes: 1 addition & 1 deletion code/modules/power/singularity/investigate.dm
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
/area/engine/engineering/poweralert(state, obj/source)
/area/engineering/engine/poweralert(state, obj/source)
if(state != poweralm)
source.investigate_log("has a power alarm!", INVESTIGATE_ENGINE)
..()

0 comments on commit 9d665e4

Please sign in to comment.