Browse Source

address type 1 item stats not calculating correctly

Emagi 1 year ago
parent
commit
71e9fef163
1 changed files with 3 additions and 4 deletions
  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;
 	}