Skip to content

Commit

Permalink
Демонстративное временное отключение аномалий (#2991)
Browse files Browse the repository at this point in the history
  • Loading branch information
AmShegars authored Dec 14, 2024
1 parent b09c22d commit 9bceed3
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions mods/anomaly/code/spawn_anomalies_protocol/spawn_on_planet.dm
Original file line number Diff line number Diff line change
@@ -1,12 +1,11 @@
/datum/map/build_exoplanets()
//Игра заспавнит 1 обычную планету и 1 аномальную
var/list/anomaly_planets_list = list(
/obj/overmap/visitable/sector/exoplanet/ice,
/obj/overmap/visitable/sector/exoplanet/volcanic,
/obj/overmap/visitable/sector/exoplanet/flying
// /obj/overmap/visitable/sector/exoplanet/ice,
// /obj/overmap/visitable/sector/exoplanet/volcanic,
// /obj/overmap/visitable/sector/exoplanet/flying
)
var/list/all_planets_list = subtypesof(/obj/overmap/visitable/sector/exoplanet)
LAZYREMOVE(all_planets_list, anomaly_planets_list)
//Я не придумал как обьяснять игре какая планета обычная, а какая аномальная без
//заранее подготовленных списков. Увы.
if(!use_overmap)
Expand All @@ -16,10 +15,11 @@
var/normal_planet_type = pick(all_planets_list)
var/obj/overmap/visitable/sector/exoplanet/new_planet = new normal_planet_type(null, world.maxx, world.maxy)
new_planet.build_level()

var/anomaly_planet_type = pick(anomaly_planets_list)
var/obj/overmap/visitable/sector/exoplanet/anomaly_new_planet = new anomaly_planet_type(null, world.maxx, world.maxy)
anomaly_new_planet.build_level()
if(LAZYLEN(anomaly_planets_list))
LAZYREMOVE(all_planets_list, anomaly_planets_list)
var/anomaly_planet_type = pick(anomaly_planets_list)
var/obj/overmap/visitable/sector/exoplanet/anomaly_new_planet = new anomaly_planet_type(null, world.maxx, world.maxy)
anomaly_new_planet.build_level()

//Данный код отвечает за размещение аномалий по всей планете.
/obj/overmap/visitable/sector/exoplanet
Expand Down

0 comments on commit 9bceed3

Please sign in to comment.