Remove selling from Infilitration

It is weird, unsatisfying for the player and inconsistent with the rest of our missions
This commit is contained in:
abcdefg30
2019-09-09 14:38:00 +02:00
committed by reaperrr
parent aee9ee6187
commit 0462cfa507

View File

@@ -282,8 +282,7 @@ end
SovietBaseMaintenanceSetup = function()
local sovietbuildings = Utils.Where(Map.NamedActors, function(a)
return a.Owner == soviets
and a.HasProperty("StartBuildingRepairs") and a.HasProperty("Sell")
return a.Owner == soviets and a.HasProperty("StartBuildingRepairs")
end)
Trigger.OnAllKilledOrCaptured(sovietbuildings, function()
@@ -294,15 +293,9 @@ SovietBaseMaintenanceSetup = function()
Utils.Do(sovietbuildings, function(sovietbuilding)
Trigger.OnDamaged(sovietbuilding, function(building)
if building.Owner ~= soviets then
return
end
if building.Health < building.MaxHealth * 3/4 then
if building.Owner == soviets and building.Health < building.MaxHealth * 3/4 then
building.StartBuildingRepairs()
end
if building.Health < building.MaxHealth * 1/4 then
building.Sell()
end
end)
end)
end