mirror of
https://github.com/metrostroi-repo/MetrostroiAddon.git
synced 2026-05-02 00:42:29 +00:00
implemented control circuits current calculations for BPSN with respect to number of 10th wire connected ones
This commit is contained in:
@@ -601,7 +601,9 @@ function ENT:Think()
|
||||
self:SetPackedBool("lightsActive"..i,false)
|
||||
end
|
||||
end
|
||||
|
||||
self.Battery.Consumers["SalonLights"] = {Panel.MainLights+Panel.EmergencyLights,(Panel.MainLights*36^-1 + Panel.EmergencyLights*74^-1)^-1,0}
|
||||
self.Battery.Consumers["HeadLights"] = {Panel.Headlights1*(1+Panel.Headlights2),(Panel.Headlights1*22^-1*(1 + Panel.Headlights2))^-1,0}
|
||||
|
||||
if self:ReadTrainWire(4)*self:ReadTrainWire(5)*self:ReadTrainWire(10) > 0 then
|
||||
self.A54:TriggerInput("Set",0)
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user