@@ -615,26 +615,26 @@ function HumanBehaviors.WeaponSearch(AI, Owner, Abort)
615615 for _ , deviceEntry in pairs (devices ) do
616616 local device = deviceEntry .device ;
617617 if MovableMan :ValidMO (device ) then
618- local pathMultipler = 1 ;
618+ local pathMultiplier = 1 ;
619619 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
621621 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
623623 elseif device :IsTool () then
624624 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
626626 else
627- pathMultipler = - 1 ; -- disregard non-digger tools
627+ pathMultiplier = - 1 ; -- disregard non-digger tools
628628 end
629629 end
630630
631- if pathMultipler ~= - 1 then
631+ if pathMultiplier ~= - 1 then
632632 local deviceID = device .UniqueID ;
633633 SceneMan .Scene :CalculatePathAsync (
634634 function (pathRequest )
635635 local pathLength = pathRequest .PathLength ;
636636 if pathRequest .Status ~= PathRequest .NoSolution and pathLength < maxPathLength then
637- local score = pathLength * pathMultipler ;
637+ local score = pathLength * pathMultiplier ;
638638 table.insert (devicesToPickUp , {deviceId = deviceID , score = score });
639639 end
640640 searchesRemaining = searchesRemaining - 1 ;
0 commit comments