mirror of
https://github.com/Anuken/Mindustry.git
synced 2025-07-24 22:57:50 +07:00
Merge pull request #2395 from genNAowl/ready-to-merge-force-projectors
F O R C E P R O J E C T O R S
This commit is contained in:
@ -615,6 +615,8 @@ blocks.inaccuracy = Inaccuracy
|
|||||||
blocks.shots = Shots
|
blocks.shots = Shots
|
||||||
blocks.reload = Shots/Second
|
blocks.reload = Shots/Second
|
||||||
blocks.ammo = Ammo
|
blocks.ammo = Ammo
|
||||||
|
blocks.shieldhealth = Shield Health
|
||||||
|
blocks.cooldowntime = Cooldown Time
|
||||||
|
|
||||||
bar.drilltierreq = Better Drill Required
|
bar.drilltierreq = Better Drill Required
|
||||||
bar.noresources = Missing Resources
|
bar.noresources = Missing Resources
|
||||||
@ -662,6 +664,7 @@ unit.persecond = /sec
|
|||||||
unit.perminute = /min
|
unit.perminute = /min
|
||||||
unit.timesspeed = x speed
|
unit.timesspeed = x speed
|
||||||
unit.percent = %
|
unit.percent = %
|
||||||
|
unit.shieldhealth = shield health
|
||||||
unit.items = items
|
unit.items = items
|
||||||
unit.thousands = k
|
unit.thousands = k
|
||||||
unit.millions = mil
|
unit.millions = mil
|
||||||
|
@ -23,6 +23,7 @@ public class ForceProjector extends Block{
|
|||||||
public float phaseUseTime = 350f;
|
public float phaseUseTime = 350f;
|
||||||
|
|
||||||
public float phaseRadiusBoost = 80f;
|
public float phaseRadiusBoost = 80f;
|
||||||
|
public float phaseShieldBoost = 400f;
|
||||||
public float radius = 101.7f;
|
public float radius = 101.7f;
|
||||||
public float breakage = 550f;
|
public float breakage = 550f;
|
||||||
public float cooldownNormal = 1.75f;
|
public float cooldownNormal = 1.75f;
|
||||||
@ -59,9 +60,11 @@ public class ForceProjector extends Block{
|
|||||||
@Override
|
@Override
|
||||||
public void setStats(){
|
public void setStats(){
|
||||||
super.setStats();
|
super.setStats();
|
||||||
|
stats.add(BlockStat.shieldHealth, breakage, StatUnit.none);
|
||||||
|
stats.add(BlockStat.cooldownTime, (int) (breakage / cooldownBrokenBase / 60f), StatUnit.seconds);
|
||||||
stats.add(BlockStat.powerUse, basePowerDraw * 60f, StatUnit.powerSecond);
|
stats.add(BlockStat.powerUse, basePowerDraw * 60f, StatUnit.powerSecond);
|
||||||
stats.add(BlockStat.boostEffect, phaseRadiusBoost / tilesize, StatUnit.blocks);
|
stats.add(BlockStat.boostEffect, phaseRadiusBoost / tilesize, StatUnit.blocks);
|
||||||
|
stats.add(BlockStat.boostEffect, phaseShieldBoost, StatUnit.shieldHealth);
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
@ -130,7 +133,7 @@ public class ForceProjector extends Block{
|
|||||||
broken = false;
|
broken = false;
|
||||||
}
|
}
|
||||||
|
|
||||||
if(buildup >= breakage && !broken){
|
if(buildup >= breakage + phaseShieldBoost && !broken){
|
||||||
broken = true;
|
broken = true;
|
||||||
buildup = breakage;
|
buildup = breakage;
|
||||||
Fx.shieldBreak.at(x, y, realRadius(), team.color);
|
Fx.shieldBreak.at(x, y, realRadius(), team.color);
|
||||||
|
@ -48,6 +48,8 @@ public enum BlockStat{
|
|||||||
targetsGround(StatCategory.shooting),
|
targetsGround(StatCategory.shooting),
|
||||||
damage(StatCategory.shooting),
|
damage(StatCategory.shooting),
|
||||||
ammo(StatCategory.shooting),
|
ammo(StatCategory.shooting),
|
||||||
|
shieldHealth(StatCategory.shooting),
|
||||||
|
cooldownTime(StatCategory.shooting),
|
||||||
|
|
||||||
booster(StatCategory.optional),
|
booster(StatCategory.optional),
|
||||||
boostEffect(StatCategory.optional),
|
boostEffect(StatCategory.optional),
|
||||||
|
@ -21,6 +21,7 @@ public enum StatUnit{
|
|||||||
perMinute,
|
perMinute,
|
||||||
timesSpeed(false),
|
timesSpeed(false),
|
||||||
percent(false),
|
percent(false),
|
||||||
|
shieldHealth,
|
||||||
none,
|
none,
|
||||||
items;
|
items;
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user