From 9e5925b1f9f2fa4761a9477ab2a373a936e70871 Mon Sep 17 00:00:00 2001 From: Tastyfish Date: Thu, 12 Jan 2012 01:54:27 -0500 Subject: [PATCH] fixed custom items loaded and custom_items.txt --- code/WorkInProgress/Mini/customitems.dm | 6 +++--- config/custom_items.txt | 4 ++++ 2 files changed, 7 insertions(+), 3 deletions(-) create mode 100644 config/custom_items.txt diff --git a/code/WorkInProgress/Mini/customitems.dm b/code/WorkInProgress/Mini/customitems.dm index 4a5a4391673..c24dfc91f03 100644 --- a/code/WorkInProgress/Mini/customitems.dm +++ b/code/WorkInProgress/Mini/customitems.dm @@ -12,7 +12,7 @@ for(var/line in lines) // split & clean up var/list/Entry = dd_text2list(line, ":") - for(var/i = 1 to parts.len) + for(var/i = 1 to Entry.len) Entry[i] = trim(Entry[i]) if(Entry.len < 3) @@ -20,7 +20,7 @@ if(Entry[1] == M.ckey && Entry[2] == M.real_name) var/list/Paths = dd_text2list(Entry[3], ",") - for(P in Paths) + for(var/P in Paths) var/ok = 0 // 1 if the item was placed successfully P = trim(P) var/path = text2path(P) @@ -37,4 +37,4 @@ break if (ok == 0) // Finally, since everything else failed, place it on the ground - Item.loc = get_turf(M.loc) + Item.loc = get_turf(M.loc) \ No newline at end of file diff --git a/config/custom_items.txt b/config/custom_items.txt new file mode 100644 index 00000000000..aa9d2d0ddde --- /dev/null +++ b/config/custom_items.txt @@ -0,0 +1,4 @@ +skymarshal: Phillip Oswald: /obj/item/weapon/coin/silver +spaceman96: Trenna Seber: /obj/item/weapon/pen/multi, /obj/item/clothing/suit/storage/labcoat/pink +asanadas: Book Berner: /obj/item/clothing/under/chameleon/psyche +tastyfish: Cindy Robertson: /obj/item/weapon/paper \ No newline at end of file