mirror of
https://github.com/Anuken/Mindustry.git
synced 2025-03-05 07:00:49 +07:00
cleanup
This commit is contained in:
parent
a18e1854ab
commit
659c481c83
@ -14,12 +14,12 @@ public class Puddles{
|
||||
|
||||
public static final float maxLiquid = 70f;
|
||||
|
||||
/** Deposists a Puddle between tile and source. */
|
||||
/** Deposits a Puddle between tile and source. */
|
||||
public static void deposit(Tile tile, Tile source, Liquid liquid, float amount){
|
||||
deposit(tile, source, liquid, amount, 0);
|
||||
}
|
||||
|
||||
/** Deposists a Puddle at a tile. */
|
||||
/** Deposits a Puddle at a tile. */
|
||||
public static void deposit(Tile tile, Liquid liquid, float amount){
|
||||
deposit(tile, tile, liquid, amount, 0);
|
||||
}
|
||||
|
@ -22,8 +22,7 @@ import static mindustry.entities.Puddles.*;
|
||||
abstract class PuddleComp implements Posc, Puddlec, Drawc{
|
||||
private static final int maxGeneration = 2;
|
||||
private static final Color tmp = new Color();
|
||||
private static final Rect rect = new Rect();
|
||||
private static final Rect rect2 = new Rect();
|
||||
private static final Rect rect = new Rect(), rect2 = new Rect();
|
||||
private static int seeds;
|
||||
|
||||
@Import float x, y;
|
||||
@ -53,7 +52,7 @@ abstract class PuddleComp implements Posc, Puddlec, Drawc{
|
||||
Tile other = world.tile(tile.x + point.x, tile.y + point.y);
|
||||
if(other != null && other.block() == Blocks.air){
|
||||
Puddles.deposit(other, tile, liquid, deposited, generation + 1);
|
||||
amount -= deposited / 2f; //tweak to speed up/slow down Puddlec propagation
|
||||
amount -= deposited / 2f; //tweak to speed up/slow down Puddle propagation
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user