mirror of
https://github.com/Anuken/Mindustry.git
synced 2025-01-20 09:17:19 +07:00
Nuke launch format string
This commit is contained in:
parent
668b6aa563
commit
90a2f00041
@ -209,7 +209,7 @@ public class SectorPresets{
|
|||||||
rules = r -> {
|
rules = r -> {
|
||||||
r.objectives.addAll(
|
r.objectives.addAll(
|
||||||
new DestroyBlocksObjective(Blocks.coreBastion, Team.malis, Point2.pack(290,501), Point2.pack(158,496)),
|
new DestroyBlocksObjective(Blocks.coreBastion, Team.malis, Point2.pack(290,501), Point2.pack(158,496)),
|
||||||
new TimerObjective("Nuclear launch detected", 4 * 60 * 60).withMarkers(
|
new TimerObjective("[accent]⚠ Nuclear launch detected:\n[lightgray]{0}", 4 * 60 * 60).withMarkers(
|
||||||
new TextMarker("Evacuate base", 1, 1),
|
new TextMarker("Evacuate base", 1, 1),
|
||||||
new MinimapMarker(338,378, Color.red)
|
new MinimapMarker(338,378, Color.red)
|
||||||
).withFlags("nuke1")
|
).withFlags("nuke1")
|
||||||
|
@ -305,13 +305,7 @@ public class BulletType extends Content implements Cloneable{
|
|||||||
Effect.shake(hitShake, hitShake, b);
|
Effect.shake(hitShake, hitShake, b);
|
||||||
|
|
||||||
createFrags(b, x, y);
|
createFrags(b, x, y);
|
||||||
|
createPuddles(b, x, y);
|
||||||
if(puddleLiquid != null && puddles > 0){
|
|
||||||
for(int i = 0; i < puddles; i++){
|
|
||||||
Tile tile = world.tileWorld(x + Mathf.range(puddleRange), y + Mathf.range(puddleRange));
|
|
||||||
Puddles.deposit(tile, puddleLiquid, puddleAmount);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
if(incendChance > 0 && Mathf.chance(incendChance)){
|
if(incendChance > 0 && Mathf.chance(incendChance)){
|
||||||
Damage.createIncend(x, y, incendSpread, incendAmount);
|
Damage.createIncend(x, y, incendSpread, incendAmount);
|
||||||
@ -329,6 +323,15 @@ public class BulletType extends Content implements Cloneable{
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public void createPuddles(Bullet b, float x, float y){
|
||||||
|
if(puddleLiquid != null && puddles > 0){
|
||||||
|
for(int i = 0; i < puddles; i++){
|
||||||
|
Tile tile = world.tileWorld(x + Mathf.range(puddleRange), y + Mathf.range(puddleRange));
|
||||||
|
Puddles.deposit(tile, puddleLiquid, puddleAmount);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
public void createSplashDamage(Bullet b, float x, float y){
|
public void createSplashDamage(Bullet b, float x, float y){
|
||||||
if(splashDamageRadius > 0 && !b.absorbed){
|
if(splashDamageRadius > 0 && !b.absorbed){
|
||||||
Damage.damage(b.team, x, y, splashDamageRadius, splashDamage * b.damageMultiplier(), false, collidesAir, collidesGround, scaledSplashDamage, b);
|
Damage.damage(b.team, x, y, splashDamageRadius, splashDamage * b.damageMultiplier(), false, collidesAir, collidesGround, scaledSplashDamage, b);
|
||||||
|
@ -44,6 +44,7 @@ public class Conveyor extends Block implements Autotiler{
|
|||||||
itemCapacity = capacity;
|
itemCapacity = capacity;
|
||||||
priority = TargetPriority.transport;
|
priority = TargetPriority.transport;
|
||||||
conveyorPlacement = true;
|
conveyorPlacement = true;
|
||||||
|
underBullets = true;
|
||||||
|
|
||||||
ambientSound = Sounds.conveyor;
|
ambientSound = Sounds.conveyor;
|
||||||
ambientSoundVolume = 0.0022f;
|
ambientSoundVolume = 0.0022f;
|
||||||
|
@ -44,6 +44,7 @@ public class ItemBridge extends Block{
|
|||||||
super(name);
|
super(name);
|
||||||
update = true;
|
update = true;
|
||||||
solid = true;
|
solid = true;
|
||||||
|
underBullets = true;
|
||||||
hasPower = true;
|
hasPower = true;
|
||||||
itemCapacity = 10;
|
itemCapacity = 10;
|
||||||
configurable = true;
|
configurable = true;
|
||||||
|
@ -16,7 +16,8 @@ public class Junction extends Block{
|
|||||||
public Junction(String name){
|
public Junction(String name){
|
||||||
super(name);
|
super(name);
|
||||||
update = true;
|
update = true;
|
||||||
solid = true;
|
solid = false;
|
||||||
|
underBullets = true;
|
||||||
group = BlockGroup.transportation;
|
group = BlockGroup.transportation;
|
||||||
unloadable = false;
|
unloadable = false;
|
||||||
noUpdateDisabled = true;
|
noUpdateDisabled = true;
|
||||||
|
@ -15,7 +15,7 @@ public class OverflowGate extends Block{
|
|||||||
public OverflowGate(String name){
|
public OverflowGate(String name){
|
||||||
super(name);
|
super(name);
|
||||||
hasItems = true;
|
hasItems = true;
|
||||||
solid = true;
|
underBullets = true;
|
||||||
update = false;
|
update = false;
|
||||||
destructible = true;
|
destructible = true;
|
||||||
group = BlockGroup.transportation;
|
group = BlockGroup.transportation;
|
||||||
|
@ -15,7 +15,7 @@ public class Router extends Block{
|
|||||||
public Router(String name){
|
public Router(String name){
|
||||||
super(name);
|
super(name);
|
||||||
solid = true;
|
solid = true;
|
||||||
update = true;
|
underBullets = true;
|
||||||
hasItems = true;
|
hasItems = true;
|
||||||
itemCapacity = 1;
|
itemCapacity = 1;
|
||||||
group = BlockGroup.transportation;
|
group = BlockGroup.transportation;
|
||||||
|
@ -21,7 +21,7 @@ public class Sorter extends Block{
|
|||||||
super(name);
|
super(name);
|
||||||
update = false;
|
update = false;
|
||||||
destructible = true;
|
destructible = true;
|
||||||
solid = true;
|
underBullets = true;
|
||||||
instantTransfer = true;
|
instantTransfer = true;
|
||||||
group = BlockGroup.transportation;
|
group = BlockGroup.transportation;
|
||||||
configurable = true;
|
configurable = true;
|
||||||
|
@ -52,6 +52,7 @@ public class StackConveyor extends Block implements Autotiler{
|
|||||||
itemCapacity = 10;
|
itemCapacity = 10;
|
||||||
conveyorPlacement = true;
|
conveyorPlacement = true;
|
||||||
highUnloadPriority = true;
|
highUnloadPriority = true;
|
||||||
|
underBullets = true;
|
||||||
priority = TargetPriority.transport;
|
priority = TargetPriority.transport;
|
||||||
|
|
||||||
ambientSound = Sounds.conveyor;
|
ambientSound = Sounds.conveyor;
|
||||||
|
@ -46,6 +46,7 @@ public class Conduit extends LiquidBlock implements Autotiler{
|
|||||||
rotate = true;
|
rotate = true;
|
||||||
solid = false;
|
solid = false;
|
||||||
floating = true;
|
floating = true;
|
||||||
|
underBullets = true;
|
||||||
conveyorPlacement = true;
|
conveyorPlacement = true;
|
||||||
noUpdateDisabled = true;
|
noUpdateDisabled = true;
|
||||||
canOverdrive = false;
|
canOverdrive = false;
|
||||||
|
@ -12,6 +12,8 @@ public class LiquidRouter extends LiquidBlock{
|
|||||||
public LiquidRouter(String name){
|
public LiquidRouter(String name){
|
||||||
super(name);
|
super(name);
|
||||||
|
|
||||||
|
underBullets = true;
|
||||||
|
solid = false;
|
||||||
noUpdateDisabled = true;
|
noUpdateDisabled = true;
|
||||||
canOverdrive = false;
|
canOverdrive = false;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user