Edits the Assistant Storage vendor into a separate object. Adds hidden item amount variable.

git-svn-id: http://tgstation13.googlecode.com/svn/trunk@11 316c924e-a436-60f5-8080-3fe189b3f50e
This commit is contained in:
datdoodlemaster@gmail.com
2010-08-29 02:13:44 +00:00
parent 44e4cbca05
commit 92e2fedd2b
4 changed files with 18 additions and 23 deletions
+5 -10
View File
@@ -18,14 +18,15 @@
var/list/temp_paths = dd_text2List(src.product_paths, ";")
var/list/temp_amounts = dd_text2List(src.product_amounts, ";")
var/list/temp_hidden = dd_text2List(src.product_hidden, ";")
var/list/temp_hideamt = dd_text2List(src.product_hideamt, ";")
//Little sanity check here
if ((isnull(temp_paths)) || (isnull(temp_amounts)) || (temp_paths.len != temp_amounts.len))
if ((isnull(temp_paths)) || (isnull(temp_amounts)) || (temp_paths.len != temp_amounts.len) || (temp_hidden.len != temp_hideamt.len))
stat |= BROKEN
return
src.build_inventory(temp_paths,temp_amounts)
//Add hidden inventory
src.build_inventory(temp_hidden,null,1)
src.build_inventory(temp_hidden,temp_hideamt, 1)
return
return
@@ -68,14 +69,8 @@
R.product_name = capitalize(temp.name)
R.product_path = path_list[p]
R.display_color = pick("red","blue","green")
if(hidden)
R.amount = rand(1,6)
src.hidden_records += R
else
R.amount = text2num(amt_list[p])
src.product_records += R
R.amount = text2num(amt_list[p])
src.product_records += R
del(temp)