You can no longer get the supermatter sliver objective if the station does not have a supermatter (#21337)

* You can no longer get the supermatter sliver objective if the station does not have a supermatter

* sirryans changes
This commit is contained in:
Qwertytoforty
2023-06-21 22:55:39 +01:00
committed by GitHub
parent fd853221b3
commit 01b09bf3e8
4 changed files with 17 additions and 1 deletions
+2
View File
@@ -507,6 +507,8 @@ GLOBAL_LIST_INIT(potential_theft_objectives, (subtypesof(/datum/theft_objective)
break
if(has_invalid_owner)
continue
if(!O.check_objective_conditions())
continue
if(O.flags & 2) // THEFT_FLAG_UNIQUE
continue
+8
View File
@@ -28,6 +28,11 @@
return 1
return 0
//This proc is to be used for not granting objectives if a special requirement other than job is not met.
/datum/theft_objective/proc/check_objective_conditions()
return TRUE
/datum/proc/check_special_completion() //for objectives with special checks (is that slime extract unused? does that intellicard have an ai in it? etcetc)
return 1
@@ -144,6 +149,9 @@
special_equipment = /obj/item/storage/box/syndie_kit/supermatter
job_possession = FALSE //The CE / engineers / atmos techs do not carry around supermater slivers.
/datum/theft_objective/supermatter_sliver/check_objective_conditions() //If there is no supermatter, you don't get the objective. Yes, one could order it from cargo, but I don't think that is fair, especially if we get a map without a supermatter
return !isnull(GLOB.main_supermatter_engine)
/datum/theft_objective/plutonium_core
name = "the plutonium core from the station's nuclear device"
typepath = /obj/item/nuke_core/plutonium