SirBlob Posted January 30, 2022 Share Posted January 30, 2022 Is there any way to even further reduce the amount of fuel in gas stations? When you set the intial fuel amount to very, low the gas pumps already spawn with 5-7k fuel each, which will last forever. So any simple way to reduce it even further? Link to comment Share on other sites More sharing options...
SirBlob Posted January 30, 2022 Author Share Posted January 30, 2022 Ok I found this inside the games code } public int getPipedFuelAmount() { if (this.sprite == null) { return 0; } double doubleValue = 0.0; if (this.hasModData() && !this.getModData().isEmpty()) { final Object rawget = this.getModData().rawget((Object)"fuelAmount"); if (rawget != null) { doubleValue = (double)rawget; } } if (this.sprite.getProperties().Is("fuelAmount")) { if (SandboxOptions.instance.FuelStationGas.getValue() == 7) { return 1000; } if (doubleValue == 0.0 && ((SandboxOptions.getInstance().AllowExteriorGenerator.getValue() && this.getSquare().haveElectricity()) || GameTime.getInstance().getNightsSurvived() < SandboxOptions.instance.getElecShutModifier())) { float n = 0.8f; float n2 = 1.0f; switch (SandboxOptions.getInstance().FuelStationGas.getValue()) { case 1: { n2 = (n = 0.0f); break; } case 2: { n = 0.2f; n2 = 0.4f; break; } case 3: { n = 0.3f; n2 = 0.5f; break; } case 4: { n = 0.5f; n2 = 0.7f; break; } case 5: { n = 0.7f; n2 = 0.8f; break; } case 6: { n = 0.8f; n2 = 0.9f; break; } case 7: { n2 = (n = 1.0f); break; } } final double d = (int)Rand.Next(Integer.parseInt(this.sprite.getProperties().Val("fuelAmount")) * n, Integer.parseInt(this.sprite.getProperties().Val("fuelAmount")) * n2); this.getModData().rawset((Object)"fuelAmount", (Object)d); this.transmitModData(); return (int)d; } } return (int)doubleValue; } Would it be possible to somehow add another "case"? Like let's say extremely low and make it case 8? Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now