Misc fixes
This commit is contained in:
@@ -3656,7 +3656,7 @@ public class Blocks{
|
||||
cyclone = new ItemTurret("cyclone"){{
|
||||
requirements(Category.turret, with(Items.copper, 200, Items.titanium, 125, Items.plastanium, 80));
|
||||
ammo(
|
||||
Items.metaglass, new FlakBulletType(4f, 10){{
|
||||
Items.metaglass, new FlakBulletType(4f, 6){{
|
||||
ammoMultiplier = 2f;
|
||||
shootEffect = Fx.shootSmall;
|
||||
reloadMultiplier = 0.8f;
|
||||
@@ -3678,7 +3678,7 @@ public class Blocks{
|
||||
explodeRange = 20f;
|
||||
collidesGround = true;
|
||||
}},
|
||||
Items.blastCompound, new FlakBulletType(4f, 5){{
|
||||
Items.blastCompound, new FlakBulletType(4f, 8){{
|
||||
shootEffect = Fx.shootBig;
|
||||
ammoMultiplier = 5f;
|
||||
splashDamage = 45f;
|
||||
@@ -3688,7 +3688,7 @@ public class Blocks{
|
||||
status = StatusEffects.blasted;
|
||||
statusDuration = 60f;
|
||||
}},
|
||||
Items.plastanium, new FlakBulletType(4f, 6){{
|
||||
Items.plastanium, new FlakBulletType(4f, 8){{
|
||||
ammoMultiplier = 4f;
|
||||
splashDamageRadius = 40f;
|
||||
splashDamage = 37.5f;
|
||||
|
||||
@@ -101,25 +101,20 @@ public class ShieldArcAbility extends Ability{
|
||||
Draw.color(unit.team.color, Color.white, Mathf.clamp(alpha));
|
||||
var pos = paramPos.set(x, y).rotate(unit.rotation - 90f).add(unit);
|
||||
|
||||
if(Vars.renderer.animateShields){
|
||||
if(region != null){
|
||||
Vec2 rp = offsetRegion ? pos : Tmp.v1.set(unit);
|
||||
Draw.yscl = widthScale;
|
||||
Draw.rect(region, rp.x, rp.y, unit.rotation - 90);
|
||||
Draw.yscl = 1f;
|
||||
}
|
||||
if(!Vars.renderer.animateShields){
|
||||
Draw.alpha(0.4f);
|
||||
}
|
||||
|
||||
if(drawArc){
|
||||
Lines.stroke(width * widthScale);
|
||||
Lines.arc(pos.x, pos.y, radius, angle / 360f, unit.rotation + angleOffset - angle / 2f);
|
||||
}
|
||||
}else{
|
||||
//TODO
|
||||
Lines.stroke(1.5f);
|
||||
Draw.alpha(0.09f);
|
||||
Fill.poly(pos.x, pos.y, 6, radius);
|
||||
Draw.alpha(1f);
|
||||
Lines.poly(pos.x, pos.y, 6, radius);
|
||||
if(region != null){
|
||||
Vec2 rp = offsetRegion ? pos : Tmp.v1.set(unit);
|
||||
Draw.yscl = widthScale;
|
||||
Draw.rect(region, rp.x, rp.y, unit.rotation - 90);
|
||||
Draw.yscl = 1f;
|
||||
}
|
||||
|
||||
if(drawArc){
|
||||
Lines.stroke(width * widthScale);
|
||||
Lines.arc(pos.x, pos.y, radius, angle / 360f, unit.rotation + angleOffset - angle / 2f);
|
||||
}
|
||||
Draw.reset();
|
||||
}
|
||||
|
||||
@@ -1,7 +1,9 @@
|
||||
package mindustry.type.unit;
|
||||
|
||||
import mindustry.content.*;
|
||||
import mindustry.graphics.*;
|
||||
import mindustry.type.*;
|
||||
import mindustry.type.ammo.*;
|
||||
import mindustry.world.meta.*;
|
||||
|
||||
/** Config class for special Erekir unit properties. */
|
||||
@@ -11,6 +13,7 @@ public class ErekirUnitType extends UnitType{
|
||||
super(name);
|
||||
outlineColor = Pal.darkOutline;
|
||||
envDisabled = Env.space;
|
||||
ammoType = new ItemAmmoType(Items.beryllium);
|
||||
researchCostMultiplier = 10f;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user