Crafter progress modulo / Segment buff

This commit is contained in:
Anuken 2021-02-23 10:47:54 -05:00
parent d7f848f8cd
commit 08e36aca98
3 changed files with 7 additions and 9 deletions

View File

@ -1606,12 +1606,12 @@ public class Blocks implements ContentList{
requirements(Category.turret, with(Items.silicon, 130, Items.thorium, 80, Items.phaseFabric, 40)); requirements(Category.turret, with(Items.silicon, 130, Items.thorium, 80, Items.phaseFabric, 40));
health = 250 * size * size; health = 250 * size * size;
range = 160f; range = 180f;
hasPower = true; hasPower = true;
consumes.powerCond(8f, (PointDefenseBuild b) -> b.target != null); consumes.powerCond(8f, (PointDefenseBuild b) -> b.target != null);
size = 2; size = 2;
shootLength = 5f; shootLength = 5f;
bulletDamage = 25f; bulletDamage = 30f;
reloadTime = 9f; reloadTime = 9f;
}}; }};

View File

@ -172,12 +172,10 @@ public class ItemBridge extends Block{
public void playerPlaced(Object config){ public void playerPlaced(Object config){
super.playerPlaced(config); super.playerPlaced(config);
//if(config == null){ Tile link = findLink(tile.x, tile.y);
Tile link = findLink(tile.x, tile.y); if(linkValid(tile, link) && !proximity.contains(link.build)){
if(linkValid(tile, link) && !proximity.contains(link.build)){ link.build.configure(tile.pos());
link.build.configure(tile.pos()); }
}
//}
lastBuild = this; lastBuild = this;
} }

View File

@ -119,7 +119,7 @@ public class GenericCrafter extends Block{
} }
craftEffect.at(x, y); craftEffect.at(x, y);
progress = 0f; progress %= 1f;
} }
if(outputItem != null && timer(timerDump, dumpTime)){ if(outputItem != null && timer(timerDump, dumpTime)){