Now stores seeds properly by checking names and assigning names on storage, instead of just putting them all under "Fruit"

This commit is contained in:
Datraen
2016-06-06 22:38:09 -04:00
parent fe7c079747
commit 94a0e186af
+4 -3
View File
@@ -310,10 +310,11 @@
var/hasRecord = FALSE //Check to see if this passes or not.
for(var/datum/data/stored_item/I in item_records)
if(istype(G, I.item_path))
stock(G, I)
hasRecord = TRUE
if(G.name == I.item_name)
stock(G, I)
hasRecord = TRUE
if(!hasRecord)
var/datum/data/stored_item/item = new/datum/data/stored_item(src, G.type)
var/datum/data/stored_item/item = new/datum/data/stored_item(src, G.type, G.name)
stock(G, item)
item_records.Add(item)