mirror of
https://github.com/ParadiseSS13/Paradise.git
synced 2026-08-23 03:57:13 +01:00
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:
+3
-3
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user