Secret documents cannot be normal steal objectives

This commit is contained in:
DZD
2015-01-31 16:52:03 -05:00
parent 4bba44d228
commit 4b31b3270a
2 changed files with 6 additions and 0 deletions
+2
View File
@@ -593,6 +593,8 @@ datum/objective/steal
else
if(O.flags & 1) // THEFT_FLAG_SPECIAL
continue
if(O.flags & 2)
continue
steal_target=O
explanation_text = "Steal [O]."
return
+4
View File
@@ -3,6 +3,7 @@
// Separated into datums so we can prevent roles from getting certain objectives.
#define THEFT_FLAG_SPECIAL 1
#define THEFT_FLAG_UNIQUE 2
/datum/theft_objective
var/name=""
@@ -224,6 +225,9 @@ datum/theft_objective/ai/check_special_completion(var/obj/item/device/aicard/C)
/datum/theft_objective/special
flags = THEFT_FLAG_SPECIAL
/datum/theft_objective/unique
flags = THEFT_FLAG_UNIQUE
/datum/theft_objective/unique/docs_red
name = "the \"Red\" secret documents"
typepath = /obj/item/documents/syndicate/red