Skip to content

Commit

Permalink
Remove redundant CalcStatChanges
Browse files Browse the repository at this point in the history
  • Loading branch information
1337LutZ committed Jan 10, 2025
1 parent fce2792 commit f48017e
Showing 1 changed file with 0 additions and 11 deletions.
11 changes: 0 additions & 11 deletions sim/core/item_swaps.go
Original file line number Diff line number Diff line change
Expand Up @@ -267,17 +267,6 @@ func (swap *ItemSwap) EligibleSlotsForEffect(effectID int32) []proto.ItemSlot {
return eligibleSlots
}

func (swap *ItemSwap) CalcStatChanges(slots []proto.ItemSlot) stats.Stats {
newStats := stats.Stats{}
for _, slot := range slots {
oldItemStats := swap.getItemStats(*swap.GetEquippedItemBySlot(slot))
newItemStats := swap.getItemStats(*swap.GetUnequippedItemBySlot(slot))
newStats = newStats.Add(newItemStats.Subtract(oldItemStats))
}

return newStats
}

func (swap *ItemSwap) CalcEquipmentStatsOffset(originalEquipment Equipment, swapEquipment Equipment) ItemSwapStats {
allSlots := stats.Stats{}
weaponSlots := stats.Stats{}
Expand Down

0 comments on commit f48017e

Please sign in to comment.