Conditional department goals (#9457)

* just need to autodoc

* some autodocs

* autodocs SSYogs

* removes the cargo tesla goal
This commit is contained in:
Nichlas Pihl
2020-08-15 15:05:25 +01:00
committed by GitHub
parent 30fb85b92b
commit e7c79c5f7b
6 changed files with 130 additions and 26 deletions

View File

@@ -646,6 +646,10 @@ GLOBAL_DATUM(main_supermatter_engine, /obj/machinery/power/supermatter_crystal)
investigate_log("has been powered for the first time.", INVESTIGATE_SUPERMATTER)
message_admins("[src] has been powered for the first time [ADMIN_JMP(src)].")
has_been_powered = TRUE
var/datum/department_goal/eng/additional_supermatter/goal = locate() in SSYogs.department_goals
if(goal)
goal.complete()
else if(takes_damage)
damage += Proj.damage * config_bullet_energy
return BULLET_ACT_HIT