Nuke launch format string

This commit is contained in:
Anuken 2022-04-28 14:51:20 -04:00
parent 668b6aa563
commit 90a2f00041
11 changed files with 22 additions and 12 deletions

View File

@ -209,7 +209,7 @@ public class SectorPresets{
rules = r -> {
r.objectives.addAll(
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 MinimapMarker(338,378, Color.red)
).withFlags("nuke1")

View File

@ -305,13 +305,7 @@ public class BulletType extends Content implements Cloneable{
Effect.shake(hitShake, hitShake, b);
createFrags(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);
}
}
createPuddles(b, x, y);
if(incendChance > 0 && Mathf.chance(incendChance)){
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){
if(splashDamageRadius > 0 && !b.absorbed){
Damage.damage(b.team, x, y, splashDamageRadius, splashDamage * b.damageMultiplier(), false, collidesAir, collidesGround, scaledSplashDamage, b);

View File

@ -44,6 +44,7 @@ public class Conveyor extends Block implements Autotiler{
itemCapacity = capacity;
priority = TargetPriority.transport;
conveyorPlacement = true;
underBullets = true;
ambientSound = Sounds.conveyor;
ambientSoundVolume = 0.0022f;

View File

@ -44,6 +44,7 @@ public class ItemBridge extends Block{
super(name);
update = true;
solid = true;
underBullets = true;
hasPower = true;
itemCapacity = 10;
configurable = true;

View File

@ -16,7 +16,8 @@ public class Junction extends Block{
public Junction(String name){
super(name);
update = true;
solid = true;
solid = false;
underBullets = true;
group = BlockGroup.transportation;
unloadable = false;
noUpdateDisabled = true;

View File

@ -15,7 +15,7 @@ public class OverflowGate extends Block{
public OverflowGate(String name){
super(name);
hasItems = true;
solid = true;
underBullets = true;
update = false;
destructible = true;
group = BlockGroup.transportation;

View File

@ -15,7 +15,7 @@ public class Router extends Block{
public Router(String name){
super(name);
solid = true;
update = true;
underBullets = true;
hasItems = true;
itemCapacity = 1;
group = BlockGroup.transportation;

View File

@ -21,7 +21,7 @@ public class Sorter extends Block{
super(name);
update = false;
destructible = true;
solid = true;
underBullets = true;
instantTransfer = true;
group = BlockGroup.transportation;
configurable = true;

View File

@ -52,6 +52,7 @@ public class StackConveyor extends Block implements Autotiler{
itemCapacity = 10;
conveyorPlacement = true;
highUnloadPriority = true;
underBullets = true;
priority = TargetPriority.transport;
ambientSound = Sounds.conveyor;

View File

@ -46,6 +46,7 @@ public class Conduit extends LiquidBlock implements Autotiler{
rotate = true;
solid = false;
floating = true;
underBullets = true;
conveyorPlacement = true;
noUpdateDisabled = true;
canOverdrive = false;

View File

@ -12,6 +12,8 @@ public class LiquidRouter extends LiquidBlock{
public LiquidRouter(String name){
super(name);
underBullets = true;
solid = false;
noUpdateDisabled = true;
canOverdrive = false;
}