mirror of
https://github.com/metrostroi-repo/MetrostroiAddon.git
synced 2026-05-04 00:52:33 +00:00
Update sys_81_717_electric.lua
Fixed an issue when A54 could trip even when the batteries on the train are turned off
This commit is contained in:
@@ -88,7 +88,7 @@ function TRAIN_SYSTEM:SolveAllInternalCircuits(Train,dT,firstIter)
|
||||
S["F7"] = S["F"]*KV["F-F7"]+S["14b"]*KRU["11/3-FR1"]
|
||||
|
||||
Train:WriteTrainWire(5,S["10AK"]*KV["10AK-5"] + KRU["5/3-ZM31"]*-10)
|
||||
Train:WriteTrainWire(4,S["10AK"]*KV["10AK-4"] + --[[max(0,min(1,T[4])*KV["4-0"]*-10)]]KV["4-0"]*-10)
|
||||
Train:WriteTrainWire(4,S["10AK"]*KV["10AK-4"] + --[[max(0,min(1,T[4])*KV["4-0"]*-10)]]T[10]*KV["4-0"]*-10)
|
||||
|
||||
Panel.LST = T[6]*Train.A40.Value
|
||||
Panel.LhRK = (T[2]+T[-2])*Train.A57.Value
|
||||
@@ -1178,4 +1178,4 @@ function TRAIN_SYSTEM:Think(dT,iter)
|
||||
end
|
||||
if iter == 1 then self.Train.ResistorBlocks.InitializeResistances_81_717(self.Train) end
|
||||
return Metrostroi.BaseSystems["Electric"].Think(self,dT,iter)
|
||||
end
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user