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