More minor fixes
This commit is contained in:
Binary file not shown.
@@ -1698,7 +1698,7 @@ public class Blocks{
|
|||||||
radar = new Radar("radar"){{
|
radar = new Radar("radar"){{
|
||||||
requirements(Category.effect, BuildVisibility.fogOnly, with(Items.silicon, 30, Items.graphite, 30));
|
requirements(Category.effect, BuildVisibility.fogOnly, with(Items.silicon, 30, Items.graphite, 30));
|
||||||
outlineColor = Color.valueOf("4a4b53");
|
outlineColor = Color.valueOf("4a4b53");
|
||||||
fogRadius = 27;
|
fogRadius = 30;
|
||||||
researchCost = with(Items.silicon, 50, Items.graphite, 50);
|
researchCost = with(Items.silicon, 50, Items.graphite, 50);
|
||||||
|
|
||||||
consumePower(0.1f);
|
consumePower(0.1f);
|
||||||
@@ -2670,7 +2670,7 @@ public class Blocks{
|
|||||||
//TODO should this be higher?
|
//TODO should this be higher?
|
||||||
buildCostMultiplier = 0.75f;
|
buildCostMultiplier = 0.75f;
|
||||||
|
|
||||||
unitCapModifier = 30;
|
unitCapModifier = 20;
|
||||||
researchCostMultiplier = 0.07f;
|
researchCostMultiplier = 0.07f;
|
||||||
}};
|
}};
|
||||||
|
|
||||||
@@ -2685,7 +2685,7 @@ public class Blocks{
|
|||||||
armor = 10f;
|
armor = 10f;
|
||||||
incinerateNonBuildable = true;
|
incinerateNonBuildable = true;
|
||||||
|
|
||||||
unitCapModifier = 30;
|
unitCapModifier = 20;
|
||||||
researchCostMultipliers.put(Items.silicon, 0.4f);
|
researchCostMultipliers.put(Items.silicon, 0.4f);
|
||||||
researchCostMultiplier = 0.14f;
|
researchCostMultiplier = 0.14f;
|
||||||
}};
|
}};
|
||||||
@@ -2702,7 +2702,7 @@ public class Blocks{
|
|||||||
armor = 15f;
|
armor = 15f;
|
||||||
incinerateNonBuildable = true;
|
incinerateNonBuildable = true;
|
||||||
|
|
||||||
unitCapModifier = 30;
|
unitCapModifier = 20;
|
||||||
researchCostMultipliers.put(Items.silicon, 0.3f);
|
researchCostMultipliers.put(Items.silicon, 0.3f);
|
||||||
researchCostMultiplier = 0.2f;
|
researchCostMultiplier = 0.2f;
|
||||||
}};
|
}};
|
||||||
|
|||||||
@@ -68,7 +68,7 @@ public class Planets{
|
|||||||
r.attributes.set(Attribute.heat, 0.8f);
|
r.attributes.set(Attribute.heat, 0.8f);
|
||||||
r.showSpawns = true;
|
r.showSpawns = true;
|
||||||
r.fog = true;
|
r.fog = true;
|
||||||
r.staticFog = false; //TODO decide
|
r.staticFog = false; //TODO decide, is this a good idea?
|
||||||
};
|
};
|
||||||
|
|
||||||
unlockedOnLand.add(Blocks.coreBastion);
|
unlockedOnLand.add(Blocks.coreBastion);
|
||||||
|
|||||||
@@ -55,10 +55,12 @@ public class ConstructBlock extends Block{
|
|||||||
@Remote(called = Loc.server)
|
@Remote(called = Loc.server)
|
||||||
public static void deconstructFinish(Tile tile, Block block, Unit builder){
|
public static void deconstructFinish(Tile tile, Block block, Unit builder){
|
||||||
Team team = tile.team();
|
Team team = tile.team();
|
||||||
block.breakEffect.at(tile.drawx(), tile.drawy(), block.size, block.mapColor);
|
if(fogControl.isVisibleTile(player.team(), tile.x, tile.y)){
|
||||||
|
block.breakEffect.at(tile.drawx(), tile.drawy(), block.size, block.mapColor);
|
||||||
|
if(shouldPlay()) block.breakSound.at(tile, block.breakPitchChange ? calcPitch(false) : 1f);
|
||||||
|
}
|
||||||
Events.fire(new BlockBuildEndEvent(tile, builder, team, true, null));
|
Events.fire(new BlockBuildEndEvent(tile, builder, team, true, null));
|
||||||
tile.remove();
|
tile.remove();
|
||||||
if(shouldPlay()) block.breakSound.at(tile, block.breakPitchChange ? calcPitch(false) : 1f);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
@Remote(called = Loc.server)
|
@Remote(called = Loc.server)
|
||||||
@@ -96,8 +98,10 @@ public class ConstructBlock extends Block{
|
|||||||
tile.build.playerPlaced(config);
|
tile.build.playerPlaced(config);
|
||||||
}
|
}
|
||||||
|
|
||||||
Fx.placeBlock.at(tile.drawx(), tile.drawy(), block.size);
|
if(fogControl.isVisibleTile(player.team(), tile.x, tile.y)){
|
||||||
if(shouldPlay()) block.placeSound.at(tile, block.placePitchChange ? calcPitch(true) : 1f);
|
Fx.placeBlock.at(tile.drawx(), tile.drawy(), block.size);
|
||||||
|
if(shouldPlay()) block.placeSound.at(tile, block.placePitchChange ? calcPitch(true) : 1f);
|
||||||
|
}
|
||||||
|
|
||||||
Events.fire(new BlockBuildEndEvent(tile, builder, team, false, config));
|
Events.fire(new BlockBuildEndEvent(tile, builder, team, false, config));
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user