Skip to content

Commit 3a07fe2

Browse files
committed
glob
1 parent 4dfbd82 commit 3a07fe2

File tree

6 files changed

+36
-8
lines changed

6 files changed

+36
-8
lines changed
503 Bytes
Loading

src/progressed/content/PMLiquids.java

+3
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,9 @@ public static void load() {
3030
canStayOn.addAll(Liquids.water, Liquids.oil, Liquids.cryofluid);
3131
hideDetails = false;
3232
hidden = true;
33+
34+
colorFrom = Color.valueOf("d2701e");
35+
colorTo = Color.valueOf("a21019");
3336
}};
3437
}
3538
}

src/progressed/content/blocks/PMModules.java

+26-1
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@
1515
import mindustry.type.*;
1616
import mindustry.world.*;
1717
import mindustry.world.consumers.*;
18+
import progressed.content.*;
1819
import progressed.content.effects.*;
1920
import progressed.entities.bullet.energy.*;
2021
import progressed.entities.bullet.physical.*;
@@ -43,7 +44,6 @@ public class PMModules{
4344

4445
//Large
4546
firestorm, wasteland, judgement;
46-
//TODO? wasteland: a neoplasm artillery cannon. splits out globs that stick to enemies then explode
4747
//TODO judgement: 3 large beams
4848

4949
public static void load(){
@@ -325,6 +325,31 @@ Items.tungsten, new AntiMissileRailBulletType(){{
325325
shotDelay = 8f;
326326
}};
327327
}};
328+
329+
wasteland = new MortarLiquidTurretModule("wasteland"){{
330+
requirements(Category.units, PMBlocks.incompleteVisibility(), with());
331+
moduleSize = ModuleSize.large;
332+
size = 3;
333+
outlineColor = Pal.darkOutline;
334+
335+
ammo(Liquids.neoplasm, new ArcBoltBulletType(3, 0, "prog-mats-sludge-glob"){{
336+
bloomSprite = false;
337+
338+
gravity = 0.05f;
339+
340+
splashDamage = 100f;
341+
splashDamageRadius = 12f * tilesize;
342+
status = PMStatusEffects.sludgeIncineration;
343+
344+
puddles = 3;
345+
puddleAmount = 30;
346+
puddleLiquid = PMLiquids.sludge;
347+
}});
348+
349+
reload = 90f;
350+
minRange = 5 * tilesize;
351+
range = 24 * tilesize;
352+
}};
328353
}
329354

330355
public static void setClip(float newClip){

src/progressed/entities/bullet/pseudo3d/ArcBoltBulletType.java

+2-2
Original file line numberDiff line numberDiff line change
@@ -11,12 +11,12 @@
1111
public class ArcBoltBulletType extends ArcBasicBulletType{
1212
public ArcBoltBulletType(float speed, float damage, String sprite){
1313
super(speed, damage, sprite);
14+
15+
spinShade = drawZone = drawTarget = drawProgress = false;
1416
}
1517

1618
public ArcBoltBulletType(float speed, float damage){
1719
this(speed, damage, "bullet");
18-
19-
spinShade = drawZone = drawTarget = drawProgress = false;
2020
}
2121

2222
public ArcBoltBulletType(float speed){

src/progressed/graphics/PMPal.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ public class PMPal{
2525
missileFrag = valueOf("9CB664"),
2626
nukeEmp = valueOf("a1b0ff"),
2727

28-
sludge = valueOf("ad510a"),
28+
sludge = valueOf("bd3e12"),
2929

3030
nexusLaser = valueOf("da89fa"),
3131
nexusLaserDark = valueOf("cf6aec");

src/progressed/world/blocks/defence/turret/payload/modular/modules/MortarLiquidTurretModule.java

+4-4
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ protected void bullet(BulletType type, float xOffset, float yOffset, float angle
1919
queuedBullets--;
2020
if(dead || (!consumeAmmoOnce && !hasAmmo())) return;
2121

22-
ArcMissileBulletType m = (ArcMissileBulletType)type;
22+
ArcBulletType m = (ArcBulletType)type;
2323
Vec2 inacc = Math3D.inaccuracy(inaccuracy);
2424

2525
float
@@ -60,11 +60,11 @@ protected void bullet(BulletType type, float xOffset, float yOffset, float angle
6060

6161
protected float shootAngle(ArcBulletType b){
6262
float[] angs = Math3D.shootAngle(Math.min(dst(targetPos), range()), b.gravity, b.speed);
63+
float a = angs[0];
6364
if(angs.length == 2){
64-
return angs[1];
65-
}else{
66-
return angs[0];
65+
a = angs[1];
6766
}
67+
return a * Mathf.radDeg;
6868
}
6969
}
7070
}

0 commit comments

Comments
 (0)