mirror of
https://github.com/VOREStation/VOREStation.git
synced 2026-08-24 04:28:12 +01:00
Adds 'vore' objective
This commit is contained in:
+4
-1
@@ -291,7 +291,7 @@
|
||||
if (!steal.select_target())
|
||||
return
|
||||
|
||||
if("download","capture","absorb")
|
||||
if("download","capture","absorb", "vore")
|
||||
var/def_num
|
||||
if(objective&&objective.type==text2path("/datum/objective/[new_obj_type]"))
|
||||
def_num = objective.target_amount
|
||||
@@ -310,6 +310,9 @@
|
||||
if("absorb")
|
||||
new_objective = new /datum/objective/absorb
|
||||
new_objective.explanation_text = "Absorb [target_number] compatible genomes."
|
||||
if("vore")
|
||||
new_objective = new /datum/objective/vore
|
||||
new_objective.explanation_text = "Devour [target_number] [target_number == 1 ? "person" : "people"]. What happens to them after you do that is irrelevant."
|
||||
new_objective.owner = src
|
||||
new_objective.target_amount = target_number
|
||||
|
||||
|
||||
@@ -4,6 +4,7 @@
|
||||
var/directory_tag
|
||||
var/directory_erptag
|
||||
var/directory_ad
|
||||
var/vore_prey_eaten = 0
|
||||
|
||||
/mob/living/mind_initialize()
|
||||
. = ..()
|
||||
|
||||
@@ -23,10 +23,10 @@
|
||||
feedback_add_details(feedback_tag,"[O.type]|FAIL")
|
||||
failed = TRUE
|
||||
num++
|
||||
if(failed)
|
||||
text += "<br><font color='red'><B>The [role_text] has failed.</B></font>"
|
||||
else
|
||||
text += "<br><font color='green'><B>The [role_text] was successful!</B></font>"
|
||||
if(failed)
|
||||
text += "<br><font color='red'><B>The [role_text] has failed.</B></font>"
|
||||
else
|
||||
text += "<br><font color='green'><B>The [role_text] was successful!</B></font>"
|
||||
|
||||
if(global_objectives && global_objectives.len)
|
||||
text += "<BR><FONT size = 2>Their objectives were:</FONT>"
|
||||
|
||||
@@ -627,6 +627,12 @@ var/global/list/all_objectives = list()
|
||||
else
|
||||
return 0
|
||||
|
||||
/datum/objective/vore/check_completion()
|
||||
if(owner && owner.vore_prey_eaten >= target_amount)
|
||||
return 1
|
||||
else
|
||||
return 0
|
||||
|
||||
// Heist objectives.
|
||||
/datum/objective/heist/proc/choose_target()
|
||||
return
|
||||
|
||||
@@ -498,6 +498,8 @@
|
||||
|
||||
if(prey.ckey)
|
||||
GLOB.prey_eaten_roundstat++
|
||||
if(owner.mind)
|
||||
owner.mind.vore_prey_eaten++
|
||||
|
||||
// Get the line that should show up in Examine message if the owner of this belly
|
||||
// is examined. By making this a proc, we not only take advantage of polymorphism,
|
||||
|
||||
Reference in New Issue
Block a user