Unfinished block / Bugfixes

This commit is contained in:
Anuken 2019-01-23 23:43:31 -05:00
parent 9dd6a77c76
commit 9a444da343
9 changed files with 22 additions and 6 deletions

Binary file not shown.

After

Width:  |  Height:  |  Size: 93 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 98 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 169 B

View File

@ -36,7 +36,7 @@ public class Blocks implements ContentList{
grass, shrub, rock, icerock, blackrock, rocks, pine,
//crafting
siliconSmelter, plastaniumCompressor, phaseWeaver, surgeSmelter, pyratiteMixer, blastMixer, cryofluidMixer,
siliconSmelter, graphitePress, plastaniumCompressor, phaseWeaver, surgeSmelter, pyratiteMixer, blastMixer, cryofluidMixer,
melter, separator, centrifuge, biomatterCompressor, pulverizer, incinerator,
//sandbox
@ -234,6 +234,21 @@ public class Blocks implements ContentList{
consumes.power(0.05f);
}};
graphitePress = new PowerSmelter("graphite-press"){{
requirements(Category.crafting, ItemStack.with(Items.copper, 200, Items.lead, 50));
health = 90;
craftEffect = Fx.smeltsmoke;
result = Items.graphite;
craftTime = 50f;
size = 2;
hasLiquids = false;
flameColor = Color.valueOf("ffef99");
consumes.items(new ItemStack(Items.coal, 1), new ItemStack(Items.sand, 2));
consumes.power(0.05f);
}};
plastaniumCompressor = new PlastaniumCompressor("plastanium-compressor"){{
requirements(Category.crafting, ItemStack.with(Items.silicon, 160, Items.lead, 230, Items.graphite, 120, Items.titanium, 160));
hasItems = true;

View File

@ -645,7 +645,7 @@ public class Bullets implements ContentList{
explode = new BombBulletType(2f, 3f, "clear"){{
hitEffect = Fx.pulverize;
lifetime = 20f;
lifetime = 23f;
speed = 1f;
splashDamageRadius = 60f;
splashDamage = 30f;

View File

@ -58,7 +58,7 @@ public class Zones implements ContentList{
}};
}};
craters = new Zone("craters", new MapGenerator("craters", 1){{ distortion = 1.44f; }}){{ //TODO implement
craters = new Zone("craters", new MapGenerator("craters", 1){{ distortion = 1.44f; }}){{
alwaysUnlocked = true;
deployCost = ItemStack.with(Items.copper, 300);

View File

@ -238,7 +238,7 @@ public class UI implements ApplicationListener{
Table table = new Table();
table.setFillParent(true);
table.actions(Actions.fadeOut(7f, Interpolation.fade), Actions.removeActor());
table.top().add(info).padTop(40);
table.top().add(info).padTop(10);
Core.scene.add(table);
}

View File

@ -237,6 +237,7 @@ public class World implements ApplicationListener{
}
}
state.rules.zone = zone.id;
state.set(State.playing);
control.saves.zoneSave();
logic.play();
});

View File

@ -95,8 +95,8 @@ public class MapGenerator extends Generator{
int rad = 10, frad = 12;
for(int x = rad; x <= rad; x++){
for(int y = rad; y <= rad; y++){
for(int x = -rad; x <= rad; x++){
for(int y = -rad; y <= rad; y++){
int wx = x + point.x, wy = y + point.y;
double dst = Mathf.dst(x, y);
if(dst < frad && Structs.inBounds(wx, wy, tiles) && (dst <= rad || Mathf.chance(0.5))){