Merge remote-tracking branch 'origin/7.0-features' into 7.0-features

This commit is contained in:
Epowerj
2022-04-28 14:53:40 -04:00
13 changed files with 29 additions and 20 deletions

View File

@@ -577,7 +577,7 @@ configure = Configure Loadout
objective.research = [accent]Research:\n[]{0}[lightgray]{1} objective.research = [accent]Research:\n[]{0}[lightgray]{1}
objective.produce = [accent]Obtain:\n[]{0}[lightgray]{1} objective.produce = [accent]Obtain:\n[]{0}[lightgray]{1}
objective.destroyblock = [accent]Destroy:\n[]{0}[lightgray]{1} objective.destroyblock = [accent]Destroy:\n[]{0}[lightgray]{1}
objective.destroyblocks = [accent]Destroy: [lightgray]{0}[]/{1}\n{2}[lightgray]{3} objective.destroyblocks = [accent]Destroy: [lightgray]{0}[white]/{1}\n{2}[lightgray]{3}
objective.item = [accent]Obtain: [][lightgray]{0}[]/{1}\n{2}[lightgray]{3} objective.item = [accent]Obtain: [][lightgray]{0}[]/{1}\n{2}[lightgray]{3}
objective.coreitem = [accent]Move into Core:\n[][lightgray]{0}[]/{1}\n{2}[lightgray]{3} objective.coreitem = [accent]Move into Core:\n[][lightgray]{0}[]/{1}\n{2}[lightgray]{3}
objective.build = [accent]Build: [][lightgray]{0}[]x\n{1}[lightgray]{2} objective.build = [accent]Build: [][lightgray]{0}[]x\n{1}[lightgray]{2}

View File

@@ -1,7 +1,6 @@
package mindustry.content; package mindustry.content;
import arc.graphics.Color; import arc.math.geom.*;
import arc.math.geom.Point2;
import mindustry.game.MapObjectives.*; import mindustry.game.MapObjectives.*;
import mindustry.game.*; import mindustry.game.*;
import mindustry.graphics.*; import mindustry.graphics.*;
@@ -208,11 +207,11 @@ 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, Pal.remove)
).withFlags("nuke1") ).withFlags("nuke1")
); );
}; };
}}; }};

View File

@@ -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);

View File

@@ -308,7 +308,7 @@ public class MapObjectives{
@Override @Override
public String text(){ public String text(){
return Core.bundle.format("objective.destroyblocks", positions, positions.length, block.emoji(), block.localizedName); return Core.bundle.format("objective.destroyblocks", progress(), positions.length, block.emoji(), block.localizedName);
} }
} }

View File

@@ -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;

View File

@@ -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;

View File

@@ -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;

View File

@@ -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;

View File

@@ -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;

View File

@@ -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;

View File

@@ -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;

View File

@@ -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;

View File

@@ -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;
} }