瀏覽代碼

address type 1 item stats not calculating correctly

Emagi 2 年之前
父節點
當前提交
71e9fef163
共有 1 個文件被更改,包括 3 次插入4 次删除
  1. 3 4
      EQ2/source/WorldServer/Items/Items.cpp

+ 3 - 4
EQ2/source/WorldServer/Items/Items.cpp

@@ -837,18 +837,17 @@ ItemStatsValues* MasterItemList::CalculateItemBonuses(Item* item, Entity* entity
 					id = stat->stat_type*multiplier + stat->stat_subtype;
 			else
 			{
-				int32 tmp_id = master_item_list.GetItemStatIDByName(stat->stat_name);
+				int32 tmp_id = master_item_list.GetItemStatIDByName(::ToLower(stat->stat_name));
 				if(tmp_id != 0xFFFFFFFF)
 				{
 					id = tmp_id;
-					if(!value)
-						value = stat->stat_subtype;		
+					value = stat->stat_subtype;		
 				}
 				else
 					id = stat->stat_type*multiplier + stat->stat_subtype;
 			}
 
-			world.AddBonuses(item, values, id, stat->value, entity);
+			world.AddBonuses(item, values, id, value, entity);
 		}
 		return values;
 	}