added abyss crate gore + changed pot gore
No files matched your search
|
After Width: | Height: | Size: 286 B |
|
After Width: | Height: | Size: 255 B |
|
After Width: | Height: | Size: 186 B |
|
After Width: | Height: | Size: 202 B |
|
After Width: | Height: | Size: 226 B |
|
After Width: | Height: | Size: 244 B |
|
After Width: | Height: | Size: 268 B |
|
After Width: | Height: | Size: 196 B |
|
After Width: | Height: | Size: 245 B |
|
After Width: | Height: | Size: 185 B |
|
After Width: | Height: | Size: 168 B |
|
After Width: | Height: | Size: 265 B |
|
After Width: | Height: | Size: 251 B |
|
After Width: | Height: | Size: 252 B |
|
After Width: | Height: | Size: 220 B |
|
Before Width: | Height: | Size: 275 B |
|
Before Width: | Height: | Size: 220 B |
@@ -12,9 +12,9 @@ namespace CalamityMod.Tiles.Abyss.AbyssAmbient
|
||||
//
|
||||
// Pirate Crate With Glow
|
||||
|
||||
public class PirateCrate1 : GlowMaskTile
|
||||
public abstract class PirateCrateExplosive : GlowMaskTile
|
||||
{
|
||||
public override string GlowMaskAsset => "CalamityMod/Tiles/Abyss/AbyssAmbient/PirateCrate1Glow";
|
||||
public abstract string GoreKey { get; }
|
||||
|
||||
public static readonly SoundStyle MineSound = new("CalamityMod/Sounds/Custom/CrateBreak", 3) { Volume = 0.8f };
|
||||
public override void SetupStatic()
|
||||
@@ -39,6 +39,13 @@ namespace CalamityMod.Tiles.Abyss.AbyssAmbient
|
||||
// NOTE: The damage of ProjectileID.Explosives is reduced in CalamityPlayerHitHurt, this actually deals 52 / 67 / 101 damage.
|
||||
int blastDamage = (Main.getGoodWorld ? 99999 : 150) * (Main.masterMode ? 3 : Main.expertMode ? 2 : 1);
|
||||
Projectile.NewProjectile(new EntitySource_WorldEvent(), spawnPosition.X, spawnPosition.Y, 0, 0, ProjectileID.Explosives, blastDamage, 0f);
|
||||
|
||||
if (Main.dedServ)
|
||||
return;
|
||||
|
||||
Gore.NewGore(new EntitySource_TileBreak(i, j), new Vector2(i, j) * 16f, Main.rand.NextVector2CircularEdge(3f, 3f), Mod.Find<ModGore>($"{GoreKey}1").Type);
|
||||
Gore.NewGore(new EntitySource_TileBreak(i, j), new Vector2(i, j) * 16f, Main.rand.NextVector2CircularEdge(3f, 3f), Mod.Find<ModGore>($"{GoreKey}2").Type);
|
||||
Gore.NewGore(new EntitySource_TileBreak(i, j), new Vector2(i, j) * 16f, Main.rand.NextVector2CircularEdge(3f, 3f), Mod.Find<ModGore>($"{GoreKey}3").Type);
|
||||
}
|
||||
|
||||
public override void NumDust(int i, int j, bool fail, ref int num)
|
||||
@@ -52,21 +59,31 @@ namespace CalamityMod.Tiles.Abyss.AbyssAmbient
|
||||
}
|
||||
}
|
||||
|
||||
public class PirateCrate2 : PirateCrate1
|
||||
public class PirateCrate1 : PirateCrateExplosive
|
||||
{
|
||||
public override string GlowMaskAsset => "CalamityMod/Tiles/Abyss/AbyssAmbient/PirateCrate2Glow";
|
||||
public override string GlowMaskAsset => "CalamityMod/Tiles/Abyss/AbyssAmbient/PirateCrate1Glow";
|
||||
public override string GoreKey => "PirateCrateL";
|
||||
}
|
||||
|
||||
public class PirateCrate3 : PirateCrate1
|
||||
public class PirateCrate2 : PirateCrateExplosive
|
||||
{
|
||||
public override string GlowMaskAsset => "CalamityMod/Tiles/Abyss/AbyssAmbient/PirateCrate2Glow";
|
||||
public override string GoreKey => "PirateCrateM";
|
||||
}
|
||||
|
||||
public class PirateCrate3 : PirateCrateExplosive
|
||||
{
|
||||
public override string GlowMaskAsset => "CalamityMod/Tiles/Abyss/AbyssAmbient/PirateCrate3Glow";
|
||||
public override string GoreKey => "PirateCrateR";
|
||||
}
|
||||
|
||||
//
|
||||
// Pirate Crate Without Glow
|
||||
|
||||
public class PirateCrate4 : ModTile
|
||||
public abstract class PirateCrateGold : ModTile
|
||||
{
|
||||
public abstract string GoreKey { get; }
|
||||
|
||||
public static readonly SoundStyle MineSound = new("CalamityMod/Sounds/Custom/CrateBreak", 3) { Volume = 0.8f };
|
||||
public override void SetStaticDefaults()
|
||||
{
|
||||
@@ -90,6 +107,13 @@ namespace CalamityMod.Tiles.Abyss.AbyssAmbient
|
||||
Item.NewItem(new EntitySource_TileBreak(i, j), i * 16, j * 16, 32, 32, ItemID.GoldCoin, Main.rand.Next(1, 2));
|
||||
|
||||
Item.NewItem(new EntitySource_TileBreak(i, j), i * 16, j * 16, 32, 32, ItemID.SilverCoin, Main.rand.Next(45, 75));
|
||||
|
||||
if (Main.dedServ)
|
||||
return;
|
||||
|
||||
Gore.NewGore(new EntitySource_TileBreak(i, j), new Vector2(i, j) * 16f, Main.rand.NextVector2CircularEdge(3f, 3f), Mod.Find<ModGore>($"{GoreKey}1").Type);
|
||||
Gore.NewGore(new EntitySource_TileBreak(i, j), new Vector2(i, j) * 16f, Main.rand.NextVector2CircularEdge(3f, 3f), Mod.Find<ModGore>($"{GoreKey}2").Type);
|
||||
Gore.NewGore(new EntitySource_TileBreak(i, j), new Vector2(i, j) * 16f, Main.rand.NextVector2CircularEdge(3f, 3f), Mod.Find<ModGore>($"{GoreKey}3").Type);
|
||||
}
|
||||
|
||||
public override void NumDust(int i, int j, bool fail, ref int num)
|
||||
@@ -98,11 +122,18 @@ namespace CalamityMod.Tiles.Abyss.AbyssAmbient
|
||||
}
|
||||
}
|
||||
|
||||
public class PirateCrate5 : PirateCrate4
|
||||
public class PirateCrate4 : PirateCrateGold
|
||||
{
|
||||
public override string GoreKey => "PirateCrateL";
|
||||
}
|
||||
|
||||
public class PirateCrate6 : PirateCrate4
|
||||
public class PirateCrate5 : PirateCrateGold
|
||||
{
|
||||
public override string GoreKey => "PirateCrateM";
|
||||
}
|
||||
|
||||
public class PirateCrate6 : PirateCrateGold
|
||||
{
|
||||
public override string GoreKey => "PirateCrateR";
|
||||
}
|
||||
}
|
||||
@@ -36,11 +36,10 @@ namespace CalamityMod.Tiles.Abyss
|
||||
{
|
||||
if (!Main.dedServ)
|
||||
{
|
||||
int goreAmt = Main.rand.Next(1, 2 + 1);
|
||||
int goreAmt = Main.rand.Next(2, 4 + 1);
|
||||
for (int k = 0; k < goreAmt; k++)
|
||||
{
|
||||
Gore.NewGore(new EntitySource_TileBreak(i, j), new Vector2(i, j) * 16, Main.rand.NextVector2CircularEdge(3f, 3f), Mod.Find<ModGore>("AbyssPotGore1").Type);
|
||||
Gore.NewGore(new EntitySource_TileBreak(i, j), new Vector2(i, j) * 16, Main.rand.NextVector2CircularEdge(3f, 3f), Mod.Find<ModGore>("AbyssPotGore2").Type);
|
||||
Gore.NewGore(new EntitySource_TileBreak(i, j), new Vector2(i, j) * 16, Main.rand.NextVector2CircularEdge(3f, 3f), Mod.Find<ModGore>($"AbyssPot{WorldGen.genRand.Next(1, 6 + 1)}").Type);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||