mirror of
https://github.com/vgstation-coders/vgstation13.git
synced 2025-12-10 18:32:03 +00:00
Port Legacy Cult (v 2.0) to role_datums. (#18335)
* Port Legacy Cult (v 2.0) to role_datums. * Renaming things * Progress * Makes it compile. * Jecties * JECTIES * Making some progress * There we go * Actually testable (100%) * Dirty * Fixes * Runes being fixed (probably) * I swear to God. I am not retarded. * Fixes converts (and probably a few other things) not working * Forgot * Fixes * Final cut. * We've been surroundited * Objective tweaks * Final fixes * Actually * Cyborgs getting runewords * Typo * Grumble * Overstepping boundaries
This commit is contained in:
committed by
MadmanMartian
parent
7b8ba9914d
commit
c707c264c7
@@ -4603,6 +4603,11 @@
|
||||
|
||||
var/datum/objective/new_objective = new obj_type(null,FALSE)
|
||||
|
||||
if (new_objective.flags & FACTION_OBJECTIVE)
|
||||
var/datum/faction/fac = input("To which faction shall we give this?", "Faction-wide objective", null) as null|anything in ticker.mode.factions
|
||||
fac.handleNewObjective(new_objective)
|
||||
return TRUE // It's a faction objective, let's not move any further.
|
||||
|
||||
if (obj_holder.owner)//so objectives won't target their owners.
|
||||
new_objective.owner = obj_holder.owner
|
||||
|
||||
@@ -4629,10 +4634,12 @@
|
||||
|
||||
ASSERT(istype(objective) && istype(obj_holder))
|
||||
|
||||
obj_holder.objectives.Remove(objective)
|
||||
check_antagonists()
|
||||
if (obj_holder.faction)
|
||||
log_admin("[usr.key]/([usr.name]) removed \the [obj_holder.faction.ID]'s objective ([objective.explanation_text])")
|
||||
objective.faction.handleRemovedObjective(objective)
|
||||
|
||||
obj_holder.objectives.Remove(objective)
|
||||
|
||||
if(href_list["obj_completed"])
|
||||
var/datum/objective/objective = locate(href_list["obj_completed"])
|
||||
@@ -4640,6 +4647,9 @@
|
||||
|
||||
ASSERT(istype(objective))
|
||||
|
||||
if (objective.faction)
|
||||
objective.faction.handleForcedCompletedObjective(objective)
|
||||
|
||||
objective.force_success = !objective.force_success
|
||||
check_antagonists()
|
||||
log_admin("[usr.key]/([usr.name]) toggled [obj_holder.faction.ID] [objective.explanation_text] to [objective.force_success ? "completed" : "incomplete"]")
|
||||
|
||||
Reference in New Issue
Block a user