From 4925c15e49656a3594fc9d1d3133ebecd1e1e9c9 Mon Sep 17 00:00:00 2001 From: Archie Date: Tue, 1 Jun 2021 19:18:39 -0300 Subject: [PATCH] Adminbus heirloom objective --- code/datums/mind.dm | 8 +++++++- code/game/gamemodes/objective.dm | 2 +- 2 files changed, 8 insertions(+), 2 deletions(-) diff --git a/code/datums/mind.dm b/code/datums/mind.dm index 8712851a6..f6ce9a6a0 100644 --- a/code/datums/mind.dm +++ b/code/datums/mind.dm @@ -471,7 +471,7 @@ else target_antag = target - var/new_obj_type = input("Select objective type:", "Objective type", def_value) as null|anything in list("assassinate", "maroon", "debrain", "protect", "destroy", "prevent", "hijack", "escape", "survive", "martyr", "steal", "download", "nuclear", "capture", "absorb", "noncon", "custom") + var/new_obj_type = input("Select objective type:", "Objective type", def_value) as null|anything in list("assassinate", "maroon", "debrain", "protect", "destroy", "prevent", "hijack", "escape", "survive", "martyr", "heirloom", "steal", "download", "nuclear", "capture", "absorb", "noncon", "custom") if (!new_obj_type) return @@ -541,6 +541,12 @@ new_objective = new /datum/objective/nuclear new_objective.owner = src + if ("heirloom") + new_objective = new /datum/objective/hoard/heirloom + new_objective.owner = src + var/datum/objective/hoard/heirloom/heirloom = new_objective + heirloom.find_target() + if ("steal") if (!istype(objective, /datum/objective/steal)) new_objective = new /datum/objective/steal diff --git a/code/game/gamemodes/objective.dm b/code/game/gamemodes/objective.dm index 996553e15..cc8173caa 100644 --- a/code/game/gamemodes/objective.dm +++ b/code/game/gamemodes/objective.dm @@ -894,7 +894,7 @@ GLOBAL_LIST_EMPTY(possible_items_special) /datum/objective/hoard/proc/set_target(obj/item/I) if(I) hoarded_item = I - explanation_text = "Keep [I] on your person at all times." + explanation_text = "Steal and keep [I] heirloom on your person at all times." return hoarded_item else explanation_text = "Free objective"