Porting objective code refactor

This commit is contained in:
Ghommie
2019-11-04 22:05:04 +01:00
parent 4e8c8ad335
commit 8c31c1036d
46 changed files with 399 additions and 326 deletions

View File

@@ -40,7 +40,8 @@
/obj/item/greentext/equipped(mob/living/user as mob)
to_chat(user, "<font color='green'>So long as you leave this place with greentext in hand you know will be happy...</font>")
if(user.mind && user.mind.objectives.len > 0)
var/list/other_objectives = user.mind.get_all_objectives()
if(user.mind && other_objectives.len > 0)
to_chat(user, "<span class='warning'>... so long as you still perform your other objectives that is!</span>")
new_holder = user
if(!last_holder)