From eb9c8c9aca8e7c3e65b5d786bdba337546a59806 Mon Sep 17 00:00:00 2001 From: Putnam Date: Wed, 6 Nov 2019 18:07:39 -0800 Subject: [PATCH] made glorious death spend threat --- code/controllers/configuration/entries/dynamic.dm | 3 +++ code/modules/antagonists/traitor/datum_traitor.dm | 2 ++ config/dynamic_config.txt | 2 ++ 3 files changed, 7 insertions(+) diff --git a/code/controllers/configuration/entries/dynamic.dm b/code/controllers/configuration/entries/dynamic.dm index 08384d2d94..0fa7bc81d8 100644 --- a/code/controllers/configuration/entries/dynamic.dm +++ b/code/controllers/configuration/entries/dynamic.dm @@ -58,6 +58,9 @@ /datum/config_entry/number/dynamic_hijack_cost config_entry_value = 5 +/datum/config_entry/number/dynamic_glorious_death_cost + config_entry_value = 5 + /datum/config_entry/number/dynamic_summon_guns_requirement config_entry_value = 10 min_val = 0 diff --git a/code/modules/antagonists/traitor/datum_traitor.dm b/code/modules/antagonists/traitor/datum_traitor.dm index ef37e9f9c3..019ed249ec 100644 --- a/code/modules/antagonists/traitor/datum_traitor.dm +++ b/code/modules/antagonists/traitor/datum_traitor.dm @@ -118,6 +118,8 @@ var/datum/objective/martyr/martyr_objective = new martyr_objective.owner = owner add_objective(martyr_objective) + if(is_dynamic) + mode.spend_threat(CONFIG_GET(number/dynamic_glorious_death_cost)) return else diff --git a/config/dynamic_config.txt b/config/dynamic_config.txt index aa966af30b..10f3044627 100644 --- a/config/dynamic_config.txt +++ b/config/dynamic_config.txt @@ -157,6 +157,8 @@ DYNAMIC_HIJACK_HIGH_POPULATION_REQUIREMENT 25 DYNAMIC_HIJACK_COST 10 +DYNAMIC_GLORIOUS_DEATH_COST 5 + ## Dynamic wizard stuff ## How much threat level is required to buy summon guns. Setting to 0 makes it always available.