Merge remote-tracking branch 'origin/master'
This commit is contained in:
@@ -720,6 +720,7 @@ bar.corereq = Core Base Required
|
|||||||
bar.drillspeed = Drill Speed: {0}/s
|
bar.drillspeed = Drill Speed: {0}/s
|
||||||
bar.pumpspeed = Pump Speed: {0}/s
|
bar.pumpspeed = Pump Speed: {0}/s
|
||||||
bar.efficiency = Efficiency: {0}%
|
bar.efficiency = Efficiency: {0}%
|
||||||
|
bar.boost = Boost: {0}%
|
||||||
bar.powerbalance = Power: {0}/s
|
bar.powerbalance = Power: {0}/s
|
||||||
bar.powerstored = Stored: {0}/{1}
|
bar.powerstored = Stored: {0}/{1}
|
||||||
bar.poweramount = Power: {0}
|
bar.poweramount = Power: {0}
|
||||||
@@ -935,6 +936,7 @@ mode.custom = Custom Rules
|
|||||||
|
|
||||||
rules.infiniteresources = Infinite Resources
|
rules.infiniteresources = Infinite Resources
|
||||||
rules.reactorexplosions = Reactor Explosions
|
rules.reactorexplosions = Reactor Explosions
|
||||||
|
rules.coreincinerates = Core Incinerates Overflow
|
||||||
rules.schematic = Schematics Allowed
|
rules.schematic = Schematics Allowed
|
||||||
rules.wavetimer = Wave Timer
|
rules.wavetimer = Wave Timer
|
||||||
rules.waves = Waves
|
rules.waves = Waves
|
||||||
|
|||||||
@@ -141,6 +141,7 @@ public class CustomRulesDialog extends BaseDialog{
|
|||||||
check("@rules.infiniteresources", b -> rules.infiniteResources = b, () -> rules.infiniteResources);
|
check("@rules.infiniteresources", b -> rules.infiniteResources = b, () -> rules.infiniteResources);
|
||||||
check("@rules.reactorexplosions", b -> rules.reactorExplosions = b, () -> rules.reactorExplosions);
|
check("@rules.reactorexplosions", b -> rules.reactorExplosions = b, () -> rules.reactorExplosions);
|
||||||
check("@rules.schematic", b -> rules.schematicsAllowed = b, () -> rules.schematicsAllowed);
|
check("@rules.schematic", b -> rules.schematicsAllowed = b, () -> rules.schematicsAllowed);
|
||||||
|
check("@rules.coreincinerates", b -> rules.coreIncinerates = b, () -> rules.coreIncinerates);
|
||||||
number("@rules.buildcostmultiplier", false, f -> rules.buildCostMultiplier = f, () -> rules.buildCostMultiplier, () -> !rules.infiniteResources);
|
number("@rules.buildcostmultiplier", false, f -> rules.buildCostMultiplier = f, () -> rules.buildCostMultiplier, () -> !rules.infiniteResources);
|
||||||
number("@rules.buildspeedmultiplier", f -> rules.buildSpeedMultiplier = f, () -> rules.buildSpeedMultiplier, 0.001f, 50f);
|
number("@rules.buildspeedmultiplier", f -> rules.buildSpeedMultiplier = f, () -> rules.buildSpeedMultiplier, 0.001f, 50f);
|
||||||
number("@rules.deconstructrefundmultiplier", false, f -> rules.deconstructRefundMultiplier = f, () -> rules.deconstructRefundMultiplier, () -> !rules.infiniteResources);
|
number("@rules.deconstructrefundmultiplier", false, f -> rules.deconstructRefundMultiplier = f, () -> rules.deconstructRefundMultiplier, () -> !rules.infiniteResources);
|
||||||
|
|||||||
@@ -32,7 +32,7 @@ public class LaunchPad extends Block{
|
|||||||
public Sound launchSound = Sounds.none;
|
public Sound launchSound = Sounds.none;
|
||||||
|
|
||||||
public @Load("@-light") TextureRegion lightRegion;
|
public @Load("@-light") TextureRegion lightRegion;
|
||||||
public @Load("launchpod") TextureRegion podRegion;
|
public @Load(value = "@-pod", fallback = "launchpod") TextureRegion podRegion;
|
||||||
public Color lightColor = Color.valueOf("eab678");
|
public Color lightColor = Color.valueOf("eab678");
|
||||||
|
|
||||||
public LaunchPad(String name){
|
public LaunchPad(String name){
|
||||||
@@ -200,7 +200,7 @@ public class LaunchPad extends Block{
|
|||||||
|
|
||||||
Draw.z(Layer.weather - 1);
|
Draw.z(Layer.weather - 1);
|
||||||
|
|
||||||
TextureRegion region = Core.atlas.find("launchpod");
|
TextureRegion region = blockOn() instanceof mindustry.world.blocks.campaign.LaunchPad p ? p.podRegion : Core.atlas.find("launchpod");
|
||||||
float rw = region.width * Draw.scl * scale, rh = region.height * Draw.scl * scale;
|
float rw = region.width * Draw.scl * scale, rh = region.height * Draw.scl * scale;
|
||||||
|
|
||||||
Draw.alpha(alpha);
|
Draw.alpha(alpha);
|
||||||
|
|||||||
@@ -1,5 +1,6 @@
|
|||||||
package mindustry.world.blocks.defense;
|
package mindustry.world.blocks.defense;
|
||||||
|
|
||||||
|
import arc.*;
|
||||||
import arc.graphics.*;
|
import arc.graphics.*;
|
||||||
import arc.graphics.g2d.*;
|
import arc.graphics.g2d.*;
|
||||||
import arc.math.*;
|
import arc.math.*;
|
||||||
@@ -9,6 +10,7 @@ import mindustry.annotations.Annotations.*;
|
|||||||
import mindustry.gen.*;
|
import mindustry.gen.*;
|
||||||
import mindustry.graphics.*;
|
import mindustry.graphics.*;
|
||||||
import mindustry.logic.*;
|
import mindustry.logic.*;
|
||||||
|
import mindustry.ui.*;
|
||||||
import mindustry.world.*;
|
import mindustry.world.*;
|
||||||
import mindustry.world.meta.*;
|
import mindustry.world.meta.*;
|
||||||
|
|
||||||
@@ -62,6 +64,12 @@ public class OverdriveProjector extends Block{
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public void setBars(){
|
||||||
|
super.setBars();
|
||||||
|
bars.add("boost", (OverdriveBuild entity) -> new Bar(() -> Core.bundle.format("bar.boost", (int)(entity.realBoost() * 100)), () -> Pal.accent, () -> entity.realBoost() / (hasBoost ? speedBoost + speedBoostPhase : speedBoost)));
|
||||||
|
}
|
||||||
|
|
||||||
public class OverdriveBuild extends Building implements Ranged{
|
public class OverdriveBuild extends Building implements Ranged{
|
||||||
float heat;
|
float heat;
|
||||||
float charge = Mathf.random(reload);
|
float charge = Mathf.random(reload);
|
||||||
@@ -88,17 +96,20 @@ public class OverdriveProjector extends Block{
|
|||||||
phaseHeat = Mathf.lerpDelta(phaseHeat, Mathf.num(cons.optionalValid()), 0.1f);
|
phaseHeat = Mathf.lerpDelta(phaseHeat, Mathf.num(cons.optionalValid()), 0.1f);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if(charge >= reload){
|
||||||
|
float realRange = range + phaseHeat * phaseRangeBoost;
|
||||||
|
|
||||||
|
charge = 0f;
|
||||||
|
indexer.eachBlock(this, realRange, other -> true, other -> other.applyBoost(realBoost(), reload + 1f));
|
||||||
|
}
|
||||||
|
|
||||||
if(timer(timerUse, useTime) && efficiency() > 0 && consValid()){
|
if(timer(timerUse, useTime) && efficiency() > 0 && consValid()){
|
||||||
consume();
|
consume();
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
if(charge >= reload){
|
public float realBoost(){
|
||||||
float realRange = range + phaseHeat * phaseRangeBoost;
|
return consValid() ? (speedBoost + phaseHeat * speedBoostPhase) * efficiency() : 0f;
|
||||||
float realBoost = (speedBoost + phaseHeat * speedBoostPhase) * efficiency();
|
|
||||||
|
|
||||||
charge = 0f;
|
|
||||||
indexer.eachBlock(this, realRange, other -> true, other -> other.applyBoost(realBoost, reload + 1f));
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
|
|||||||
@@ -296,17 +296,17 @@ public class CoreBlock extends StorageBlock{
|
|||||||
@Override
|
@Override
|
||||||
public void drawSelect(){
|
public void drawSelect(){
|
||||||
Lines.stroke(1f, Pal.accent);
|
Lines.stroke(1f, Pal.accent);
|
||||||
Cons<Building> outline = t -> {
|
Cons<Building> outline = b -> {
|
||||||
for(int i = 0; i < 4; i++){
|
for(int i = 0; i < 4; i++){
|
||||||
Point2 p = Geometry.d8edge[i];
|
Point2 p = Geometry.d8edge[i];
|
||||||
float offset = -Math.max(t.block.size - 1, 0) / 2f * tilesize;
|
float offset = -Math.max(b.block.size - 1, 0) / 2f * tilesize;
|
||||||
Draw.rect("block-select", t.x + offset * p.x, t.y + offset * p.y, i * 90);
|
Draw.rect("block-select", b.x + offset * p.x, b.y + offset * p.y, i * 90);
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
if(proximity.contains(e -> owns(e) && e.items == items)){
|
team.cores().each(core -> {
|
||||||
outline.get(this);
|
outline.get(core);
|
||||||
}
|
core.proximity.each(storage -> storage.items == items, outline);
|
||||||
proximity.each(e -> owns(e) && e.items == items, outline);
|
});
|
||||||
Draw.reset();
|
Draw.reset();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -35,10 +35,6 @@
|
|||||||
"name": "TWS",
|
"name": "TWS",
|
||||||
"address": ["twsmindustry.24x7.hk:6701", "twsmindustry.24x7.hk:6702"]
|
"address": ["twsmindustry.24x7.hk:6701", "twsmindustry.24x7.hk:6702"]
|
||||||
},
|
},
|
||||||
{
|
|
||||||
"address": "cheginde.ddns.net"
|
|
||||||
|
|
||||||
},
|
|
||||||
{
|
{
|
||||||
"name": "mindustry.ddns.net",
|
"name": "mindustry.ddns.net",
|
||||||
"address": ["mindustry.ddns.net:1000", "mindustry.ddns.net:2000", "mindustry.ddns.net:3000", "mindustry.ddns.net:4000"]
|
"address": ["mindustry.ddns.net:1000", "mindustry.ddns.net:2000", "mindustry.ddns.net:3000", "mindustry.ddns.net:4000"]
|
||||||
|
|||||||
Reference in New Issue
Block a user