Skip to content

Commit

Permalink
Makes all things that check for dorms check for forbid events var
Browse files Browse the repository at this point in the history
  • Loading branch information
Heroman3003 committed Jun 30, 2022
1 parent 7da0085 commit e1fe484
Show file tree
Hide file tree
Showing 7 changed files with 18 additions and 6 deletions.
3 changes: 2 additions & 1 deletion code/_helpers/unsorted_vr.dm
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,8 @@
continue
if(vent.welded)
continue
if(istype(get_area(vent), /area/crew_quarters/sleep)) //No going to dorms
var/area/A = get_area(vent)
if(A.forbid_events)
continue
vent_list += vent
if(!vent_list.len)
Expand Down
3 changes: 2 additions & 1 deletion code/modules/events/grubinfestation_vr.dm
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,8 @@
spawncount = rand(2 * severity, 6 * severity)

for(var/obj/machinery/atmospherics/unary/vent_pump/temp_vent in machines)
if(istype(get_area(temp_vent), /area/crew_quarters/sleep))
var/area/A = get_area(temp_vent)
if(A.forbid_events)
continue
if(!temp_vent.welded && temp_vent.network && (temp_vent.loc.z in using_map.station_levels))
if(temp_vent.network.normal_members.len > 50)
Expand Down
4 changes: 3 additions & 1 deletion code/modules/events/spider_infestation.dm
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,9 @@
for(var/obj/machinery/atmospherics/unary/vent_pump/temp_vent in machines)
if(!temp_vent.welded && temp_vent.network && (temp_vent.loc.z in using_map.station_levels))
if(temp_vent.network.normal_members.len > 50)
vents += temp_vent
var/area/A = get_area(temp_vent)
if(!(A.forbid_events))
vents += temp_vent

while((spawncount >= 1) && vents.len)
var/obj/vent = pick(vents)
Expand Down
3 changes: 2 additions & 1 deletion code/modules/power/singularity/singularity.dm
Original file line number Diff line number Diff line change
Expand Up @@ -365,7 +365,8 @@ GLOBAL_LIST_BOILERPLATE(all_singularities, /obj/singularity)
return 0

// VOREStation Edit Start
if(istype(get_area(T), /area/crew_quarters/sleep)) //No going to dorms
var/area/A = get_area(T)
if(A.forbid_events) //No going to dorms
return 0
// VOREStation Edit End

Expand Down
4 changes: 3 additions & 1 deletion code/modules/xenoarcheaology/effect.dm
Original file line number Diff line number Diff line change
Expand Up @@ -158,7 +158,9 @@
/proc/GetAnomalySusceptibility(var/mob/living/carbon/human/H)
if(!istype(H))
return 1
if(istype(get_area(H),/area/crew_quarters/sleep)) return 0 //VOREStation Edit - Dorms are protected from anomalies
var/area/A = get_area(H)
if(A.forbid_events)
return 0
var/protected = 0

//anomaly suits give best protection, but excavation suits are almost as good
Expand Down
3 changes: 3 additions & 0 deletions maps/groundbase/groundbase_areas.dm
Original file line number Diff line number Diff line change
Expand Up @@ -359,6 +359,7 @@
/area/groundbase/civilian/arrivals
name = "Arrivals"
lightswitch = 1
forbid_events = TRUE
/area/groundbase/civilian/toolstorage
name = "Tool Storage"
lightswitch = 1
Expand Down Expand Up @@ -417,10 +418,12 @@
name = "Men's Restroom"
sound_env = SOUND_ENVIRONMENT_BATHROOM
lightswitch = 1
forbid_events = TRUE
/area/groundbase/civilian/womensrestroom
name = "Women's Restroom"
sound_env = SOUND_ENVIRONMENT_BATHROOM
lightswitch = 1
forbid_events = TRUE

/area/groundbase/exploration
name = "Exploration"
Expand Down
4 changes: 3 additions & 1 deletion maps/stellardelight/stellar_delight_areas.dm
Original file line number Diff line number Diff line change
Expand Up @@ -272,16 +272,18 @@

/area/stellardelight/deck3/transitgateway
name = "Transit Gateway"
forbid_events = TRUE
/area/stellardelight/deck3/cryo
name = "Cryogenic Storage"
forbid_events = TRUE

/area/stellardelight/deck3/readingroom
name = "Reading Rooms"
sound_env = SMALL_SOFTFLOOR
flags = RAD_SHIELDED| BLUE_SHIELDED |AREA_FLAG_IS_NOT_PERSISTENT
soundproofed = TRUE
block_suit_sensors = TRUE
forbid_events = TRUE
forbid_events = TRUE

/area/stellardelight/deck3/portdock
name = "Port Dock"
Expand Down

0 comments on commit e1fe484

Please sign in to comment.