Skip to content

Commit 0c189e4

Browse files
committed
typo fix
1 parent f88b707 commit 0c189e4

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

Data/Base.rte/AI/HumanBehaviors.lua

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -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

Comments
 (0)