Adminbus heirloom objective

This commit is contained in:
Archie
2021-06-01 19:18:39 -03:00
parent 7e250ce9ee
commit 4925c15e49
2 changed files with 8 additions and 2 deletions
+7 -1
View File
@@ -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