address type 1 item stats not calculating correctly
This commit is contained in:
parent
0ba4872482
commit
71e9fef163
1 changed files with 3 additions and 4 deletions
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue