Skip to content

Commit 6c1952c

Browse files
committed
More ammo types for titan/diffuse
1 parent f07d150 commit 6c1952c

File tree

2 files changed

+69
-2
lines changed

2 files changed

+69
-2
lines changed

core/src/mindustry/content/Blocks.java

+67-1
Original file line numberDiff line numberDiff line change
@@ -4091,6 +4091,37 @@ Items.graphite, new BasicBulletType(8f, 41){{
40914091
trailLength = 3;
40924092
hitEffect = despawnEffect = Fx.hitSquaresColor;
40934093
buildingDamageMultiplier = 0.2f;
4094+
}},
4095+
Items.oxide, new BasicBulletType(8f, 90){{
4096+
knockback = 3f;
4097+
width = 25f;
4098+
hitSize = 7f;
4099+
height = 20f;
4100+
shootEffect = Fx.shootBigColor;
4101+
smokeEffect = Fx.shootSmokeSquareSparse;
4102+
ammoMultiplier = 2;
4103+
hitColor = backColor = trailColor = Color.valueOf("a0b380");
4104+
frontColor = Color.valueOf("e4ffd6");
4105+
trailWidth = 6f;
4106+
trailLength = 3;
4107+
hitEffect = despawnEffect = Fx.hitSquaresColor;
4108+
buildingDamageMultiplier = 0.2f;
4109+
}},
4110+
Items.silicon, new BasicBulletType(8f, 33){{
4111+
knockback = 2f;
4112+
width = 25f;
4113+
hitSize = 7f;
4114+
height = 20f;
4115+
homingPower = 0.045f;
4116+
shootEffect = Fx.shootBigColor;
4117+
smokeEffect = Fx.shootSmokeSquareSparse;
4118+
ammoMultiplier = 1;
4119+
hitColor = backColor = trailColor = Color.valueOf("858a9b");
4120+
frontColor = Color.valueOf("dae1ee");
4121+
trailWidth = 6f;
4122+
trailLength = 6;
4123+
hitEffect = despawnEffect = Fx.hitSquaresColor;
4124+
buildingDamageMultiplier = 0.2f;
40944125
}}
40954126
);
40964127

@@ -4219,7 +4250,7 @@ Liquids.cyanogen, new ContinuousFlameBulletType(){{
42194250
requirements(Category.turret, with(Items.tungsten, 250, Items.silicon, 300, Items.thorium, 400));
42204251

42214252
ammo(
4222-
//TODO 1 more ammo type, decide on base type
4253+
//TODO another ammo type
42234254
Items.thorium, new ArtilleryBulletType(2.5f, 350, "shell"){{
42244255
hitEffect = new MultiEffect(Fx.titanExplosion, Fx.titanSmoke);
42254256
despawnEffect = Fx.none;
@@ -4247,6 +4278,41 @@ Items.thorium, new ArtilleryBulletType(2.5f, 350, "shell"){{
42474278
shootEffect = Fx.shootTitan;
42484279
smokeEffect = Fx.shootSmokeTitan;
42494280

4281+
trailInterp = v -> Math.max(Mathf.slope(v), 0.8f);
4282+
shrinkX = 0.2f;
4283+
shrinkY = 0.1f;
4284+
buildingDamageMultiplier = 0.3f;
4285+
}},
4286+
Items.carbide, new ArtilleryBulletType(2.5f, 500, "shell"){{
4287+
hitEffect = new MultiEffect(Fx.titanExplosion, Fx.titanSmoke);
4288+
despawnEffect = Fx.none;
4289+
knockback = 3f;
4290+
lifetime = 140f;
4291+
height = 19f;
4292+
width = 17f;
4293+
splashDamageRadius = 55f;
4294+
splashDamage = 600f;
4295+
rangeChange = 8f*8f;
4296+
scaledSplashDamage = true;
4297+
backColor = hitColor = trailColor = Color.valueOf("ab8ec5");
4298+
frontColor = Color.white;
4299+
ammoMultiplier = 1f;
4300+
hitSound = Sounds.titanExplosion;
4301+
4302+
status = StatusEffects.blasted;
4303+
4304+
trailLength = 32;
4305+
trailWidth = 3.35f;
4306+
trailSinScl = 2.5f;
4307+
trailSinMag = 0.5f;
4308+
trailEffect = Fx.disperseTrail;
4309+
trailInterval = 2f;
4310+
despawnShake = 7f;
4311+
4312+
shootEffect = Fx.shootTitan;
4313+
smokeEffect = Fx.shootSmokeTitan;
4314+
trailRotation = true;
4315+
42504316
trailInterp = v -> Math.max(Mathf.slope(v), 0.8f);
42514317
shrinkX = 0.2f;
42524318
shrinkY = 0.1f;

core/src/mindustry/entities/bullet/ArtilleryBulletType.java

+2-1
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@ public ArtilleryBulletType(float speed, float damage, String bulletSprite){
1313
collides = false;
1414
collidesAir = false;
1515
scaleLife = true;
16+
trailRotation = false;
1617
hitShake = 1f;
1718
hitSound = Sounds.explosion;
1819
hitEffect = Fx.flakExplosion;
@@ -52,7 +53,7 @@ public void update(Bullet b){
5253
super.update(b);
5354

5455
if(b.timer(0, (3 + b.fslope() * 2f) * trailMult)){
55-
trailEffect.at(b.x, b.y, b.fslope() * trailSize, backColor);
56+
trailEffect.at(b.x, b.y, trailRotation ? b.rotation() : b.fslope() * trailSize, backColor);
5657
}
5758
}
5859
}

0 commit comments

Comments
 (0)