Upgradeable cores
This commit is contained in:
@@ -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;
|
||||
|
||||
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user