Use typed item keys in server item decisions
This commit is contained in:
parent
4891c7fafc
commit
c245538793
5 changed files with 6 additions and 7 deletions
|
|
@ -404,7 +404,7 @@ public abstract class Entity
|
|||
public void GenerateWeaponGroups()
|
||||
{
|
||||
foreach (var group in Weapons
|
||||
.GroupBy(w => w.Item.EquippableItem.ItemId)
|
||||
.GroupBy(w => w.Item.EquippableItem.ItemKey)
|
||||
.OrderBy(wg=>wg.Average(w=>w.Range))
|
||||
.Select((weapons, index) => (weapons, index)))
|
||||
{
|
||||
|
|
|
|||
Loading…
Reference in a new issue