WIP bullet shotgun for T4 tank

This commit is contained in:
Anuken
2022-05-02 22:24:45 -04:00
parent de9a41159f
commit 78f3e23f0b
13 changed files with 48 additions and 14 deletions

View File

@@ -85,7 +85,7 @@ abstract class BuildingComp implements Posc, Teamc, Healthc, Buildingc, Timerc,
transient float efficiency;
/** Same as efficiency, but for optional consumers only. */
transient float optionalEfficiency;
/** The efficiency this block would have if consValid() / productionValid() returned true. */
/** The efficiency this block *would* have if shouldConsume() returned true. */
transient float potentialEfficiency;
transient float healSuppressionTime = -1f;

View File

@@ -187,7 +187,6 @@ abstract class BulletComp implements Timedc, Damagec, Hitboxc, Teamc, Posc, Draw
type.collideFloor && (tile == null || tile.floor().hasSurface() || tile.block() != Blocks.air) ||
type.collideTerrain && tile != null && tile.block() instanceof StaticWall
){
type.despawned(self());
remove();
hit = true;
return;