From c833dd60b4e0599dbafc71c8d2c01e922c972b88 Mon Sep 17 00:00:00 2001 From: ZomgPonies Date: Wed, 19 Mar 2014 00:40:24 -0400 Subject: [PATCH] Fixed custom item descriptions --- code/modules/customitems/item_spawning.dm | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/code/modules/customitems/item_spawning.dm b/code/modules/customitems/item_spawning.dm index e061afc1019..38d59f9c183 100644 --- a/code/modules/customitems/item_spawning.dm +++ b/code/modules/customitems/item_spawning.dm @@ -42,7 +42,7 @@ */ // Grab the info we want. - var/DBQuery/query = dbcon.NewQuery("SELECT cuiPath, cuiPropAdjust, cuiJobMask FROM CustomUserItems WHERE cuiCKey='[M.ckey]' AND (cuiRealName='[M.real_name]' OR cuiRealName='*')") + var/DBQuery/query = dbcon.NewQuery("SELECT cuiPath, cuiPropAdjust, cuiJobMask, cuiDescription FROM CustomUserItems WHERE cuiCKey='[M.ckey]' AND (cuiRealName='[M.real_name]' OR cuiRealName='*')") query.Execute() while(query.NextRow()) @@ -63,6 +63,7 @@ var/obj/item/Item = new path() + var/description = query.item[4] testing("Adding new custom item [query.item[1]] to [key_name_admin(M)]...") if(istype(Item,/obj/item/weapon/card/id)) var/obj/item/weapon/card/id/I = Item @@ -94,6 +95,8 @@ testing("Added to [S]!") M << "\blue Your [Item.name] has been added to your [S.name]." break + if(description) + Item.desc = description //skip: if (ok == 0) // Finally, since everything else failed, place it on the ground