mirror of
https://github.com/metrostroi-repo/MetrostroiAddon.git
synced 2026-05-02 00:42:29 +00:00
Implemented rechargeable battery and imitation of control circuit's current. Randomized initial battery voltage and relays trigger level
This commit is contained in:
@@ -114,4 +114,5 @@ ENT.Spawner = {
|
||||
ent.Pneumatic.BrakeLinePressure = val == 4 and 5.2 or val == 1 and 2.3 or math.min(ent.Pneumatic.TrainLinePressure+0.25,math.random()*4)
|
||||
ent.Pneumatic.WorkingChamberPressure = val==3 and math.random()*1.0 or val==2 and 4.0+math.random()*1.0 or 5.2
|
||||
end},
|
||||
{"BattCharge","Spawner.717.Chargeable","Boolean"}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user