Scoria Visuals (someone set up the resistances)
This commit is contained in:
1 parent
afddd36440
commit
653bd506a7
2 files changed
+23
-2
No files matched your search
@@ -492,6 +492,7 @@ namespace CalamityMod.CalPlayer
|
||||
{
|
||||
int astralOreID = ModContent.TileType<AstralOre>();
|
||||
int auricOreID = ModContent.TileType<AuricOre>();
|
||||
int chaotiOreID = ModContent.TileType<ChaoticOre>();
|
||||
|
||||
int auricRejectionDamage = 300;
|
||||
float auricRejectionKB = Player.noKnockback ? 20f : 40f;
|
||||
@@ -506,6 +507,10 @@ namespace CalamityMod.CalPlayer
|
||||
if (tile.TileType == astralOreID)
|
||||
Player.AddBuff(ModContent.BuffType<AstralInfectionDebuff>(), 2);
|
||||
|
||||
// You will need to set each resistant item here for burning as it gets bypassed for somereason
|
||||
if (tile.TileType == chaotiOreID)
|
||||
Player.AddBuff(BuffID.Burning, 2);
|
||||
|
||||
// Auric Ore causes an Auric Rejection unless you are wearing Auric Armor
|
||||
// Auric Rejection causes an electrical explosion that yeets the player a considerable distance
|
||||
else if (tile.TileType == auricOreID && !auricSet)
|
||||
|
||||
@@ -6,6 +6,8 @@ using Terraria;
|
||||
using Terraria.DataStructures;
|
||||
using Terraria.ID;
|
||||
using Terraria.ModLoader;
|
||||
using static Terraria.ModLoader.PlayerDrawLayer;
|
||||
|
||||
namespace CalamityMod.Tiles.Ores
|
||||
{
|
||||
public class ChaoticOre : ModTile
|
||||
@@ -34,6 +36,21 @@ namespace CalamityMod.Tiles.Ores
|
||||
|
||||
public override void NearbyEffects(int i, int j, bool closer)
|
||||
{
|
||||
Tile tile = Main.tile[i, j];
|
||||
Tile up = Main.tile[i, j - 1];
|
||||
Tile up2 = Main.tile[i, j - 2];
|
||||
if (closer && Main.rand.NextBool(30) && !up.HasTile && !up2.HasTile)
|
||||
{
|
||||
Dust dust;
|
||||
dust = Main.dust[Dust.NewDust(new Vector2(i * 16f, j * 16f), 16, 16, 127, 0f, -10f, 47, new Color(255, 255, 255), 1.0465117f)];
|
||||
dust.noGravity = true;
|
||||
dust.fadeIn = 1.2209302f;
|
||||
|
||||
dust = Main.dust[Dust.NewDust(new Vector2(i * 16f, j * 16f), 16, 16, 31, 0f, -1.9069767f, 195, new Color(255, 255, 255), 1f)];
|
||||
dust.noGravity = false;
|
||||
dust.fadeIn = 1.4209302f;
|
||||
|
||||
}
|
||||
if (!closer && j < Main.maxTilesY - 205)
|
||||
{
|
||||
if (Main.tile[i, j].LiquidAmount <= 0)
|
||||
@@ -71,8 +88,7 @@ namespace CalamityMod.Tiles.Ores
|
||||
{
|
||||
num = fail ? 1 : 3;
|
||||
}
|
||||
|
||||
public override void ModifyLight(int i, int j, ref float r, ref float g, ref float b)
|
||||
public override void ModifyLight(int i, int j, ref float r, ref float g, ref float b)
|
||||
{
|
||||
r = 0.04f;
|
||||
g = 0.00f;
|
||||
|
||||
Reference in new issue
Block a user