[PTBF] Incriminate objective for Traitor (#30704)

* incriminate obj

* target fix

* kill indententations with bricks
This commit is contained in:
Zelf
2025-10-25 02:41:10 +01:00
committed by GitHub
parent 2ecff9033a
commit 4cef8afc69
3 changed files with 21 additions and 2 deletions
+4 -1
View File
@@ -680,7 +680,7 @@
var/new_obj_type = input("Select objective type:", "Objective type", def_value) as null|anything in list(
"assassinate", "assassinateonce", "blood", "debrain", "protect", "prevent", "hijack", "escape", "survive", "steal",
"nuclear", "absorb", "destroy", "maroon", "identity theft", "custom")
"nuclear", "absorb", "destroy", "maroon", "identity theft", "incriminate", "custom")
if(!new_obj_type)
return
@@ -798,6 +798,9 @@
new_objective.update_explanation_text()
var/datum/objective/escape/escape_with_identity/O = new_objective
O.target_real_name = new_objective.target.current.real_name
if("incriminate")
new_objective = /datum/objective/incriminate
if("custom")
var/expl = sanitize(copytext_char(input("Custom objective:", "Objective", objective ? objective.explanation_text : "") as text|null, 1, MAX_MESSAGE_LEN))
if(!expl)