1) Sets now honor when priorities want to ignore the "wielded" wearable location

master
Durel 7 years ago
parent 6db4500b39
commit 1fe40a9182

@ -13036,8 +13036,14 @@ function inv.set.createWithHandicap(priorityName, level, handicap)
-- whack the shield and hold items in the set because we won't be using them. Otherwise, stick with -- whack the shield and hold items in the set because we won't be using them. Otherwise, stick with
-- the highest scoring weapon, shield, and hold items that we found in the initial search. -- the highest scoring weapon, shield, and hold items that we found in the initial search.
if dualWieldAvailable and (bestWeaponSet.score > scorePrimary + scoreShield + scoreHold) then if dualWieldAvailable and (bestWeaponSet.score > scorePrimary + scoreShield + scoreHold) then
if inv.priority.locIsAllowed(inv.wearLoc[invWearableLocWielded], priorityName, level) then
newSet[inv.wearLoc[invWearableLocWielded]] = bestWeaponSet.primary newSet[inv.wearLoc[invWearableLocWielded]] = bestWeaponSet.primary
newSet[inv.wearLoc[invWearableLocSecond]] = bestWeaponSet.offhand newSet[inv.wearLoc[invWearableLocSecond]] = bestWeaponSet.offhand
else
newSet[inv.wearLoc[invWearableLocWielded]] = nil
newSet[inv.wearLoc[invWearableLocSecond]] = bestWeaponSet.primary
end -- if
newSet[inv.wearLoc[invWearableLocShield]] = nil newSet[inv.wearLoc[invWearableLocShield]] = nil
newSet[inv.wearLoc[invWearableLocHold]] = nil newSet[inv.wearLoc[invWearableLocHold]] = nil
else else

Loading…
Cancel
Save