Upgradeable cores

This commit is contained in:
Anuken
2020-06-27 19:16:39 -04:00
parent 313cadb763
commit 80332e37d5
63 changed files with 365 additions and 290 deletions

View File

@@ -1270,7 +1270,7 @@ public class Blocks implements ContentList{
}};
coreFoundation = new CoreBlock("core-foundation"){{
requirements(Category.effect, BuildVisibility.hidden, with(Items.copper, 3000, Items.lead, 3000, Items.silicon, 2000));
requirements(Category.effect, with(Items.copper, 3000, Items.lead, 3000, Items.silicon, 2000));
health = 2000;
itemCapacity = 9000;
@@ -1278,7 +1278,7 @@ public class Blocks implements ContentList{
}};
coreNucleus = new CoreBlock("core-nucleus"){{
requirements(Category.effect, BuildVisibility.hidden, with(Items.copper, 1000, Items.lead, 1000));
requirements(Category.effect, with(Items.copper, 1000, Items.lead, 1000));
health = 4000;
itemCapacity = 13000;

View File

@@ -144,6 +144,12 @@ public class Fx{
Lines.circle(e.x, e.y, 4f + e.finpow() * 120f);
}),
upgradeCore = new Effect(120f, e -> {
color(Color.white, Pal.accent, e.fin());
alpha(e.fout());
Fill.square(e.x, e.y, tilesize / 2f * e.rotation);
}),
placeBlock = new Effect(16, e -> {
color(Pal.accent);
stroke(3f - e.fin() * 2f);