Anuken / Mindustry-Suggestions

Repository for Mindustry suggestions and feedback
125 stars 57 forks source link

Liquid Under- and Over- flow gates #5035

Closed iRatzeyMezeri closed 1 week ago

iRatzeyMezeri commented 1 month ago

Describe the content or mechanics you are proposing.

underflow and overflow gates but for liquids :D

Describe how you think this content will improve the game. If you're proposing new content, mention how it may add more gameplay options or how it will fill a new niche.

lets say for example you have a cyanogen synthesizer that feeds a flux reactor and some sublimates, and if you jsut place a router then the flux reactor has a chance of exploding and whoever is looking after safety will instantly bonk you in the head. Now with an overflow gate you can be sure that the Flux reactor gets enough cyanogen to not go boom boom.

Before making this issue, check the boxes below to confirm that you have acknowledged them.

mahdoosh1 commented 1 month ago

overflow and underflow gates work by checking if a specific output is blocked or not (which means is the block in front of that output full or not)

liquids are in floats (rational numbers). which means blocks may have an inaccurate value, like 9.99 instead of 10

a common issue of floats is inaccuracy.

i suggest anuke to use integers but when displaying, divide that integer to 100 although dividing is extremely bad for performance, this is a simple fix

this would make this suggestion possible

github-actions[bot] commented 1 week ago

This suggestion is now stale, and will be automatically closed.