Map rename
This commit is contained in:
@@ -131,7 +131,7 @@ public class Blocks{
|
||||
duo, scatter, scorch, hail, arc, wave, lancer, swarmer, salvo, fuse, ripple, cyclone, foreshadow, spectre, meltdown, segment, parallax, tsunami,
|
||||
|
||||
//turrets - erekir
|
||||
breach, sublimate, titan, disperse, afflict,
|
||||
breach, diffuse, sublimate, titan, disperse, afflict,
|
||||
|
||||
//units
|
||||
groundFactory, airFactory, navalFactory,
|
||||
@@ -3751,7 +3751,61 @@ public class Blocks{
|
||||
range = 190;
|
||||
shootCone = 3f;
|
||||
scaledHealth = 180;
|
||||
rotateSpeed = 1.6f;
|
||||
rotateSpeed = 1.5f;
|
||||
researchCostMultiplier = 0.05f;
|
||||
|
||||
coolant = consume(new ConsumeLiquid(Liquids.water, 15f / 60f));
|
||||
limitRange();
|
||||
}};
|
||||
|
||||
diffuse = new ItemTurret("diffuse"){{
|
||||
requirements(Category.turret, with(Items.beryllium, 150, Items.silicon, 150, Items.graphite, 250));
|
||||
|
||||
Effect sfe = new MultiEffect(Fx.shootBigColor, Fx.colorSparkBig);
|
||||
|
||||
ammo(
|
||||
Items.graphite, new BasicBulletType(8f, 30){{
|
||||
knockback = 5f;
|
||||
width = 25f;
|
||||
hitSize = 7f;
|
||||
height = 20f;
|
||||
lifetime = 20f;
|
||||
shootEffect = sfe;
|
||||
smokeEffect = Fx.shootBigSmoke;
|
||||
ammoMultiplier = 1;
|
||||
pierceCap = 2;
|
||||
pierce = true;
|
||||
pierceBuilding = true;
|
||||
hitColor = backColor = trailColor = Pal.berylShot;
|
||||
frontColor = Color.white;
|
||||
trailWidth = 5f;
|
||||
trailLength = 4;
|
||||
hitEffect = despawnEffect = Fx.hitBulletColor;
|
||||
buildingDamageMultiplier = 0.3f;
|
||||
}}
|
||||
);
|
||||
|
||||
shoot = new ShootSpread(){{
|
||||
shots = 14;
|
||||
spread = 3f;
|
||||
}};
|
||||
|
||||
coolantMultiplier = 6f;
|
||||
|
||||
shootShake = 1f;
|
||||
ammoPerShot = 1;
|
||||
drawer = new DrawTurret("reinforced-");
|
||||
shootY = 5f;
|
||||
outlineColor = Pal.darkOutline;
|
||||
size = 3;
|
||||
envEnabled |= Env.space;
|
||||
reload = 30f;
|
||||
recoilAmount = 2f;
|
||||
restitution = 0.03f;
|
||||
range = 190;
|
||||
shootCone = 3f;
|
||||
scaledHealth = 180;
|
||||
rotateSpeed = 2f;
|
||||
researchCostMultiplier = 0.05f;
|
||||
|
||||
coolant = consume(new ConsumeLiquid(Liquids.water, 15f / 60f));
|
||||
|
||||
@@ -204,28 +204,6 @@ public class SectorPresets{
|
||||
|
||||
three = new SectorPreset("three", erekir, 36){{
|
||||
difficulty = 5;
|
||||
|
||||
rules = r -> {
|
||||
float rad = 52f;
|
||||
r.objectives.addAll(
|
||||
new DestroyBlocksObjective(Blocks.coreBastion, Team.malis, Point2.pack(290,501), Point2.pack(158,496))
|
||||
.withFlags("nukeannounce"),
|
||||
new TimerObjective("@objective.nuclearlaunch", 8 * 60 * 60).withMarkers(
|
||||
new MinimapMarker(338, 377, rad, 14f, Pal.remove),
|
||||
new ShapeMarker(338 * 8, 377 * 8f){{
|
||||
radius = rad * 8f;
|
||||
fill = true;
|
||||
color = Pal.remove.cpy().mul(0.8f).a(0.3f);
|
||||
sides = 90;
|
||||
}},
|
||||
new ShapeMarker(338 * 8, 377 * 8f){{
|
||||
radius = rad * 8f;
|
||||
color = Pal.remove;
|
||||
sides = 90;
|
||||
}}
|
||||
).withFlags("nuke1")
|
||||
);
|
||||
};
|
||||
}};
|
||||
|
||||
four = new SectorPreset("four", erekir, 29){{
|
||||
@@ -234,7 +212,22 @@ public class SectorPresets{
|
||||
rules = r -> {
|
||||
float rad = 52f;
|
||||
r.objectives.addAll(
|
||||
//new TimerObjective("@objective.enemiesapproaching", 5 * 60 * 60).withFlags("wave1")
|
||||
new DestroyBlocksObjective(Blocks.coreBastion, Team.malis, Point2.pack(290,501), Point2.pack(158,496))
|
||||
.withFlags("nukeannounce"),
|
||||
new TimerObjective("@objective.nuclearlaunch", 8 * 60 * 60).withMarkers(
|
||||
new MinimapMarker(338, 377, rad, 14f, Pal.remove),
|
||||
new ShapeMarker(338 * 8, 377 * 8f){{
|
||||
radius = rad * 8f;
|
||||
fill = true;
|
||||
color = Pal.remove.cpy().mul(0.8f).a(0.3f);
|
||||
sides = 90;
|
||||
}},
|
||||
new ShapeMarker(338 * 8, 377 * 8f){{
|
||||
radius = rad * 8f;
|
||||
color = Pal.remove;
|
||||
sides = 90;
|
||||
}}
|
||||
).withFlags("nuke1")
|
||||
);
|
||||
};
|
||||
}};
|
||||
|
||||
@@ -46,10 +46,11 @@ public class Logic implements ApplicationListener{
|
||||
if(!event.breaking){
|
||||
TeamData data = event.team.data();
|
||||
Iterator<BlockPlan> it = data.blocks.iterator();
|
||||
var bounds = event.tile.block().bounds(event.tile.x, event.tile.y, Tmp.r1);
|
||||
while(it.hasNext()){
|
||||
BlockPlan b = it.next();
|
||||
Block block = content.block(b.block);
|
||||
if(event.tile.block().bounds(event.tile.x, event.tile.y, Tmp.r1).overlaps(block.bounds(b.x, b.y, Tmp.r2))){
|
||||
if(bounds.overlaps(block.bounds(b.x, b.y, Tmp.r2))){
|
||||
b.removed = true;
|
||||
it.remove();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user