Add "Die a glorious death" objective.

This commit is contained in:
Rob Nelson
2014-01-17 13:03:30 -05:00
committed by ZomgPonies
parent b15fb8a04b
commit 985f164541
3 changed files with 22 additions and 5 deletions
+4
View File
@@ -466,6 +466,10 @@ datum/mind
new_objective = new /datum/objective/survive
new_objective.owner = src
if ("die")
new_objective = new /datum/objective/die
new_objective.owner = src
if ("nuclear")
new_objective = new /datum/objective/nuclear
new_objective.owner = src
+10 -2
View File
@@ -297,7 +297,6 @@ datum/objective/hijack
datum/objective/block
explanation_text = "Do not allow any organic lifeforms to escape on the shuttle alive."
check_completion()
if(!istype(owner.current, /mob/living/silicon))
return 0
@@ -338,7 +337,6 @@ datum/objective/silence
datum/objective/escape
explanation_text = "Escape on the shuttle or an escape pod alive and free."
check_completion()
if(issilicon(owner.current))
return 0
@@ -373,6 +371,16 @@ datum/objective/escape
else
return 0
datum/objective/die
explanation_text = "Die a glorious death."
check_completion()
if(!owner.current || owner.current.stat == DEAD || isbrain(owner.current))
return 1 //Brains no longer win survive objectives. --NEO
if(issilicon(owner.current) && owner.current != owner.original)
return 1
return 0
datum/objective/survive
+8 -3
View File
@@ -85,9 +85,14 @@
kill_objective.find_target()
traitor.objectives += kill_objective
var/datum/objective/survive/survive_objective = new
survive_objective.owner = traitor
traitor.objectives += survive_objective
if(prob(25))
var/datum/objective/die/die_objective = new
die_objective.owner = traitor
traitor.objectives += die_objective
else
var/datum/objective/survive/survive_objective = new
survive_objective.owner = traitor
traitor.objectives += survive_objective
if(prob(10))
var/datum/objective/block/block_objective = new