fix config options

This commit is contained in:
datlo
2019-02-04 00:21:13 +00:00
parent ca5543a637
commit cf1a95dabc
6 changed files with 18 additions and 3 deletions
+1 -1
View File
@@ -36,7 +36,7 @@ GLOBAL_LIST_INIT(tracked_implants, list()) //list of all current implants that
GLOBAL_LIST_INIT(pinpointer_list, list()) //list of all pinpointers. Used to change stuff they are pointing to all at once.
GLOBAL_LIST_INIT(nuclear_uplink_list, list()) //list of all existing nuke ops uplinks
GLOBAL_LIST_INIT(abductor_equipment, list()) //list of all abductor equipment
GLOBAL_LIST_INIT(free_golem_shells, list()) //list of all free golem shells
GLOBAL_LIST_INIT(global_intercoms, list()) //list of all intercomms, across all z-levels
GLOBAL_LIST_INIT(global_radios, list()) //list of all radios, across all z-levels
+1
View File
@@ -12,6 +12,7 @@ var/list/blob_nodes = list()
required_enemies = 1
recommended_enemies = 1
restricted_jobs = list("Cyborg", "AI")
free_golems_disabled = TRUE
var/declared = 0
var/burst = 0
+8 -1
View File
@@ -27,6 +27,7 @@
var/recommended_enemies = 0
var/newscaster_announcements = null
var/ert_disabled = 0
var/free_golems_disabled = FALSE
var/uplink_welcome = "Syndicate Uplink Console:"
var/uplink_uses = 20
@@ -79,6 +80,7 @@
// feedback_set_details("revision","[revdata.revision]")
feedback_set_details("server_ip","[world.internet_address]:[world.port]")
generate_station_goals()
check_free_golems()
start_state = new /datum/station_state()
start_state.count()
return 1
@@ -494,4 +496,9 @@ proc/display_roundstart_logout_report()
/datum/game_mode/proc/declare_station_goal_completion()
for(var/V in station_goals)
var/datum/station_goal/G = V
G.print_result()
G.print_result()
/datum/game_mode/proc/check_free_golems() //check config and gamemode for free golems setting and run the prob to check if the round will have free golems spawned or not
if((!config.unrestricted_free_golems && free_golems_disabled) || !prob(config.prob_free_golems))
for(var/obj/effect/mob_spawn/human/golem/G in GLOB.free_golem_shells)
qdel(G)
+1
View File
@@ -12,6 +12,7 @@ proc/issyndicate(mob/living/M as mob)
required_players = 30 // 30 players - 5 players to be the nuke ops = 25 players remaining
required_enemies = 5
recommended_enemies = 5
free_golems_disabled = TRUE
var/const/agents_possible = 5 //If we ever need more syndicate agents.
+1
View File
@@ -7,6 +7,7 @@
required_players = 20
required_enemies = 1
recommended_enemies = 1
free_golems_disabled = TRUE
var/use_huds = 0
var/finished = 0
@@ -67,6 +67,11 @@
travel the stars with a single declaration: \"Yeah go do whatever.\" Though you are bound to the one who created you, it is customary in your society to repeat those same words to newborn \
golems, so that no golem may ever be forced to serve again.</b>"
/obj/effect/mob_spawn/human/golem/New()
..()
if(!has_owner)
GLOB.free_golem_shells += src
/obj/effect/mob_spawn/human/golem/Initialize(mapload, datum/species/golem/species = null, mob/creator = null)
if(species) //spawners list uses object name to register so this goes before ..()
name += " ([initial(species.prefix)])"
@@ -132,4 +137,4 @@
desc = "A humanoid shape, empty, lifeless, and full of potential."
mob_name = "a free golem"
can_transfer = FALSE
mob_species = /datum/species/golem/adamantine
mob_species = /datum/species/golem/adamantine