@@ -615,26 +615,26 @@ function HumanBehaviors.WeaponSearch(AI, Owner, Abort)
615
615
for _ , deviceEntry in pairs (devices ) do
616
616
local device = deviceEntry .device ;
617
617
if MovableMan :ValidMO (device ) then
618
- local pathMultipler = 1 ;
618
+ local pathMultiplier = 1 ;
619
619
if device :HasObjectInGroup (" Weapons - Primary" ) or device :HasObjectInGroup (" Weapons - Heavy" ) then
620
- pathMultipler = 0.4 ; -- prioritize primary or heavy weapons
620
+ pathMultiplier = 0.4 ; -- prioritize primary or heavy weapons
621
621
elseif device .ClassName == " TDExplosive" then
622
- pathMultipler = 1.4 ; -- avoid grenades if there are other weapons
622
+ pathMultiplier = 1.4 ; -- avoid grenades if there are other weapons
623
623
elseif device :IsTool () then
624
624
if pickupDiggers and device :HasObjectInGroup (" Tools - Diggers" ) then
625
- pathMultipler = 1.8 ; -- avoid diggers if there are other weapons
625
+ pathMultiplier = 1.8 ; -- avoid diggers if there are other weapons
626
626
else
627
- pathMultipler = - 1 ; -- disregard non-digger tools
627
+ pathMultiplier = - 1 ; -- disregard non-digger tools
628
628
end
629
629
end
630
630
631
- if pathMultipler ~= - 1 then
631
+ if pathMultiplier ~= - 1 then
632
632
local deviceID = device .UniqueID ;
633
633
SceneMan .Scene :CalculatePathAsync (
634
634
function (pathRequest )
635
635
local pathLength = pathRequest .PathLength ;
636
636
if pathRequest .Status ~= PathRequest .NoSolution and pathLength < maxPathLength then
637
- local score = pathLength * pathMultipler ;
637
+ local score = pathLength * pathMultiplier ;
638
638
table.insert (devicesToPickUp , {deviceId = deviceID , score = score });
639
639
end
640
640
searchesRemaining = searchesRemaining - 1 ;
0 commit comments