mirror of
https://github.com/CHOMPStation2/CHOMPStation2.git
synced 2025-12-10 02:09:41 +00:00
Configuration Controller (#7857)
This commit is contained in:
@@ -288,7 +288,7 @@
|
||||
|
||||
for(var/obj/item/organ/E in H.bad_external_organs)
|
||||
var/obj/item/organ/external/affected = E
|
||||
if((affected.damage < affected.min_broken_damage * config.organ_health_multiplier) && (affected.status & ORGAN_BROKEN))
|
||||
if((affected.damage < affected.min_broken_damage * CONFIG_GET(number/organ_health_multiplier)) && (affected.status & ORGAN_BROKEN)) // CHOMPEdit
|
||||
affected.status &= ~ORGAN_BROKEN
|
||||
|
||||
for(var/datum/wound/W in affected.wounds)
|
||||
|
||||
@@ -277,7 +277,7 @@ var/list/sacrificed = list()
|
||||
H.sdisabilities &= ~BLIND
|
||||
for(var/obj/item/organ/E in H.bad_external_organs)
|
||||
var/obj/item/organ/external/affected = E
|
||||
if((affected.damage < affected.min_broken_damage * config.organ_health_multiplier) && (affected.status & ORGAN_BROKEN))
|
||||
if((affected.damage < affected.min_broken_damage * CONFIG_GET(number/organ_health_multiplier)) && (affected.status & ORGAN_BROKEN)) // CHOMPEdit
|
||||
affected.status &= ~ORGAN_BROKEN
|
||||
for(var/datum/wound/W in affected.wounds)
|
||||
if(istype(W, /datum/wound/internal_bleeding))
|
||||
|
||||
@@ -109,7 +109,7 @@
|
||||
if(src.imprinted != "empty")
|
||||
to_chat(U, "<span class='danger'>Capture failed!</span>: The soul stone has already been imprinted with [src.imprinted]'s mind!")
|
||||
return
|
||||
if ((T.health + T.halloss) > config.health_threshold_crit && T.stat != DEAD)
|
||||
if ((T.health + T.halloss) > CONFIG_GET(number/health_threshold_crit) && T.stat != DEAD) // CHOMPEdit
|
||||
to_chat(U, "<span class='danger'>Capture failed!</span>: Kill or maim the victim first!")
|
||||
return
|
||||
if(T.client == null)
|
||||
|
||||
@@ -3,8 +3,8 @@
|
||||
hadevent = 1
|
||||
message_admins("The apocalypse has begun! (this holiday event can be disabled by toggling events off within 60 seconds)")
|
||||
spawn(600)
|
||||
if(!config.allow_random_events) return
|
||||
if(!CONFIG_GET(flag/allow_random_events)) return // CHOMPEdit
|
||||
Show2Group4Delay(ScreenText(null,"<center><font color='red' size='8'>GAME OVER</font></center>"),null,150)
|
||||
for(var/i=1,i<=4,i++)
|
||||
spawn_dynamic_event()
|
||||
sleep(50)
|
||||
sleep(50)
|
||||
|
||||
@@ -148,10 +148,10 @@ var/global/list/additional_antag_types = list()
|
||||
playerC++
|
||||
|
||||
if(master_mode=="secret")
|
||||
if(playerC < config.player_requirements_secret[config_tag])
|
||||
if(playerC < CONFIG_GET(keyed_list/player_requirements_secret)[config_tag]) // CHOMPEdit
|
||||
return 0
|
||||
else
|
||||
if(playerC < config.player_requirements[config_tag])
|
||||
if(playerC < CONFIG_GET(keyed_list/player_requirements)[config_tag]) // CHOMPEdit
|
||||
return 0
|
||||
|
||||
if(!(antag_templates && antag_templates.len))
|
||||
@@ -273,7 +273,7 @@ var/global/list/additional_antag_types = list()
|
||||
for(var/datum/antagonist/antag in antag_templates)
|
||||
if(!antag.antags_are_dead())
|
||||
return 0
|
||||
if(config.continous_rounds)
|
||||
if(CONFIG_GET(flag/continuous_rounds)) // CHOMPEdit
|
||||
emergency_shuttle.auto_recall = 0
|
||||
return 0
|
||||
return 1
|
||||
@@ -472,7 +472,7 @@ var/global/list/additional_antag_types = list()
|
||||
|
||||
/datum/game_mode/proc/create_antagonists()
|
||||
|
||||
if(!config.traitor_scaling)
|
||||
if(!CONFIG_GET(flag/traitor_scaling)) // CHOMPEdit
|
||||
antag_scaling_coeff = 0
|
||||
|
||||
if(antag_tags && antag_tags.len)
|
||||
|
||||
@@ -104,7 +104,7 @@
|
||||
|
||||
|
||||
/datum/game_mode/proc/forge_meme_objectives(var/datum/mind/meme, var/datum/mind/first_host)
|
||||
if (config.objectives_disabled)
|
||||
if (CONFIG_GET(flag/objectives_disabled)) // CHOMPEdit
|
||||
return
|
||||
|
||||
// meme always needs to attune X hosts
|
||||
|
||||
@@ -33,7 +33,7 @@ var/list/nuke_disks = list()
|
||||
return 0
|
||||
|
||||
/datum/game_mode/nuclear/declare_completion()
|
||||
if(config.objectives_disabled)
|
||||
if(CONFIG_GET(flag/objectives_disabled)) // CHOMPEdit
|
||||
..()
|
||||
return
|
||||
var/disk_rescued = 1
|
||||
|
||||
@@ -40,7 +40,7 @@
|
||||
|
||||
for(var/obj/item/organ/E in H.bad_external_organs) // Fix bones
|
||||
var/obj/item/organ/external/affected = E
|
||||
if((affected.damage < affected.min_broken_damage * config.organ_health_multiplier) && (affected.status & ORGAN_BROKEN))
|
||||
if((affected.damage < affected.min_broken_damage * CONFIG_GET(number/organ_health_multiplier)) && (affected.status & ORGAN_BROKEN)) // CHOMPEdit
|
||||
affected.status &= ~ORGAN_BROKEN
|
||||
|
||||
for(var/datum/wound/W in affected.wounds) // Fix IB
|
||||
|
||||
@@ -44,7 +44,7 @@
|
||||
|
||||
for(var/obj/item/organ/E in H.bad_external_organs) // Fix bones
|
||||
var/obj/item/organ/external/affected = E
|
||||
if((affected.damage < affected.min_broken_damage * config.organ_health_multiplier) && (affected.status & ORGAN_BROKEN))
|
||||
if((affected.damage < affected.min_broken_damage * CONFIG_GET(number/organ_health_multiplier)) && (affected.status & ORGAN_BROKEN)) // CHOMPEdit
|
||||
affected.status &= ~ORGAN_BROKEN
|
||||
|
||||
for(var/datum/wound/W in affected.wounds) // Fix IB
|
||||
|
||||
Reference in New Issue
Block a user