mirror of
https://github.com/KabKebab/GS13.git
synced 2026-03-27 21:52:58 +00:00
Merge pull request #1212 from ArchieBeepBoop/heirloomstuff
Adminbus heirloom objective
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -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"
|
||||
|
||||
Reference in New Issue
Block a user