--- deliantra/server/common/item.C 2009/11/08 20:55:39 1.66 +++ deliantra/server/common/item.C 2009/11/10 04:38:45 1.67 @@ -205,31 +205,6 @@ static const int item_types_size = sizeof (item_types) / sizeof (*item_types); -materialtype_t *materialt; - -/* -materialtype material[NROFMATERIALS] = { - * P M F E C C A D W G P S P T F C D D C C G H B I * - * H A I L O O C R E H O L A U E A E E H O O O L N * - * Y G R E L N I A A O I O R R A N P A A U D L I T * - * S I E C D F D I P S S W A N R C L T O N Y N R * - * I C T U N O T O L E E H S T P D N * - {"paper", {15,10,17, 9, 5, 7,13, 0,20,15, 0,0,0,0,0,10,0,0,0,0,0,0,0,0}}, - {"metal", { 2,12, 3,12, 2,10, 7, 0,20,15, 0,0,0,0,0,10,0,0,0,0,0,0,0,0}}, - {"glass", {14,11, 8, 3,10, 5, 1, 0,20,15, 0,0,0,0,0, 0,0,0,0,0,0,0,0,0}}, - {"leather", { 5,10,10, 3, 3,10,10, 0,20,15, 0,0,0,0,0,12,0,0,0,0,0,0,0,0}}, - {"wood", {10,11,13, 2, 2,10, 9, 0,20,15, 0,0,0,0,0,12,0,0,0,0,0,0,0,0}}, - {"organics", { 3,12, 9,11, 3,10, 9, 0,20,15, 0,0,0,0,0, 0,0,0,0,0,0,0,0,0}}, - {"stone", { 2, 5, 2, 2, 2, 2, 1, 0,20,15, 0,0,0,0,0, 5,0,0,0,0,0,0,0,0}}, - {"cloth", {14,11,13, 4, 4, 5,10, 0,20,15, 0,0,0,0,0, 5,0,0,0,0,0,0,0,0}}, - {"adamant", { 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,0,0,0,0, 0,0,0,0,0,0,0,0,0}}, - {"liquid", { 0, 8, 9, 6,17, 0,15, 0,20,15,12,0,0,0,0,11,0,0,0,0,0,0,0,0}}, - {"soft metal",{ 6,12, 6,14, 2,10, 1, 0,20,15, 0,0,0,0,0,10,0,0,0,0,0,0,0,0}}, - {"bone", {10, 9, 4, 5, 3,10,10, 0,20,15, 0,0,0,0,0, 2,0,0,0,0,0,0,0,0}}, - {"ice", {14,11,16, 5, 0, 5, 6, 0,20,15, 0,0,0,0,0, 7,0,0,0,0,0,0,0,0}} -}; -*/ - /* This curve may be too steep. But the point is that there should * be tough choices - there is no real point to this if everyone can * wear whatever they want with no worries. Perhaps having the steep @@ -602,9 +577,10 @@ dynbuf_text &buf = bufs [use_buf]; buf.clear (); - if ((op->is_armor () || op->is_weapon ()) && op->materialname) - if (materialtype_t *mt = name_to_material (op->materialname)) - buf << mt->description << ' '; +#if 0 + if ((op->is_armor () || op->is_weapon ()) && op->material) + buf << op->material->description << ' '; +#endif buf << query_short_name (op); @@ -724,10 +700,11 @@ static dynbuf_text buf; buf.clear (); - if ((op->is_armor () || op->is_weapon ()) && op->materialname) - if (materialtype_t *mt = name_to_material (op->materialname)) - if (op->arch->materialname != mt->name) - buf << mt->description << ' '; +#if 0 + if ((op->is_armor () || op->is_weapon ()) && op->material) + if (op->arch->material != op->material) + buf << op->material->description << ' '; +#endif buf << (plural ? op->name_pl : op->name);