Skip to content
This repository was archived by the owner on Jan 5, 2024. It is now read-only.

Commit ae089f4

Browse files
committed
Review changes
1 parent 69be456 commit ae089f4

File tree

3 files changed

+10
-7
lines changed

3 files changed

+10
-7
lines changed

Base.rte/Activities/BunkerBreach.lua

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -214,7 +214,7 @@ function BunkerBreach:UpdateActivity()
214214
self.defenderBrain = findBrain;
215215
else
216216
self.WinnerTeam = self.attackerTeam;
217-
MovableMan:KillAllEnemyActors(self.defenderTeam);
217+
MovableMan:KillAllEnemyActors(self.attackerTeam);
218218
ActivityMan:EndActivity();
219219
return
220220
end
@@ -313,7 +313,7 @@ function BunkerBreach:UpdateActivity()
313313
end
314314
end
315315
elseif MovableMan:GetTeamMOIDCount(self.CPUTeam) < 5 then
316-
MovableMan:KillAllEnemyActors(self.CPUTeam);
316+
MovableMan:KillAllEnemyActors(self.playerTeam);
317317
self.WinnerTeam = self.playerTeam;
318318
ActivityMan:EndActivity();
319319
return
@@ -498,7 +498,7 @@ function BunkerBreach:CreateBrainBot(team)
498498
if actor then
499499
actor:AddInventoryItem(RandomHDFirearm("Weapons - Light", tech));
500500
if team == self.attackerTeam then
501-
actor:AddInventoryItem(CreateHDFirearm("Medium Digger", "Base.rte"));
501+
actor:AddInventoryItem(CreateHDFirearm("Constructor", "Base.rte"));
502502
else
503503
actor:AddInventoryItem(RandomHDFirearm("Weapons - Secondary", tech));
504504
end

Coalition.rte/Devices/Weapons/MissileLauncher/MissileLauncher.ini

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -391,7 +391,7 @@ AddDevice = HDFirearm
391391
AddToGroup = Weapons - Heavy
392392
AddToGroup = Weapons - Explosive
393393
Description = Can fire powerful automatically guided missiles, excellent at destroying enemy craft. Lock-on to enemy units using the laser pointer!
394-
Mass = 45
394+
Mass = 36
395395
HitsMOs = 0
396396
GetsHitByMOs = 1
397397
ScriptPath = Coalition.rte/Devices/Weapons/MissileLauncher/MissileLauncher.lua

Techion.rte/Devices/Weapons/NanoRifle/NanoRifleSight.lua

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -29,9 +29,12 @@ function Update(self)
2929
local terrCheck = SceneMan:GetTerrMatter(checkPos.X, checkPos.Y);
3030
if terrCheck == rte.airID then
3131
local moCheck = SceneMan:GetMOIDPixel(checkPos.X, checkPos.Y);
32-
if moCheck ~= rte.NoMOID and MovableMan:GetMOFromID(moCheck).Team ~= actor.Team then
33-
roughLandPos = checkPos;
34-
break;
32+
if moCheck ~= rte.NoMOID then
33+
local mo = ToMOSRotating(MovableMan:GetMOFromID(moCheck));
34+
if mo and (mo.Team ~= actor.Team or (mo.WoundCount > 0 and mo.PresetName ~= "Nano Rifle")) then
35+
roughLandPos = checkPos;
36+
break;
37+
end
3538
end
3639
else
3740
roughLandPos = checkPos;

0 commit comments

Comments
 (0)