mirror of
https://github.com/Aurorastation/Aurora.3.git
synced 2025-12-21 15:42:35 +00:00
Adds a gamemode probability verb (#3320)
Using the show server revision verb will now show the percent chance of each gamemode in the secret and mixed secret rotation. Based off of how TG did it.
This commit is contained in:
@@ -273,6 +273,8 @@ var/list/gamemode_cache = list()
|
||||
|
||||
var/merchant_chance = 20 //Chance, in percentage, of the merchant job slot being open at round start
|
||||
|
||||
var/show_game_type_odd = 1 // If the check gamemode probability verb is enabled or not
|
||||
|
||||
/datum/configuration/New()
|
||||
var/list/L = typesof(/datum/game_mode) - /datum/game_mode
|
||||
for (var/T in L)
|
||||
@@ -842,6 +844,8 @@ var/list/gamemode_cache = list()
|
||||
if("merchant_chance")
|
||||
config.merchant_chance = text2num(value)
|
||||
|
||||
if("show_game_type_odd")
|
||||
config.show_game_type_odd = 1
|
||||
else
|
||||
log_misc("Unknown setting in configuration: '[name]'")
|
||||
|
||||
|
||||
Reference in New Issue
Block a user