Display cases can now have a list where to randomly spawn items from (#36058)

* Adds allowing display cases to pick from a random list

Keeps compatibility with older maps and moves trophy/plaque message to all display cases

* A bit more legible

* Refactors statues tool interaction code

* Don't override it already exists

* done
This commit is contained in:
Dax Dupont
2018-03-09 09:17:57 +01:00
committed by AnturK
parent e64a33211c
commit cffedcf7c1
3 changed files with 28 additions and 53 deletions
@@ -171,6 +171,8 @@ SUBSYSTEM_DEF(persistence)
/datum/controller/subsystem/persistence/proc/SetUpTrophies(list/trophy_items)
for(var/A in GLOB.trophy_cases)
var/obj/structure/displaycase/trophy/T = A
if (T.showpiece)
continue
T.added_roundstart = TRUE
var/trophy_data = pick_n_take(trophy_items)