Adds "Teach them a lesson" Objective (traitor only) (#22933)

* Adds the tech them a lesson objective.

* minor changes

* SPACING!

* onesmallupdate

* requestedchanges

* requestedchanges
This commit is contained in:
Aquilar
2023-11-04 16:30:16 -04:00
committed by GitHub
parent a9596307d9
commit 14fbf2b4a9
3 changed files with 32 additions and 3 deletions
+3 -3
View File
@@ -631,7 +631,7 @@
def_value = "custom"
var/new_obj_type = input("Select objective type:", "Objective type", def_value) as null|anything in list(
"assassinate", "blood", "debrain", "protect", "prevent", "hijack", "escape", "survive", "steal", "download",
"assassinate", "assassinateonce", "blood", "debrain", "protect", "prevent", "hijack", "escape", "survive", "steal", "download",
"nuclear", "capture", "absorb", "destroy", "maroon", "identity theft", "custom")
if(!new_obj_type)
return
@@ -639,7 +639,7 @@
var/datum/objective/new_objective = null
switch(new_obj_type)
if("assassinate","protect","debrain", "maroon")
if("assassinate", "assassinateonce", "protect","debrain", "maroon")
//To determine what to name the objective in explanation text.
var/objective_type_capital = uppertext(copytext(new_obj_type, 1,2))//Capitalize first letter.
var/objective_type_text = copytext(new_obj_type, 2)//Leave the rest of the text.
@@ -654,7 +654,7 @@
possible_targets_random += possible_target.current // For random picking, only valid targets
var/mob/def_target = null
var/objective_list[] = list(/datum/objective/assassinate, /datum/objective/protect, /datum/objective/debrain)
var/objective_list[] = list(/datum/objective/assassinate, /datum/objective/assassinateonce, /datum/objective/protect, /datum/objective/debrain)
if(objective&&(objective.type in objective_list) && objective:target)
def_target = objective.target.current
possible_targets = sortAtom(possible_targets)