mirror of
https://github.com/ParadiseSS13/Paradise.git
synced 2026-08-22 11:37:40 +01:00
Framework for Job Objectives
This commit is contained in:
@@ -57,8 +57,18 @@
|
||||
return 0
|
||||
|
||||
|
||||
proc/spawn_result()
|
||||
proc/spawn_result(mob/user as mob)
|
||||
if(result)
|
||||
// PAY ME
|
||||
var/taskpath=null
|
||||
switch(result)
|
||||
if(/obj/mecha/working/ripley)
|
||||
taskpath = /datum/job_objective/make_ripley
|
||||
if(taskpath)
|
||||
var/datum/job_objective/task = user.mind.findJobTask(taskpath)
|
||||
if(istype(task))
|
||||
task.unit_completed()
|
||||
|
||||
new result(get_turf(holder))
|
||||
spawn()
|
||||
del holder
|
||||
|
||||
@@ -99,6 +99,15 @@ datum/mind
|
||||
output += "<B>Objective #[obj_count]</B>: [objective.explanation_text]"
|
||||
obj_count++
|
||||
|
||||
if(job_objectives.len>0)
|
||||
output += "<HR><B>Job Objectives:</B><UL>"
|
||||
|
||||
var/obj_count = 1
|
||||
for(var/datum/job_objective/objective in job_objectives)
|
||||
output += "<LI><B>Task #[obj_count]</B>: [objective.get_description()]</LI>"
|
||||
obj_count++
|
||||
output += "</UL>"
|
||||
|
||||
recipient << browse(output,"window=memory")
|
||||
|
||||
proc/edit_memory()
|
||||
|
||||
Reference in New Issue
Block a user