1
0
mirror of https://github.com/metrostroi-repo/MetrostroiAddon.git synced 2026-05-02 00:42:29 +00:00

Уборка принтов

This commit is contained in:
Moon Horse
2024-04-27 14:17:36 +03:00
parent e9cc545f73
commit c1718c084e

View File

@@ -214,8 +214,6 @@ function TRAIN_SYSTEM:TriggerInput(name,value)
if (name == "Block") then if (name == "Block") then
self.Blocked = value self.Blocked = value
elseif (name == "Close") and (value > self.trigger_level) and (self.Value ~= 1.0 or self.TargetValue ~= 1.0) then --(self.TargetValue ~= 1.0 and self.rpb)) elseif (name == "Close") and (value > self.trigger_level) and (self.Value ~= 1.0 or self.TargetValue ~= 1.0) then --(self.TargetValue ~= 1.0 and self.rpb))
if self.Name:find("PA") then print "Сгорел предохранитель!" end
--if self.Name:find("RD") then print "Попытка включить РД!" end
if self.pneumatic and self.Train.Pneumatic.TrainLinePressure < 3 then return end if self.pneumatic and self.Train.Pneumatic.TrainLinePressure < 3 then return end
if (not self.ChangeTime) or (self.TargetValue ~= 1.0) then if (not self.ChangeTime) or (self.TargetValue ~= 1.0) then
self.ChangeTime = self.Time + FailSim.Value(self,"CloseTime") self.ChangeTime = self.Time + FailSim.Value(self,"CloseTime")
@@ -300,10 +298,6 @@ function TRAIN_SYSTEM:Think(dT)
self.SpuriousTripTimer = nil self.SpuriousTripTimer = nil
end end
-- Should move this chunk outside of turbostroi
---------********************************************----------
---------********************************************----------
--print("РД = ",self.Train.Battery.Consumers[self.Train.RD]) --print("РД = ",self.Train.Battery.Consumers[self.Train.RD])
if self.hasCoil then if self.hasCoil then
self.Current = self.TargetValue*self.Train.Battery.eds_eq/self.coil_res self.Current = self.TargetValue*self.Train.Battery.eds_eq/self.coil_res