mirror of
https://github.com/Bubberstation/Bubberstation.git
synced 2026-07-16 10:35:41 +01:00
Merge remote-tracking branch 'Skyrat-SS13/master' into upstream-2024-06-16
# Conflicts: # _maps/_basemap.dm # _maps/map_files/IceBoxStation/IceBoxStation.dmm # _maps/skyrat/automapper/automapper_config.toml # code/__DEFINES/surgery.dm # code/datums/weather/weather_types/radiation_storm.dm # code/modules/antagonists/changeling/changeling.dm # code/modules/clothing/neck/_neck.dm # code/modules/events/_event.dm # code/modules/jobs/job_types/_job.dm # code/modules/mining/equipment/kinetic_crusher.dm # code/modules/mob/living/basic/vermin/frog.dm # modular_skyrat/modules/borgs/code/robot_upgrade.dm
This commit is contained in:
@@ -95,8 +95,7 @@ PROCESSING_SUBSYSTEM_DEF(station)
|
||||
|
||||
return
|
||||
|
||||
for(var/i in subtypesof(/datum/station_trait))
|
||||
var/datum/station_trait/trait_typepath = i
|
||||
for(var/datum/station_trait/trait_typepath as anything in subtypesof(/datum/station_trait))
|
||||
|
||||
// If forced, (probably debugging), just set it up now, keep it out of the pool.
|
||||
if(initial(trait_typepath.force))
|
||||
@@ -115,6 +114,14 @@ PROCESSING_SUBSYSTEM_DEF(station)
|
||||
if(!(initial(trait_typepath.trait_flags) & STATION_TRAIT_REQUIRES_AI) && !CONFIG_GET(flag/allow_ai)) //can't have AI traits without AI
|
||||
continue
|
||||
|
||||
if(ispath(trait_typepath, /datum/station_trait/random_event_weight_modifier)) //Don't add event modifiers for events that can't occur on our map.
|
||||
var/datum/station_trait/random_event_weight_modifier/random_trait_typepath = trait_typepath
|
||||
var/datum/round_event_control/event_to_check = initial(random_trait_typepath.event_control_path)
|
||||
if(event_to_check)
|
||||
event_to_check = new event_to_check()
|
||||
if(!event_to_check.valid_for_map())
|
||||
continue
|
||||
|
||||
selectable_traits_by_types[initial(trait_typepath.trait_type)][trait_typepath] = initial(trait_typepath.weight)
|
||||
|
||||
var/positive_trait_budget = text2num(pick_weight(CONFIG_GET(keyed_list/positive_station_traits)))
|
||||
|
||||
Reference in New Issue
Block a user