Skip to content

Commit

Permalink
Split liquid input evenly
Browse files Browse the repository at this point in the history
  • Loading branch information
MEEPofFaith committed Nov 2, 2024
1 parent 1760423 commit 9284225
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
1 change: 1 addition & 0 deletions src/progressed/content/blocks/PMModules.java
Original file line number Diff line number Diff line change
Expand Up @@ -244,6 +244,7 @@ Items.tungsten, new AntiMissileRailBulletType(){{
size = 2;
outlineColor = Pal.darkOutline;
shootY = 4f;
liquidConsumed = 2.5f / 60f;

float brange = 12f * 8f;
range = brange;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -505,8 +505,8 @@ public void handleStack(Item item, int amount, Teamc source){

@Override
public void handleLiquid(Building source, Liquid liquid, float amount){
TurretModuleBuild mount = modules.find(m -> m.build().acceptLiquid(this, liquid));
mount.build().handleLiquid(this, liquid, amount);
Seq<TurretModuleBuild> mounts = modules.select(m -> m.build().acceptLiquid(this, liquid));
mounts.each(m -> m.build().handleLiquid(this, liquid, amount / mounts.size));
}

@Override
Expand Down

0 comments on commit 9284225

Please sign in to comment.