Tiles and walls.
This commit is contained in:
1 parent
7c69127899
commit
3e2d4e823c
133 files changed
+308
-412
No files matched your search
@@ -174,7 +174,7 @@ namespace CalamityMod.NPCs.AcidRain
|
||||
for (int i = 0; i < spikesPerBurst; i++)
|
||||
{
|
||||
Vector2 spikeShootVelocity = (MathHelper.TwoPi * i / spikesPerBurst + shootOffsetAngle).ToRotationVector2() * burstSpeed;
|
||||
Projectile.NewProjectile(NPC.Center + spikeShootVelocity * 1.6f, spikeShootVelocity, ModContent.ProjectileType<CragmawSpike>(), damage, 0f);
|
||||
Projectile.NewProjectile(NPC.GetSpawnSource_ForProjectile(), NPC.Center + spikeShootVelocity * 1.6f, spikeShootVelocity, ModContent.ProjectileType<CragmawSpike>(), damage, 0f);
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -277,14 +277,14 @@ namespace CalamityMod.NPCs.AcidRain
|
||||
{
|
||||
int nukeDamage = DownedBossSystem.downedPolterghast ? 72 : 38;
|
||||
int dropletDamage = (int)(nukeDamage * 0.6f);
|
||||
int explosion = Projectile.NewProjectile(NPC.Center, Vector2.Zero, ModContent.ProjectileType<CragmawExplosion>(), nukeDamage, 0f);
|
||||
int explosion = Projectile.NewProjectile(NPC.GetSpawnSource_ForProjectile(), NPC.Center, Vector2.Zero, ModContent.ProjectileType<CragmawExplosion>(), nukeDamage, 0f);
|
||||
if (Main.projectile.IndexInRange(explosion))
|
||||
Main.projectile[explosion].Bottom = NPC.Bottom + Vector2.UnitY * 4f;
|
||||
|
||||
for (int i = 0; i < 12; i++)
|
||||
{
|
||||
Vector2 dropletVelocity = -Vector2.UnitY.RotatedByRandom(0.71f) * Main.rand.NextFloat(8f, 12f);
|
||||
Projectile.NewProjectile(NPC.Center, dropletVelocity, ModContent.ProjectileType<CragmawAcidDrop>(), dropletDamage, 0f);
|
||||
Projectile.NewProjectile(NPC.GetSpawnSource_ForProjectile(), NPC.Center, dropletVelocity, ModContent.ProjectileType<CragmawAcidDrop>(), dropletDamage, 0f);
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -402,7 +402,7 @@ namespace CalamityMod.NPCs.AcidRain
|
||||
if (Main.netMode != NetmodeID.MultiplayerClient)
|
||||
{
|
||||
int laserbeamDamage = DownedBossSystem.downedPolterghast ? 120 : 40;
|
||||
Projectile.NewProjectile(NPC.Center, -Vector2.UnitY, ModContent.ProjectileType<CragmawBeam>(), laserbeamDamage, 0f, Main.myPlayer, 0f, NPC.whoAmI);
|
||||
Projectile.NewProjectile(NPC.GetSpawnSource_ForProjectile(), NPC.Center, -Vector2.UnitY, ModContent.ProjectileType<CragmawBeam>(), laserbeamDamage, 0f, Main.myPlayer, 0f, NPC.whoAmI);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -415,7 +415,7 @@ namespace CalamityMod.NPCs.AcidRain
|
||||
public void DoBehavior_CreateVibeCheckTether()
|
||||
{
|
||||
if (Main.netMode != NetmodeID.MultiplayerClient && AttackTimer == 30f)
|
||||
Projectile.NewProjectile(NPC.Center, -Vector2.UnitY * 4f, ModContent.ProjectileType<CragmawVibeCheckChain>(), 0, 0f, Main.myPlayer, NPC.whoAmI, NPC.target);
|
||||
Projectile.NewProjectile(NPC.GetSpawnSource_ForProjectile(), NPC.Center, -Vector2.UnitY * 4f, ModContent.ProjectileType<CragmawVibeCheckChain>(), 0, 0f, Main.myPlayer, NPC.whoAmI, NPC.target);
|
||||
if (AttackTimer > CragmawVibeCheckChain.Lifetime + 30f)
|
||||
SelectNextAttack();
|
||||
}
|
||||
|
||||
@@ -172,7 +172,7 @@ namespace CalamityMod.NPCs.AcidRain
|
||||
for (int i = 0; i < bubblesPerBurst; i++)
|
||||
{
|
||||
Vector2 bubbleShootVelocity = baseBubbleShootVelocity + Main.rand.NextVector2Circular(4f, 4f);
|
||||
Projectile.NewProjectile(mouthPosition, bubbleShootVelocity, bubbleShootType, bubbleDamage, 0f);
|
||||
Projectile.NewProjectile(NPC.GetSpawnSource_ForProjectile(), mouthPosition, bubbleShootVelocity, bubbleShootType, bubbleDamage, 0f);
|
||||
}
|
||||
|
||||
// Get launched back after firing. This only happens if in water and there's no obstacles behind.
|
||||
@@ -266,7 +266,7 @@ namespace CalamityMod.NPCs.AcidRain
|
||||
int acidDamage = NPC.GetProjectileDamage(acidShootType);
|
||||
Vector2 acidSpawnPosition = NPC.Center + Main.rand.NextVector2Circular(30f, 10f).RotatedBy(NPC.rotation);
|
||||
Vector2 acidShootVelocity = -Vector2.UnitY.RotatedByRandom(0.33f) * Main.rand.NextFloat(8f, 10.5f);
|
||||
Projectile.NewProjectile(acidSpawnPosition, acidShootVelocity, acidShootType, acidDamage, 0f);
|
||||
Projectile.NewProjectile(NPC.GetSpawnSource_ForProjectile(), acidSpawnPosition, acidShootVelocity, acidShootType, acidDamage, 0f);
|
||||
NPC.netUpdate = true;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -261,8 +261,8 @@ namespace CalamityMod.NPCs.AcidRain
|
||||
bool solidGround = (Main.tileSolid[tileBelow.TileType] || Main.tileSolidTop[tileBelow.TileType]) && tileBelow.HasTile;
|
||||
if (!veryCloseToTarget && !veryCloseToSelf && solidGround)
|
||||
{
|
||||
// If the below tile has lava, skip it.
|
||||
if (CalamityUtils.ParanoidTileRetrieval(x, y - 1).lava())
|
||||
// If the below tile has lava or honey, skip it.
|
||||
if (CalamityUtils.ParanoidTileRetrieval(x, y - 1).LiquidType != LiquidID.Water)
|
||||
continue;
|
||||
|
||||
// If there's any tiles in the way, skip it.
|
||||
@@ -375,14 +375,14 @@ namespace CalamityMod.NPCs.AcidRain
|
||||
if (Main.netMode != NetmodeID.MultiplayerClient)
|
||||
{
|
||||
float angle = (wrappedAttackTime - (AttackCycleTime - SpecialAttackTime + 20f)) % 12f / 12f * MathHelper.ToRadians(15f) - MathHelper.ToRadians(7.5f);
|
||||
int bullet = Projectile.NewProjectile(mouthPosition, directionToShootPosition.RotatedBy(angle) * 14f, ModContent.ProjectileType<NuclearBulletLarge>(), 48, 4f);
|
||||
int bullet = Projectile.NewProjectile(NPC.GetSpawnSource_ForProjectile(), mouthPosition, directionToShootPosition.RotatedBy(angle) * 14f, ModContent.ProjectileType<NuclearBulletLarge>(), 48, 4f);
|
||||
Main.projectile[bullet].localAI[0] = angle;
|
||||
}
|
||||
NPC.spriteDirection = (ShootPosition.X - NPC.Center.X < 0).ToDirectionInt();
|
||||
SoundEngine.PlaySound(SoundID.NPCDeath13, mouthPosition);
|
||||
}
|
||||
if (wrappedAttackTime >= (AttackCycleTime - SpecialAttackTime + 35f) && AttackTime % 10f == 9f)
|
||||
Projectile.NewProjectile(mouthPosition, directionToTarget * 12f, ModContent.ProjectileType<NuclearBulletLarge>(), 48, 3f);
|
||||
Projectile.NewProjectile(NPC.GetSpawnSource_ForProjectile(), mouthPosition, directionToTarget * 12f, ModContent.ProjectileType<NuclearBulletLarge>(), 48, 3f);
|
||||
break;
|
||||
case SpecialAttackState.ConeStreamOfBullets:
|
||||
if (wrappedAttackTime >= AttackCycleTime - SpecialAttackTime + 35f && AttackTime % 4f == 3f)
|
||||
@@ -390,8 +390,8 @@ namespace CalamityMod.NPCs.AcidRain
|
||||
if (Main.netMode != NetmodeID.MultiplayerClient)
|
||||
{
|
||||
float angle = MathHelper.Lerp(MathHelper.ToRadians(35f), MathHelper.ToRadians(5f), (wrappedAttackTime - (AttackCycleTime - SpecialAttackTime + 35f)) / (SpecialAttackTime + 35f));
|
||||
Projectile.NewProjectile(mouthPosition, directionToTarget.RotatedBy(angle) * 16f, ModContent.ProjectileType<NuclearBulletLarge>(), 48, 4.5f);
|
||||
Projectile.NewProjectile(mouthPosition, directionToTarget.RotatedBy(-angle) * 16f, ModContent.ProjectileType<NuclearBulletLarge>(), 48, 4.5f);
|
||||
Projectile.NewProjectile(NPC.GetSpawnSource_ForProjectile(), mouthPosition, directionToTarget.RotatedBy(angle) * 16f, ModContent.ProjectileType<NuclearBulletLarge>(), 48, 4.5f);
|
||||
Projectile.NewProjectile(NPC.GetSpawnSource_ForProjectile(), mouthPosition, directionToTarget.RotatedBy(-angle) * 16f, ModContent.ProjectileType<NuclearBulletLarge>(), 48, 4.5f);
|
||||
}
|
||||
NPC.spriteDirection = (Target.Center.X - NPC.Center.X < 0).ToDirectionInt();
|
||||
}
|
||||
@@ -404,7 +404,7 @@ namespace CalamityMod.NPCs.AcidRain
|
||||
for (int i = 0; i < 3; i++)
|
||||
{
|
||||
float angle = MathHelper.Lerp(-0.5f, 0.5f, i / 3f);
|
||||
Projectile.NewProjectile(mouthPosition, directionToShootPosition.RotatedBy(angle) * 13f, ModContent.ProjectileType<NuclearBulletMedium>(), 48, 4f);
|
||||
Projectile.NewProjectile(NPC.GetSpawnSource_ForProjectile(), mouthPosition, directionToShootPosition.RotatedBy(angle) * 13f, ModContent.ProjectileType<NuclearBulletMedium>(), 48, 4f);
|
||||
}
|
||||
}
|
||||
NPC.spriteDirection = (ShootPosition.X - NPC.Center.X < 0).ToDirectionInt();
|
||||
|
||||
@@ -147,7 +147,7 @@ namespace CalamityMod.NPCs.Astral
|
||||
num8 += 6;
|
||||
|
||||
int num9 = ProjectileID.PinkLaser;
|
||||
Projectile.NewProjectile(vector.X, vector.Y, num4, num5, num9, num8, 0f, Main.myPlayer, 0f, 0f);
|
||||
Projectile.NewProjectile(NPC.GetSpawnSource_ForProjectile(), vector.X, vector.Y, num4, num5, num9, num8, 0f, Main.myPlayer, 0f, 0f);
|
||||
}
|
||||
}
|
||||
int num10 = (int)NPC.position.X + NPC.width / 2;
|
||||
|
||||
@@ -172,31 +172,7 @@ namespace CalamityMod.NPCs.NormalNPCs
|
||||
position2.X += NPC.velocity.X;
|
||||
int num165 = (int)((position2.X + (float)(NPC.width / 2) + (float)((NPC.width / 2 + 1) * num164)) / 16f);
|
||||
int num166 = (int)((position2.Y + (float)NPC.height - 1f) / 16f);
|
||||
if (Main.tile[num165, num166] == null)
|
||||
{
|
||||
Main.tile[num165, num166] = new Tile();
|
||||
}
|
||||
if (Main.tile[num165, num166 - 1] == null)
|
||||
{
|
||||
Main.tile[num165, num166 - 1] = new Tile();
|
||||
}
|
||||
if (Main.tile[num165, num166 - 2] == null)
|
||||
{
|
||||
Main.tile[num165, num166 - 2] = new Tile();
|
||||
}
|
||||
if (Main.tile[num165, num166 - 3] == null)
|
||||
{
|
||||
Main.tile[num165, num166 - 3] = new Tile();
|
||||
}
|
||||
if (Main.tile[num165, num166 + 1] == null)
|
||||
{
|
||||
Main.tile[num165, num166 + 1] = new Tile();
|
||||
}
|
||||
if (Main.tile[num165 - num164, num166 - 3] == null)
|
||||
{
|
||||
Main.tile[num165 - num164, num166 - 3] = new Tile();
|
||||
}
|
||||
if ((float)(num165 * 16) < position2.X + (float)NPC.width && (float)(num165 * 16 + 16) > position2.X && ((Main.tile[num165, num166].HasUnactuatedTile && !Main.tile[num165, num166].topSlope() && !Main.tile[num165, num166 - 1].topSlope() && Main.tileSolid[(int)Main.tile[num165, num166].TileType] && !Main.tileSolidTop[(int)Main.tile[num165, num166].TileType]) || (Main.tile[num165, num166 - 1].IsHalfBlock && Main.tile[num165, num166 - 1].HasUnactuatedTile)) && (!Main.tile[num165, num166 - 1].HasUnactuatedTile || !Main.tileSolid[(int)Main.tile[num165, num166 - 1].TileType] || Main.tileSolidTop[(int)Main.tile[num165, num166 - 1].TileType] || (Main.tile[num165, num166 - 1].IsHalfBlock && (!Main.tile[num165, num166 - 4].HasUnactuatedTile || !Main.tileSolid[(int)Main.tile[num165, num166 - 4].TileType] || Main.tileSolidTop[(int)Main.tile[num165, num166 - 4].TileType]))) && (!Main.tile[num165, num166 - 2].HasUnactuatedTile || !Main.tileSolid[(int)Main.tile[num165, num166 - 2].TileType] || Main.tileSolidTop[(int)Main.tile[num165, num166 - 2].TileType]) && (!Main.tile[num165, num166 - 3].HasUnactuatedTile || !Main.tileSolid[(int)Main.tile[num165, num166 - 3].TileType] || Main.tileSolidTop[(int)Main.tile[num165, num166 - 3].TileType]) && (!Main.tile[num165 - num164, num166 - 3].HasUnactuatedTile || !Main.tileSolid[(int)Main.tile[num165 - num164, num166 - 3].TileType]))
|
||||
if ((float)(num165 * 16) < position2.X + (float)NPC.width && (float)(num165 * 16 + 16) > position2.X && ((Main.tile[num165, num166].HasUnactuatedTile && !Main.tile[num165, num166].TopSlope && !Main.tile[num165, num166 - 1].TopSlope && Main.tileSolid[(int)Main.tile[num165, num166].TileType] && !Main.tileSolidTop[(int)Main.tile[num165, num166].TileType]) || (Main.tile[num165, num166 - 1].IsHalfBlock && Main.tile[num165, num166 - 1].HasUnactuatedTile)) && (!Main.tile[num165, num166 - 1].HasUnactuatedTile || !Main.tileSolid[(int)Main.tile[num165, num166 - 1].TileType] || Main.tileSolidTop[(int)Main.tile[num165, num166 - 1].TileType] || (Main.tile[num165, num166 - 1].IsHalfBlock && (!Main.tile[num165, num166 - 4].HasUnactuatedTile || !Main.tileSolid[(int)Main.tile[num165, num166 - 4].TileType] || Main.tileSolidTop[(int)Main.tile[num165, num166 - 4].TileType]))) && (!Main.tile[num165, num166 - 2].HasUnactuatedTile || !Main.tileSolid[(int)Main.tile[num165, num166 - 2].TileType] || Main.tileSolidTop[(int)Main.tile[num165, num166 - 2].TileType]) && (!Main.tile[num165, num166 - 3].HasUnactuatedTile || !Main.tileSolid[(int)Main.tile[num165, num166 - 3].TileType] || Main.tileSolidTop[(int)Main.tile[num165, num166 - 3].TileType]) && (!Main.tile[num165 - num164, num166 - 3].HasUnactuatedTile || !Main.tileSolid[(int)Main.tile[num165 - num164, num166 - 3].TileType]))
|
||||
{
|
||||
float num167 = (float)(num166 * 16);
|
||||
if (Main.tile[num165, num166].IsHalfBlock)
|
||||
@@ -231,38 +207,6 @@ namespace CalamityMod.NPCs.NormalNPCs
|
||||
{
|
||||
int num170 = (int)((NPC.position.X + (float)(NPC.width / 2) + (float)(15 * NPC.direction)) / 16f);
|
||||
int num171 = (int)((NPC.position.Y + (float)NPC.height - 15f) / 16f);
|
||||
if (Main.tile[num170, num171] == null)
|
||||
{
|
||||
Main.tile[num170, num171] = new Tile();
|
||||
}
|
||||
if (Main.tile[num170, num171 - 1] == null)
|
||||
{
|
||||
Main.tile[num170, num171 - 1] = new Tile();
|
||||
}
|
||||
if (Main.tile[num170, num171 - 2] == null)
|
||||
{
|
||||
Main.tile[num170, num171 - 2] = new Tile();
|
||||
}
|
||||
if (Main.tile[num170, num171 - 3] == null)
|
||||
{
|
||||
Main.tile[num170, num171 - 3] = new Tile();
|
||||
}
|
||||
if (Main.tile[num170, num171 + 1] == null)
|
||||
{
|
||||
Main.tile[num170, num171 + 1] = new Tile();
|
||||
}
|
||||
if (Main.tile[num170 + NPC.direction, num171 - 1] == null)
|
||||
{
|
||||
Main.tile[num170 + NPC.direction, num171 - 1] = new Tile();
|
||||
}
|
||||
if (Main.tile[num170 + NPC.direction, num171 + 1] == null)
|
||||
{
|
||||
Main.tile[num170 + NPC.direction, num171 + 1] = new Tile();
|
||||
}
|
||||
if (Main.tile[num170 - NPC.direction, num171 + 1] == null)
|
||||
{
|
||||
Main.tile[num170 - NPC.direction, num171 + 1] = new Tile();
|
||||
}
|
||||
Main.tile[num170, num171 + 1].IsHalfBlock;
|
||||
if ((Main.tile[num170, num171 - 1].HasUnactuatedTile && (Main.tile[num170, num171 - 1].TileType == 10 || Main.tile[num170, num171 - 1].TileType == 388)) & flag5)
|
||||
{
|
||||
@@ -321,6 +265,20 @@ namespace CalamityMod.NPCs.NormalNPCs
|
||||
int num173 = NPC.spriteDirection;
|
||||
if ((NPC.velocity.X < 0f && num173 == -1) || (NPC.velocity.X > 0f && num173 == 1))
|
||||
{
|
||||
int a = "2";
|
||||
int b = "2";
|
||||
int c = "2";
|
||||
int d = "2";
|
||||
int f = "2";
|
||||
int g = "2";
|
||||
int h = "2";
|
||||
int k = "2";
|
||||
int l = "2";
|
||||
int m = "2";
|
||||
int n = "2";
|
||||
int o = "2";
|
||||
int p = "2";
|
||||
int q = "2";
|
||||
if (NPC.height >= 32 && Main.tile[num170, num171 - 2].HasUnactuatedTile && Main.tileSolid[(int)Main.tile[num170, num171 - 2].TileType])
|
||||
{
|
||||
if (Main.tile[num170, num171 - 3].HasUnactuatedTile && Main.tileSolid[(int)Main.tile[num170, num171 - 3].TileType])
|
||||
@@ -339,7 +297,7 @@ namespace CalamityMod.NPCs.NormalNPCs
|
||||
NPC.velocity.Y = -6f;
|
||||
NPC.netUpdate = true;
|
||||
}
|
||||
else if (NPC.position.Y + (float)NPC.height - (float)(num171 * 16) > 20f && Main.tile[num170, num171].HasUnactuatedTile && !Main.tile[num170, num171].topSlope() && Main.tileSolid[(int)Main.tile[num170, num171].TileType])
|
||||
else if (NPC.position.Y + (float)NPC.height - (float)(num171 * 16) > 20f && Main.tile[num170, num171].HasUnactuatedTile && !Main.tile[num170, num171].TopSlope && Main.tileSolid[(int)Main.tile[num170, num171].TileType])
|
||||
{
|
||||
NPC.velocity.Y = -5f;
|
||||
NPC.netUpdate = true;
|
||||
|
||||
@@ -204,31 +204,7 @@ namespace CalamityMod.NPCs.NormalNPCs
|
||||
position2.X += NPC.velocity.X;
|
||||
int num165 = (int)((position2.X + (float)(NPC.width / 2) + (float)((NPC.width / 2 + 1) * num164)) / 16f);
|
||||
int num166 = (int)((position2.Y + (float)NPC.height - 1f) / 16f);
|
||||
if (Main.tile[num165, num166] == null)
|
||||
{
|
||||
Main.tile[num165, num166] = new Tile();
|
||||
}
|
||||
if (Main.tile[num165, num166 - 1] == null)
|
||||
{
|
||||
Main.tile[num165, num166 - 1] = new Tile();
|
||||
}
|
||||
if (Main.tile[num165, num166 - 2] == null)
|
||||
{
|
||||
Main.tile[num165, num166 - 2] = new Tile();
|
||||
}
|
||||
if (Main.tile[num165, num166 - 3] == null)
|
||||
{
|
||||
Main.tile[num165, num166 - 3] = new Tile();
|
||||
}
|
||||
if (Main.tile[num165, num166 + 1] == null)
|
||||
{
|
||||
Main.tile[num165, num166 + 1] = new Tile();
|
||||
}
|
||||
if (Main.tile[num165 - num164, num166 - 3] == null)
|
||||
{
|
||||
Main.tile[num165 - num164, num166 - 3] = new Tile();
|
||||
}
|
||||
if ((float)(num165 * 16) < position2.X + (float)NPC.width && (float)(num165 * 16 + 16) > position2.X && ((Main.tile[num165, num166].HasUnactuatedTile && !Main.tile[num165, num166].topSlope() && !Main.tile[num165, num166 - 1].topSlope() && Main.tileSolid[(int)Main.tile[num165, num166].TileType] && !Main.tileSolidTop[(int)Main.tile[num165, num166].TileType]) || (Main.tile[num165, num166 - 1].IsHalfBlock && Main.tile[num165, num166 - 1].HasUnactuatedTile)) && (!Main.tile[num165, num166 - 1].HasUnactuatedTile || !Main.tileSolid[(int)Main.tile[num165, num166 - 1].TileType] || Main.tileSolidTop[(int)Main.tile[num165, num166 - 1].TileType] || (Main.tile[num165, num166 - 1].IsHalfBlock && (!Main.tile[num165, num166 - 4].HasUnactuatedTile || !Main.tileSolid[(int)Main.tile[num165, num166 - 4].TileType] || Main.tileSolidTop[(int)Main.tile[num165, num166 - 4].TileType]))) && (!Main.tile[num165, num166 - 2].HasUnactuatedTile || !Main.tileSolid[(int)Main.tile[num165, num166 - 2].TileType] || Main.tileSolidTop[(int)Main.tile[num165, num166 - 2].TileType]) && (!Main.tile[num165, num166 - 3].HasUnactuatedTile || !Main.tileSolid[(int)Main.tile[num165, num166 - 3].TileType] || Main.tileSolidTop[(int)Main.tile[num165, num166 - 3].TileType]) && (!Main.tile[num165 - num164, num166 - 3].HasUnactuatedTile || !Main.tileSolid[(int)Main.tile[num165 - num164, num166 - 3].TileType]))
|
||||
if ((float)(num165 * 16) < position2.X + (float)NPC.width && (float)(num165 * 16 + 16) > position2.X && ((Main.tile[num165, num166].HasUnactuatedTile && !Main.tile[num165, num166].TopSlope && !Main.tile[num165, num166 - 1].TopSlope && Main.tileSolid[(int)Main.tile[num165, num166].TileType] && !Main.tileSolidTop[(int)Main.tile[num165, num166].TileType]) || (Main.tile[num165, num166 - 1].IsHalfBlock && Main.tile[num165, num166 - 1].HasUnactuatedTile)) && (!Main.tile[num165, num166 - 1].HasUnactuatedTile || !Main.tileSolid[(int)Main.tile[num165, num166 - 1].TileType] || Main.tileSolidTop[(int)Main.tile[num165, num166 - 1].TileType] || (Main.tile[num165, num166 - 1].IsHalfBlock && (!Main.tile[num165, num166 - 4].HasUnactuatedTile || !Main.tileSolid[(int)Main.tile[num165, num166 - 4].TileType] || Main.tileSolidTop[(int)Main.tile[num165, num166 - 4].TileType]))) && (!Main.tile[num165, num166 - 2].HasUnactuatedTile || !Main.tileSolid[(int)Main.tile[num165, num166 - 2].TileType] || Main.tileSolidTop[(int)Main.tile[num165, num166 - 2].TileType]) && (!Main.tile[num165, num166 - 3].HasUnactuatedTile || !Main.tileSolid[(int)Main.tile[num165, num166 - 3].TileType] || Main.tileSolidTop[(int)Main.tile[num165, num166 - 3].TileType]) && (!Main.tile[num165 - num164, num166 - 3].HasUnactuatedTile || !Main.tileSolid[(int)Main.tile[num165 - num164, num166 - 3].TileType]))
|
||||
{
|
||||
float num167 = (float)(num166 * 16);
|
||||
if (Main.tile[num165, num166].IsHalfBlock)
|
||||
@@ -263,39 +239,6 @@ namespace CalamityMod.NPCs.NormalNPCs
|
||||
{
|
||||
int num170 = (int)((NPC.position.X + (float)(NPC.width / 2) + (float)(15 * NPC.direction)) / 16f);
|
||||
int num171 = (int)((NPC.position.Y + (float)NPC.height - 15f) / 16f);
|
||||
if (Main.tile[num170, num171] == null)
|
||||
{
|
||||
Main.tile[num170, num171] = new Tile();
|
||||
}
|
||||
if (Main.tile[num170, num171 - 1] == null)
|
||||
{
|
||||
Main.tile[num170, num171 - 1] = new Tile();
|
||||
}
|
||||
if (Main.tile[num170, num171 - 2] == null)
|
||||
{
|
||||
Main.tile[num170, num171 - 2] = new Tile();
|
||||
}
|
||||
if (Main.tile[num170, num171 - 3] == null)
|
||||
{
|
||||
Main.tile[num170, num171 - 3] = new Tile();
|
||||
}
|
||||
if (Main.tile[num170, num171 + 1] == null)
|
||||
{
|
||||
Main.tile[num170, num171 + 1] = new Tile();
|
||||
}
|
||||
if (Main.tile[num170 + NPC.direction, num171 - 1] == null)
|
||||
{
|
||||
Main.tile[num170 + NPC.direction, num171 - 1] = new Tile();
|
||||
}
|
||||
if (Main.tile[num170 + NPC.direction, num171 + 1] == null)
|
||||
{
|
||||
Main.tile[num170 + NPC.direction, num171 + 1] = new Tile();
|
||||
}
|
||||
if (Main.tile[num170 - NPC.direction, num171 + 1] == null)
|
||||
{
|
||||
Main.tile[num170 - NPC.direction, num171 + 1] = new Tile();
|
||||
}
|
||||
Main.tile[num170, num171 + 1].IsHalfBlock;
|
||||
if ((Main.tile[num170, num171 - 1].HasUnactuatedTile && (Main.tile[num170, num171 - 1].TileType == 10 || Main.tile[num170, num171 - 1].TileType == 388)) & flag5)
|
||||
{
|
||||
NPC.ai[2] += 1f;
|
||||
@@ -371,7 +314,7 @@ namespace CalamityMod.NPCs.NormalNPCs
|
||||
NPC.velocity.Y = -6f;
|
||||
NPC.netUpdate = true;
|
||||
}
|
||||
else if (NPC.position.Y + (float)NPC.height - (float)(num171 * 16) > 20f && Main.tile[num170, num171].HasUnactuatedTile && !Main.tile[num170, num171].topSlope() && Main.tileSolid[(int)Main.tile[num170, num171].TileType])
|
||||
else if (NPC.position.Y + (float)NPC.height - (float)(num171 * 16) > 20f && Main.tile[num170, num171].HasUnactuatedTile && !Main.tile[num170, num171].TopSlope && Main.tileSolid[(int)Main.tile[num170, num171].TileType])
|
||||
{
|
||||
NPC.velocity.Y = -5f;
|
||||
NPC.netUpdate = true;
|
||||
|
||||
@@ -11,6 +11,7 @@ using Terraria.DataStructures;
|
||||
using Terraria.ModLoader;
|
||||
using Terraria.ObjectData;
|
||||
using Terraria.Audio;
|
||||
using Terraria.ID;
|
||||
|
||||
namespace CalamityMod.Tiles.Astral
|
||||
{
|
||||
@@ -75,7 +76,7 @@ namespace CalamityMod.Tiles.Astral
|
||||
ritualSpawnPosition += new Vector2(0f, -24f);
|
||||
|
||||
SoundEngine.PlaySound(SoundLoader.GetLegacySoundSlot(Mod, "Sounds/Custom/AstralBeaconUse"), ritualSpawnPosition);
|
||||
Projectile.NewProjectile(ritualSpawnPosition, Vector2.Zero, ModContent.ProjectileType<DeusRitualDrama>(), 0, 0f, Main.myPlayer, 0f, usingStarcore.ToInt());
|
||||
Projectile.NewProjectile(new EntitySource_WorldEvent(), ritualSpawnPosition, Vector2.Zero, ModContent.ProjectileType<DeusRitualDrama>(), 0, 0f, Main.myPlayer, 0f, usingStarcore.ToInt());
|
||||
|
||||
if (!usingStarcore)
|
||||
Main.LocalPlayer.ConsumeItem(ModContent.ItemType<TitanHeart>(), true);
|
||||
|
||||
@@ -26,6 +26,15 @@ namespace CalamityMod.Tiles
|
||||
public class CalamityGlobalTile : GlobalTile
|
||||
{
|
||||
public static IList<ModWaterStyle> WaterStyles => (IList<ModWaterStyle>)typeof(WaterStylesLoader).GetField("waterStyles", BindingFlags.Static | BindingFlags.NonPublic).GetValue(null);
|
||||
internal static readonly MethodInfo ActiveFountainColorMethod = typeof(SceneMetrics).GetMethod("set_ActiveFountainColor", BindingFlags.NonPublic | BindingFlags.Instance);
|
||||
|
||||
public static void SetActiveFountainColor(int fountainID)
|
||||
{
|
||||
ActiveFountainColorMethod.Invoke(Main.SceneMetrics, new object[]
|
||||
{
|
||||
fountainID
|
||||
});
|
||||
}
|
||||
|
||||
public static ushort[] PlantTypes = new ushort[]
|
||||
{
|
||||
|
||||
@@ -73,7 +73,7 @@ namespace CalamityMod.Tiles.DraedonStructures
|
||||
TEChargingStation charger = CalamityUtils.FindTileEntity<TEChargingStation>(i, j, Width, Height, SheetSquare);
|
||||
int numCells = charger?.CellStack ?? 0;
|
||||
if (numCells > 0)
|
||||
Item.NewItem(dropPos, ModContent.ItemType<PowerCell>(), numCells);
|
||||
Item.NewItem(new EntitySource_TileBreak(i, j), dropPos, ModContent.ItemType<PowerCell>(), numCells);
|
||||
|
||||
// Netcode check is required because otherwise this will spawn two items.
|
||||
// Force cloning items into the Main item array is weird.
|
||||
@@ -122,7 +122,7 @@ namespace CalamityMod.Tiles.DraedonStructures
|
||||
// Grab the tile entity because its glowmask depends on whether it's currently charging.
|
||||
TEChargingStation charger = CalamityUtils.FindTileEntity<TEChargingStation>(i, j, Width, Height, SheetSquare);
|
||||
|
||||
Texture2D glowmask = ModContent.Request<Texture2D>("CalamityMod/Tiles/DraedonStructures/ChargingStation_Glow");
|
||||
Texture2D glowmask = ModContent.Request<Texture2D>("CalamityMod/Tiles/DraedonStructures/ChargingStation_Glow").Value;
|
||||
Vector2 screenOffset = Main.drawToScreen ? Vector2.Zero : new Vector2(Main.offScreenRange);
|
||||
Vector2 drawOffset = new Vector2(i * 16 - Main.screenPosition.X, j * 16 - Main.screenPosition.Y) + screenOffset;
|
||||
Color drawColor = charger?.LightColor ?? Color.Red;
|
||||
|
||||
@@ -40,7 +40,7 @@ namespace CalamityMod.Tiles.DraedonStructures
|
||||
name.SetDefault("Lab Turret");
|
||||
AddMapEntry(new Color(67, 72, 81), name);
|
||||
SoundType = SoundID.Item;
|
||||
soundStyle = 14;
|
||||
SoundStyle = 14;
|
||||
|
||||
// Has 500% durability.
|
||||
MineResist = 5f;
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
using CalamityMod.CalPlayer;
|
||||
using CalamityMod.CalPlayer;
|
||||
using CalamityMod.Items.Placeables.DraedonStructures;
|
||||
using CalamityMod.TileEntities;
|
||||
using Microsoft.Xna.Framework;
|
||||
@@ -85,7 +85,7 @@ namespace CalamityMod.Tiles.DraedonStructures
|
||||
if (mp.CurrentlyViewedHologramID != -1)
|
||||
{
|
||||
SoundEngine.PlaySound(SoundID.Chat, -1, -1, 1, 1f, 0f);
|
||||
player.talkNPC = -1;
|
||||
player.SetTalkNPC(-1);
|
||||
}
|
||||
}
|
||||
else
|
||||
@@ -127,7 +127,7 @@ namespace CalamityMod.Tiles.DraedonStructures
|
||||
xPos += frame / 8 * 96;
|
||||
yPos += frame % 8 * 112;
|
||||
|
||||
Texture2D tileTexture = ModContent.Request<Texture2D>("CalamityMod/Tiles/DraedonStructures/LabHologramProjector");
|
||||
Texture2D tileTexture = ModContent.Request<Texture2D>("CalamityMod/Tiles/DraedonStructures/LabHologramProjector").Value;
|
||||
Vector2 offset = Main.drawToScreen ? Vector2.Zero : new Vector2(Main.offScreenRange);
|
||||
Vector2 drawOffset = new Vector2(i * 16 - Main.screenPosition.X, j * 16 - Main.screenPosition.Y) + offset;
|
||||
Color drawColor = Lighting.GetColor(i, j);
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
using CalamityMod.Items.Placeables.DraedonStructures;
|
||||
using CalamityMod.Items.Placeables.DraedonStructures;
|
||||
using Microsoft.Xna.Framework;
|
||||
using Microsoft.Xna.Framework.Graphics;
|
||||
using Terraria;
|
||||
@@ -60,7 +60,7 @@ namespace CalamityMod.Tiles.DraedonStructures
|
||||
{
|
||||
int xFrameOffset = Main.tile[i, j].TileFrameX;
|
||||
int yFrameOffset = Main.tile[i, j].TileFrameY;
|
||||
Texture2D glowmask = ModContent.Request<Texture2D>("CalamityMod/Tiles/DraedonStructures/LaboratoryConsoleGlow");
|
||||
Texture2D glowmask = ModContent.Request<Texture2D>("CalamityMod/Tiles/DraedonStructures/LaboratoryConsoleGlow").Value;
|
||||
Vector2 drawOffest = Main.drawToScreen ? Vector2.Zero : new Vector2(Main.offScreenRange);
|
||||
Vector2 drawPosition = new Vector2(i * 16 - Main.screenPosition.X, j * 16 - Main.screenPosition.Y) + drawOffest;
|
||||
Color drawColour = Color.White;
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
using CalamityMod.Items.Placeables.DraedonStructures;
|
||||
using CalamityMod.Items.Placeables.DraedonStructures;
|
||||
using Microsoft.Xna.Framework;
|
||||
using Microsoft.Xna.Framework.Graphics;
|
||||
using Terraria;
|
||||
@@ -63,7 +63,7 @@ namespace CalamityMod.Tiles.DraedonStructures
|
||||
{
|
||||
int xFrameOffset = Main.tile[i, j].TileFrameX;
|
||||
int yFrameOffset = Main.tile[i, j].TileFrameY;
|
||||
Texture2D glowmask = ModContent.Request<Texture2D>("CalamityMod/Tiles/DraedonStructures/LaboratoryDisplayGlow");
|
||||
Texture2D glowmask = ModContent.Request<Texture2D>("CalamityMod/Tiles/DraedonStructures/LaboratoryDisplayGlow").Value;
|
||||
Vector2 drawOffest = Main.drawToScreen ? Vector2.Zero : new Vector2(Main.offScreenRange);
|
||||
Vector2 drawPosition = new Vector2(i * 16 - Main.screenPosition.X, j * 16 - Main.screenPosition.Y) + drawOffest;
|
||||
Color drawColour = Color.White;
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
using CalamityMod.Items.Placeables.DraedonStructures;
|
||||
using CalamityMod.Items.Placeables.DraedonStructures;
|
||||
using Microsoft.Xna.Framework;
|
||||
using Microsoft.Xna.Framework.Graphics;
|
||||
using Terraria;
|
||||
@@ -42,7 +42,7 @@ namespace CalamityMod.Tiles.DraedonStructures
|
||||
{
|
||||
int xFrameOffset = Main.tile[i, j].TileFrameX;
|
||||
int yFrameOffset = Main.tile[i, j].TileFrameY;
|
||||
Texture2D glowmask = ModContent.Request<Texture2D>("CalamityMod/Tiles/DraedonStructures/LaboratoryScreenGlow");
|
||||
Texture2D glowmask = ModContent.Request<Texture2D>("CalamityMod/Tiles/DraedonStructures/LaboratoryScreenGlow").Value;
|
||||
Vector2 drawOffest = Main.drawToScreen ? Vector2.Zero : new Vector2(Main.offScreenRange);
|
||||
Vector2 drawPosition = new Vector2(i * 16 - Main.screenPosition.X, j * 16 - Main.screenPosition.Y) + drawOffest;
|
||||
Color drawColour = Color.White;
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
using CalamityMod.Items.Placeables.DraedonStructures;
|
||||
using CalamityMod.Items.Placeables.DraedonStructures;
|
||||
using Microsoft.Xna.Framework;
|
||||
using Microsoft.Xna.Framework.Graphics;
|
||||
using Terraria;
|
||||
@@ -60,7 +60,7 @@ namespace CalamityMod.Tiles.DraedonStructures
|
||||
{
|
||||
int xFrameOffset = Main.tile[i, j].TileFrameX;
|
||||
int yFrameOffset = Main.tile[i, j].TileFrameY;
|
||||
Texture2D glowmask = ModContent.Request<Texture2D>("CalamityMod/Tiles/DraedonStructures/LaboratoryServerGlow");
|
||||
Texture2D glowmask = ModContent.Request<Texture2D>("CalamityMod/Tiles/DraedonStructures/LaboratoryServerGlow").Value;
|
||||
Vector2 drawOffest = Main.drawToScreen ? Vector2.Zero : new Vector2(Main.offScreenRange);
|
||||
Vector2 drawPosition = new Vector2(i * 16 - Main.screenPosition.X, j * 16 - Main.screenPosition.Y) + drawOffest;
|
||||
Color drawColour = Color.White;
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
using CalamityMod.Items.Placeables.DraedonStructures;
|
||||
using CalamityMod.Items.Placeables.DraedonStructures;
|
||||
using Microsoft.Xna.Framework;
|
||||
using Microsoft.Xna.Framework.Graphics;
|
||||
using Terraria;
|
||||
@@ -63,7 +63,7 @@ namespace CalamityMod.Tiles.DraedonStructures
|
||||
{
|
||||
int xFrameOffset = Main.tile[i, j].TileFrameX;
|
||||
int yFrameOffset = Main.tile[i, j].TileFrameY;
|
||||
Texture2D glowmask = ModContent.Request<Texture2D>("CalamityMod/Tiles/DraedonStructures/LaboratoryTerminalGlow");
|
||||
Texture2D glowmask = ModContent.Request<Texture2D>("CalamityMod/Tiles/DraedonStructures/LaboratoryTerminalGlow").Value;
|
||||
Vector2 drawOffest = Main.drawToScreen ? Vector2.Zero : new Vector2(Main.offScreenRange);
|
||||
Vector2 drawPosition = new Vector2(i * 16 - Main.screenPosition.X, j * 16 - Main.screenPosition.Y) + drawOffest;
|
||||
Color drawColour = Color.White;
|
||||
|
||||
@@ -33,7 +33,7 @@ namespace CalamityMod.Tiles.Furniture.CraftingStations
|
||||
{
|
||||
int xPos = Main.tile[i, j].TileFrameX;
|
||||
int yPos = Main.tile[i, j].TileFrameY;
|
||||
Texture2D glowmask = ModContent.Request<Texture2D>("CalamityMod/Tiles/Furniture/CraftingStations/MonolithCraftingGlow");
|
||||
Texture2D glowmask = ModContent.Request<Texture2D>("CalamityMod/Tiles/Furniture/CraftingStations/MonolithCraftingGlow").Value;
|
||||
Color drawColour = GetDrawColour(i, j, new Color(100, 100, 100, 100));
|
||||
Vector2 zero = Main.drawToScreen ? Vector2.Zero : new Vector2(Main.offScreenRange);
|
||||
Vector2 drawOffset = new Vector2(i * 16 - Main.screenPosition.X, j * 16 - Main.screenPosition.Y) + zero;
|
||||
|
||||
@@ -12,7 +12,6 @@ namespace CalamityMod.Tiles.Furniture.Fountains
|
||||
{
|
||||
public class AbyssFountainTile : ModTile
|
||||
{
|
||||
internal static readonly MethodInfo ActiveFountainColorMethod = typeof(SceneMetrics).GetMethod("set_ActiveFountainColor", BindingFlags.NonPublic | BindingFlags.Instance);
|
||||
public override void SetStaticDefaults()
|
||||
{
|
||||
this.SetUpFountain();
|
||||
@@ -25,12 +24,7 @@ namespace CalamityMod.Tiles.Furniture.Fountains
|
||||
if (Main.tile[i, j].TileFrameX < 36)
|
||||
{
|
||||
if (CalamityGlobalTile.WaterStyles.Any((style) => style.Name == "AbyssWater"))
|
||||
{
|
||||
ActiveFountainColorMethod.Invoke(Main.SceneMetrics, new object[]
|
||||
{
|
||||
CalamityGlobalTile.WaterStyles.FirstOrDefault((style) => style.Name == "AbyssWater").Slot
|
||||
});
|
||||
}
|
||||
CalamityGlobalTile.SetActiveFountainColor(CalamityGlobalTile.WaterStyles.FirstOrDefault((style) => style.Name == "AbyssWater").Slot);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -24,9 +24,7 @@ namespace CalamityMod.Tiles.Furniture.Fountains
|
||||
if (Main.tile[i, j].TileFrameX < 36)
|
||||
{
|
||||
if (CalamityGlobalTile.WaterStyles.Any((style) => style.Name == "AstralWater"))
|
||||
{
|
||||
Main.fountainColor = CalamityGlobalTile.WaterStyles.FirstOrDefault((style) => style.Name == "AstralWater").Type;
|
||||
}
|
||||
CalamityGlobalTile.SetActiveFountainColor(CalamityGlobalTile.WaterStyles.FirstOrDefault((style) => style.Name == "AstralWater").Slot);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -23,9 +23,7 @@ namespace CalamityMod.Tiles.Furniture.Fountains
|
||||
if (Main.tile[i, j].TileFrameX < 36)
|
||||
{
|
||||
if (CalamityGlobalTile.WaterStyles.Any((style) => style.Name == "SulphuricWater"))
|
||||
{
|
||||
Main.fountainColor = CalamityGlobalTile.WaterStyles.FirstOrDefault((style) => style.Name == "SulphuricWater").Type;
|
||||
}
|
||||
CalamityGlobalTile.SetActiveFountainColor(CalamityGlobalTile.WaterStyles.FirstOrDefault((style) => style.Name == "SulphuricWater").Slot);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -23,9 +23,7 @@ namespace CalamityMod.Tiles.Furniture.Fountains
|
||||
if (Main.tile[i, j].TileFrameX < 36)
|
||||
{
|
||||
if (CalamityGlobalTile.WaterStyles.Any((style) => style.Name == "SunkenSeaWater"))
|
||||
{
|
||||
Main.fountainColor = CalamityGlobalTile.WaterStyles.FirstOrDefault((style) => style.Name == "SunkenSeaWater").Type;
|
||||
}
|
||||
CalamityGlobalTile.SetActiveFountainColor(CalamityGlobalTile.WaterStyles.FirstOrDefault((style) => style.Name == "SunkenSeaWater").Slot);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -79,7 +79,7 @@ namespace CalamityMod.Tiles.Furniture
|
||||
ritualSpawnPosition += new Vector2(-10f, -24f);
|
||||
|
||||
SoundEngine.PlaySound(SoundID.DD2_EtherianPortalOpen, ritualSpawnPosition);
|
||||
Projectile.NewProjectile(ritualSpawnPosition, Vector2.Zero, ModContent.ProjectileType<SCalRitualDrama>(), 0, 0f, Main.myPlayer);
|
||||
Projectile.NewProjectile(new EntitySource_WorldEvent(), ritualSpawnPosition, Vector2.Zero, ModContent.ProjectileType<SCalRitualDrama>(), 0, 0f, Main.myPlayer);
|
||||
|
||||
if (!usingSpecialItem)
|
||||
Main.LocalPlayer.ConsumeItem(ModContent.ItemType<CalamityDust>(), true);
|
||||
|
||||
@@ -1,6 +1,7 @@
|
||||
using Microsoft.Xna.Framework;
|
||||
using Microsoft.Xna.Framework;
|
||||
using Microsoft.Xna.Framework.Graphics;
|
||||
using Terraria;
|
||||
using Terraria.DataStructures;
|
||||
using Terraria.ID;
|
||||
using Terraria.ModLoader;
|
||||
|
||||
@@ -17,7 +18,7 @@ namespace CalamityMod.Tiles.FurnitureAbyss
|
||||
TileID.Sets.DisableSmartCursor[Type] = true;
|
||||
ItemDrop = ModContent.ItemType<Items.Placeables.FurnitureAbyss.AbyssTorch>();
|
||||
AdjTiles = new int[] { TileID.Torches };
|
||||
torch = true;
|
||||
TileID.Sets.Torch[Type] = true;
|
||||
TileID.Sets.FramesOnKillWall[Type] = true;
|
||||
}
|
||||
|
||||
@@ -51,7 +52,7 @@ namespace CalamityMod.Tiles.FurnitureAbyss
|
||||
}
|
||||
}
|
||||
|
||||
public override void SetDrawPositions(int i, int j, ref int width, ref int offsetY, ref int height)
|
||||
public override void SetDrawPositions(int i, int j, ref int width, ref int offsetY, ref int height, ref short tileFrameX, ref short tileFrameY)
|
||||
{
|
||||
offsetY = 0;
|
||||
if (WorldGen.SolidTile(i, j - 1))
|
||||
@@ -66,9 +67,10 @@ namespace CalamityMod.Tiles.FurnitureAbyss
|
||||
|
||||
public override void PostDraw(int i, int j, SpriteBatch spriteBatch)
|
||||
{
|
||||
CalamityUtils.DrawFlameEffect(ModContent.Request<Texture2D>("CalamityMod/Tiles/FurnitureAbyss/AbyssTorchFlame"), i, j, 2);
|
||||
CalamityUtils.DrawFlameEffect(ModContent.Request<Texture2D>("CalamityMod/Tiles/FurnitureAbyss/AbyssTorchFlame").Value, i, j, 2);
|
||||
}
|
||||
public override void DrawEffects(int i, int j, SpriteBatch spriteBatch, ref Color drawColor, ref int nextSpecialDrawIndex)
|
||||
|
||||
public override void DrawEffects(int i, int j, SpriteBatch spriteBatch, ref TileDrawInfo drawData)
|
||||
{
|
||||
if (Main.tile[i, j].TileFrameX < 66)
|
||||
CalamityUtils.DrawFlameSparks(187, 5, i, j);
|
||||
|
||||
@@ -73,10 +73,10 @@ namespace CalamityMod.Tiles.FurnitureAncient
|
||||
|
||||
public override void PostDraw(int i, int j, SpriteBatch spriteBatch)
|
||||
{
|
||||
CalamityUtils.DrawStaticFlameEffect(ModContent.Request<Texture2D>("CalamityMod/Tiles/FurnitureAncient/AncientBasinFlame"), i, j, offsetY: animationFrame * AnimationFrameHeight);
|
||||
CalamityUtils.DrawStaticFlameEffect(ModContent.Request<Texture2D>("CalamityMod/Tiles/FurnitureAncient/AncientBasinFlame").Value, i, j, offsetY: animationFrame * AnimationFrameHeight);
|
||||
}
|
||||
|
||||
public override void DrawEffects(int i, int j, SpriteBatch spriteBatch, ref Color drawColor, ref int nextSpecialDrawIndex)
|
||||
public override void DrawEffects(int i, int j, SpriteBatch spriteBatch, ref TileDrawInfo drawData)
|
||||
{
|
||||
Tile tile = Main.tile[i, j];
|
||||
if (tile.TileFrameY == 18 && tile.TileFrameX < 54)
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
using Microsoft.Xna.Framework;
|
||||
using Microsoft.Xna.Framework;
|
||||
using Microsoft.Xna.Framework.Graphics;
|
||||
using Terraria;
|
||||
using Terraria.DataStructures;
|
||||
@@ -35,7 +35,7 @@ namespace CalamityMod.Tiles.FurnitureAncient
|
||||
|
||||
public override void PostDraw(int i, int j, SpriteBatch spriteBatch)
|
||||
{
|
||||
CalamityUtils.DrawFlameEffect(ModContent.Request<Texture2D>("CalamityMod/Tiles/FurnitureAncient/AncientChandelierFlame"), i, j);
|
||||
CalamityUtils.DrawFlameEffect(ModContent.Request<Texture2D>("CalamityMod/Tiles/FurnitureAncient/AncientChandelierFlame").Value, i, j);
|
||||
}
|
||||
|
||||
public override void HitWire(int i, int j)
|
||||
@@ -43,7 +43,7 @@ namespace CalamityMod.Tiles.FurnitureAncient
|
||||
CalamityUtils.LightHitWire(Type, i, j, 3, 3);
|
||||
}
|
||||
|
||||
public override void DrawEffects(int i, int j, SpriteBatch spriteBatch, ref Color drawColor, ref int nextSpecialDrawIndex)
|
||||
public override void DrawEffects(int i, int j, SpriteBatch spriteBatch, ref TileDrawInfo drawData)
|
||||
{
|
||||
Tile tile = Main.tile[i, j];
|
||||
if (tile.TileFrameX < 54 && tile.TileFrameY == 36)
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
using Microsoft.Xna.Framework;
|
||||
using Microsoft.Xna.Framework;
|
||||
using Microsoft.Xna.Framework.Graphics;
|
||||
using Terraria;
|
||||
using Terraria.DataStructures;
|
||||
@@ -50,10 +50,10 @@ namespace CalamityMod.Tiles.FurnitureAncient
|
||||
|
||||
public override void PostDraw(int i, int j, SpriteBatch spriteBatch)
|
||||
{
|
||||
CalamityUtils.DrawFlameEffect(ModContent.Request<Texture2D>("CalamityMod/Tiles/FurnitureAncient/AncientLampFlame"), i, j);
|
||||
CalamityUtils.DrawFlameEffect(ModContent.Request<Texture2D>("CalamityMod/Tiles/FurnitureAncient/AncientLampFlame").Value, i, j);
|
||||
}
|
||||
|
||||
public override void DrawEffects(int i, int j, SpriteBatch spriteBatch, ref Color drawColor, ref int nextSpecialDrawIndex)
|
||||
public override void DrawEffects(int i, int j, SpriteBatch spriteBatch, ref TileDrawInfo drawData)
|
||||
{
|
||||
Tile tile = Main.tile[i, j];
|
||||
if (tile.TileFrameY == 18 && tile.TileFrameX < 18)
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
using Microsoft.Xna.Framework;
|
||||
using Microsoft.Xna.Framework;
|
||||
using Microsoft.Xna.Framework.Graphics;
|
||||
using Terraria;
|
||||
using Terraria.DataStructures;
|
||||
@@ -54,7 +54,7 @@ namespace CalamityMod.Tiles.FurnitureAncient
|
||||
|
||||
public override void PostDraw(int i, int j, SpriteBatch spriteBatch)
|
||||
{
|
||||
CalamityUtils.DrawFlameEffect(ModContent.Request<Texture2D>("CalamityMod/Tiles/FurnitureAncient/AncientLanternFlame"), i, j);
|
||||
CalamityUtils.DrawFlameEffect(ModContent.Request<Texture2D>("CalamityMod/Tiles/FurnitureAncient/AncientLanternFlame").Value, i, j);
|
||||
}
|
||||
|
||||
public override void HitWire(int i, int j)
|
||||
@@ -62,7 +62,7 @@ namespace CalamityMod.Tiles.FurnitureAncient
|
||||
CalamityUtils.LightHitWire(Type, i, j, 1, 2);
|
||||
}
|
||||
|
||||
public override void DrawEffects(int i, int j, SpriteBatch spriteBatch, ref Color drawColor, ref int nextSpecialDrawIndex)
|
||||
public override void DrawEffects(int i, int j, SpriteBatch spriteBatch, ref TileDrawInfo drawData)
|
||||
{
|
||||
Tile tile = Main.tile[i, j];
|
||||
if (tile.TileFrameY == 18 && tile.TileFrameX < 18)
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
using Microsoft.Xna.Framework;
|
||||
using Microsoft.Xna.Framework;
|
||||
using Microsoft.Xna.Framework.Graphics;
|
||||
using Terraria;
|
||||
using Terraria.DataStructures;
|
||||
@@ -59,10 +59,10 @@ namespace CalamityMod.Tiles.FurnitureAshen
|
||||
|
||||
public override void PostDraw(int i, int j, SpriteBatch spriteBatch)
|
||||
{
|
||||
CalamityUtils.DrawFlameEffect(ModContent.Request<Texture2D>("CalamityMod/Tiles/FurnitureAshen/AshenLampFlame"), i, j);
|
||||
CalamityUtils.DrawFlameEffect(ModContent.Request<Texture2D>("CalamityMod/Tiles/FurnitureAshen/AshenLampFlame").Value, i, j);
|
||||
}
|
||||
|
||||
public override void DrawEffects(int i, int j, SpriteBatch spriteBatch, ref Color drawColor, ref int nextSpecialDrawIndex)
|
||||
public override void DrawEffects(int i, int j, SpriteBatch spriteBatch, ref TileDrawInfo drawData)
|
||||
{
|
||||
Tile tile = Main.tile[i, j];
|
||||
if (tile.TileFrameY == 0 && tile.TileFrameX < 18)
|
||||
|
||||
@@ -59,10 +59,10 @@ namespace CalamityMod.Tiles.FurnitureAshen
|
||||
|
||||
public override void PostDraw(int i, int j, SpriteBatch spriteBatch)
|
||||
{
|
||||
CalamityUtils.DrawFlameEffect(ModContent.Request<Texture2D>("CalamityMod/Tiles/FurnitureAshen/AshenLanternFlame"), i, j);
|
||||
CalamityUtils.DrawFlameEffect(ModContent.Request<Texture2D>("CalamityMod/Tiles/FurnitureAshen/AshenLanternFlame").Value, i, j);
|
||||
}
|
||||
|
||||
public override void DrawEffects(int i, int j, SpriteBatch spriteBatch, ref Color drawColor, ref int nextSpecialDrawIndex)
|
||||
public override void DrawEffects(int i, int j, SpriteBatch spriteBatch, ref TileDrawInfo drawData)
|
||||
{
|
||||
Tile tile = Main.tile[i, j];
|
||||
if (tile.TileFrameY == 18 && tile.TileFrameX < 18)
|
||||
|
||||
@@ -130,7 +130,7 @@ namespace CalamityMod.Tiles.FurnitureAshen
|
||||
frameY *= 90;
|
||||
Vector2 zero = Main.drawToScreen ? Vector2.Zero : new Vector2(Main.offScreenRange);
|
||||
Vector2 drawOffset = new Vector2(i * 16 - Main.screenPosition.X, j * 16 - Main.screenPosition.Y) + zero;
|
||||
Texture2D eyeSheet = ModContent.Request<Texture2D>("CalamityMod/Tiles/FurnitureAshen/AshenMonolith_Eye");
|
||||
Texture2D eyeSheet = ModContent.Request<Texture2D>("CalamityMod/Tiles/FurnitureAshen/AshenMonolith_Eye").Value;
|
||||
spriteBatch.Draw
|
||||
(
|
||||
eyeSheet,
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
|
||||
|
||||
using Microsoft.Xna.Framework;
|
||||
using Microsoft.Xna.Framework.Graphics;
|
||||
using Terraria;
|
||||
@@ -37,7 +37,7 @@ namespace CalamityMod.Tiles.FurnitureAshen
|
||||
{
|
||||
int xPos = Main.tile[i, j].TileFrameX;
|
||||
int yPos = Main.tile[i, j].TileFrameY;
|
||||
Texture2D glowmask = ModContent.Request<Texture2D>("CalamityMod/Tiles/FurnitureAshen/SmoothBrimstoneSlagGlow");
|
||||
Texture2D glowmask = ModContent.Request<Texture2D>("CalamityMod/Tiles/FurnitureAshen/SmoothBrimstoneSlagGlow").Value;
|
||||
Vector2 zero = Main.drawToScreen ? Vector2.Zero : new Vector2(Main.offScreenRange);
|
||||
Vector2 drawOffset = new Vector2(i * 16 - Main.screenPosition.X, j * 16 - Main.screenPosition.Y) + zero;
|
||||
Color drawColour = GetDrawColour(i, j, new Color(25, 25, 25, 25));
|
||||
|
||||
@@ -77,10 +77,10 @@ namespace CalamityMod.Tiles.FurnitureCosmilite
|
||||
|
||||
public override void PostDraw(int i, int j, SpriteBatch spriteBatch)
|
||||
{
|
||||
CalamityUtils.DrawStaticFlameEffect(ModContent.Request<Texture2D>("CalamityMod/Tiles/FurnitureCosmilite/CosmiliteBasinFlame"), i, j, offsetY: animationFrame * AnimationFrameHeight);
|
||||
CalamityUtils.DrawStaticFlameEffect(ModContent.Request<Texture2D>("CalamityMod/Tiles/FurnitureCosmilite/CosmiliteBasinFlame").Value, i, j, offsetY: animationFrame * AnimationFrameHeight);
|
||||
}
|
||||
|
||||
public override void DrawEffects(int i, int j, SpriteBatch spriteBatch, ref Color drawColor, ref int nextSpecialDrawIndex)
|
||||
public override void DrawEffects(int i, int j, SpriteBatch spriteBatch, ref TileDrawInfo drawData)
|
||||
{
|
||||
Tile tile = Main.tile[i, j];
|
||||
if (tile.TileFrameY == 18 && tile.TileFrameX < 54)
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
|
||||
|
||||
using Microsoft.Xna.Framework;
|
||||
using Microsoft.Xna.Framework.Graphics;
|
||||
using Terraria;
|
||||
@@ -35,7 +35,7 @@ namespace CalamityMod.Tiles.FurnitureCosmilite
|
||||
{
|
||||
int xPos = Main.tile[i, j].TileFrameX;
|
||||
int yPos = Main.tile[i, j].TileFrameY;
|
||||
Texture2D glowmask = ModContent.Request<Texture2D>("CalamityMod/Tiles/FurnitureCosmilite/CosmiliteBrickGlow");
|
||||
Texture2D glowmask = ModContent.Request<Texture2D>("CalamityMod/Tiles/FurnitureCosmilite/CosmiliteBrickGlow").Value;
|
||||
Vector2 zero = Main.drawToScreen ? Vector2.Zero : new Vector2(Main.offScreenRange);
|
||||
Vector2 drawOffset = new Vector2(i * 16 - Main.screenPosition.X, j * 16 - Main.screenPosition.Y) + zero;
|
||||
Color drawColour = GetDrawColour(i, j, Color.White);
|
||||
|
||||
@@ -37,12 +37,12 @@ namespace CalamityMod.Tiles.FurnitureCosmilite
|
||||
|
||||
public override void MouseOverFar(int i, int j)
|
||||
{
|
||||
CalamityUtils.DresserMouseFar<Items.Placeables.FurnitureCosmilite.CosmiliteDresser>(chest);
|
||||
CalamityUtils.DresserMouseFar<Items.Placeables.FurnitureCosmilite.CosmiliteDresser>(ContainerName.GetDefault());
|
||||
}
|
||||
|
||||
public override void MouseOver(int i, int j)
|
||||
{
|
||||
CalamityUtils.DresserMouseOver<Items.Placeables.FurnitureCosmilite.CosmiliteDresser>(chest);
|
||||
CalamityUtils.DresserMouseOver<Items.Placeables.FurnitureCosmilite.CosmiliteDresser>(ContainerName.GetDefault());
|
||||
}
|
||||
|
||||
public override void NumDust(int i, int j, bool fail, ref int num)
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
using CalamityMod.Dusts.Furniture;
|
||||
using CalamityMod.Dusts.Furniture;
|
||||
using Microsoft.Xna.Framework;
|
||||
using Microsoft.Xna.Framework.Graphics;
|
||||
using Terraria;
|
||||
@@ -35,6 +35,8 @@ namespace CalamityMod.Tiles.FurnitureOccult
|
||||
return false;
|
||||
}
|
||||
|
||||
/*
|
||||
* TODO -- Find some way to make this work again with the new parameters.
|
||||
public override void DrawEffects(int i, int j, SpriteBatch spriteBatch, ref Color drawColor, ref int nextSpecialDrawIndex)
|
||||
{
|
||||
if ((Main.tile[i - 1, j - 1].TileType != Type || Main.tile[i, j - 1].TileType != Type || Main.tile[i + 1, j - 1].TileType != Type ||
|
||||
@@ -58,6 +60,7 @@ namespace CalamityMod.Tiles.FurnitureOccult
|
||||
DrawExtraWallEnds(i, j, cloth, drawOffset, drawColour);
|
||||
DrawExtraDrapes(i, j, cloth, drawOffset, drawColour);
|
||||
}
|
||||
*/
|
||||
|
||||
#region 'Extra Drapes' Drawing
|
||||
private void DrawExtraTop(int i, int j, Texture2D extras, Vector2 drawOffset, Color drawColour)
|
||||
@@ -229,7 +232,7 @@ namespace CalamityMod.Tiles.FurnitureOccult
|
||||
|
||||
private int GetExtraVariant(int i, int j)
|
||||
{
|
||||
return Main.tile[i, j].frameNumber() * extraFrameWidth;
|
||||
return Main.tile[i, j].TileFrameNumber * extraFrameWidth;
|
||||
}
|
||||
|
||||
/*
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
|
||||
|
||||
using Microsoft.Xna.Framework;
|
||||
using Microsoft.Xna.Framework.Graphics;
|
||||
using Terraria;
|
||||
@@ -39,7 +39,7 @@ namespace CalamityMod.Tiles.FurniturePlaguedPlate
|
||||
{
|
||||
int xPos = Main.tile[i, j].TileFrameX;
|
||||
int yPos = Main.tile[i, j].TileFrameY;
|
||||
Texture2D glowmask = ModContent.Request<Texture2D>("CalamityMod/Tiles/FurniturePlaguedPlate/PlaguedPlateGlow");
|
||||
Texture2D glowmask = ModContent.Request<Texture2D>("CalamityMod/Tiles/FurniturePlaguedPlate/PlaguedPlateGlow").Value;
|
||||
Vector2 zero = Main.drawToScreen ? Vector2.Zero : new Vector2(Main.offScreenRange);
|
||||
Vector2 drawOffset = new Vector2(i * 16 - Main.screenPosition.X, j * 16 - Main.screenPosition.Y) + zero;
|
||||
Color drawColour = GetDrawColour(i, j, new Color(128, 128, 128, 128));
|
||||
|
||||
@@ -60,10 +60,10 @@ namespace CalamityMod.Tiles.FurnitureProfaned
|
||||
|
||||
public override void PostDraw(int i, int j, SpriteBatch spriteBatch)
|
||||
{
|
||||
CalamityUtils.DrawFlameEffect(ModContent.Request<Texture2D>("CalamityMod/Tiles/FurnitureProfaned/ProfanedCandelabraFlame"), i, j);
|
||||
CalamityUtils.DrawFlameEffect(ModContent.Request<Texture2D>("CalamityMod/Tiles/FurnitureProfaned/ProfanedCandelabraFlame").Value, i, j);
|
||||
}
|
||||
|
||||
public override void DrawEffects(int i, int j, SpriteBatch spriteBatch, ref Color drawColor, ref int nextSpecialDrawIndex)
|
||||
public override void DrawEffects(int i, int j, SpriteBatch spriteBatch, ref TileDrawInfo drawData)
|
||||
{
|
||||
if (Main.tile[i, j].TileFrameX < 35)
|
||||
CalamityUtils.DrawFlameSparks(246, 5, i, j);
|
||||
|
||||
@@ -1,7 +1,8 @@
|
||||
using CalamityMod.Dusts.Furniture;
|
||||
using CalamityMod.Dusts.Furniture;
|
||||
using Microsoft.Xna.Framework;
|
||||
using Microsoft.Xna.Framework.Graphics;
|
||||
using Terraria;
|
||||
using Terraria.DataStructures;
|
||||
using Terraria.ID;
|
||||
using Terraria.ModLoader;
|
||||
|
||||
@@ -69,10 +70,10 @@ namespace CalamityMod.Tiles.FurnitureProfaned
|
||||
|
||||
public override void PostDraw(int i, int j, SpriteBatch spriteBatch)
|
||||
{
|
||||
CalamityUtils.DrawFlameEffect(ModContent.Request<Texture2D>("CalamityMod/Tiles/FurnitureProfaned/ProfanedCandleFlame"), i, j);
|
||||
CalamityUtils.DrawFlameEffect(ModContent.Request<Texture2D>("CalamityMod/Tiles/FurnitureProfaned/ProfanedCandleFlame").Value, i, j);
|
||||
}
|
||||
|
||||
public override void DrawEffects(int i, int j, SpriteBatch spriteBatch, ref Color drawColor, ref int nextSpecialDrawIndex)
|
||||
public override void DrawEffects(int i, int j, SpriteBatch spriteBatch, ref TileDrawInfo drawData)
|
||||
{
|
||||
if (Main.tile[i, j].TileFrameX < 18)
|
||||
CalamityUtils.DrawFlameSparks(246, 5, i, j);
|
||||
|
||||
@@ -60,10 +60,10 @@ namespace CalamityMod.Tiles.FurnitureProfaned
|
||||
|
||||
public override void PostDraw(int i, int j, SpriteBatch spriteBatch)
|
||||
{
|
||||
CalamityUtils.DrawFlameEffect(ModContent.Request<Texture2D>("CalamityMod/Tiles/FurnitureProfaned/ProfanedLampFlame"), i, j);
|
||||
CalamityUtils.DrawFlameEffect(ModContent.Request<Texture2D>("CalamityMod/Tiles/FurnitureProfaned/ProfanedLampFlame").Value, i, j);
|
||||
}
|
||||
|
||||
public override void DrawEffects(int i, int j, SpriteBatch spriteBatch, ref Color drawColor, ref int nextSpecialDrawIndex)
|
||||
public override void DrawEffects(int i, int j, SpriteBatch spriteBatch, ref TileDrawInfo drawData)
|
||||
{
|
||||
if (Main.tile[i, j].TileFrameY == 0 && Main.tile[i, j].TileFrameX < 18)
|
||||
{
|
||||
|
||||
@@ -60,10 +60,10 @@ namespace CalamityMod.Tiles.FurnitureProfaned
|
||||
|
||||
public override void PostDraw(int i, int j, SpriteBatch spriteBatch)
|
||||
{
|
||||
CalamityUtils.DrawFlameEffect(ModContent.Request<Texture2D>("CalamityMod/Tiles/FurnitureProfaned/ProfanedLanternFlame"), i, j);
|
||||
CalamityUtils.DrawFlameEffect(ModContent.Request<Texture2D>("CalamityMod/Tiles/FurnitureProfaned/ProfanedLanternFlame").Value, i, j);
|
||||
}
|
||||
|
||||
public override void DrawEffects(int i, int j, SpriteBatch spriteBatch, ref Color drawColor, ref int nextSpecialDrawIndex)
|
||||
public override void DrawEffects(int i, int j, SpriteBatch spriteBatch, ref TileDrawInfo drawData)
|
||||
{
|
||||
if (Main.tile[i, j].TileFrameX < 18)
|
||||
CalamityUtils.DrawFlameSparks(246, 5, i, j);
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
|
||||
|
||||
using CalamityMod.Dusts.Furniture;
|
||||
using Microsoft.Xna.Framework;
|
||||
using Microsoft.Xna.Framework.Graphics;
|
||||
@@ -218,7 +218,7 @@ namespace CalamityMod.Tiles.FurnitureProfaned
|
||||
}
|
||||
xOffset *= 288;
|
||||
xPos += xOffset;
|
||||
Texture2D glowmask = ModContent.Request<Texture2D>("CalamityMod/Tiles/FurnitureProfaned/ProfanedRockGlow");
|
||||
Texture2D glowmask = ModContent.Request<Texture2D>("CalamityMod/Tiles/FurnitureProfaned/ProfanedRockGlow").Value;
|
||||
Vector2 zero = Main.drawToScreen ? Vector2.Zero : new Vector2(Main.offScreenRange);
|
||||
Vector2 drawOffset = new Vector2(i * 16 - Main.screenPosition.X, j * 16 - Main.screenPosition.Y) + zero;
|
||||
Color drawColour = GetDrawColour(i, j, new Color(25, 25, 25, 25));
|
||||
|
||||
@@ -50,7 +50,7 @@ namespace CalamityMod.Tiles.FurnitureProfaned
|
||||
yOffset *= AnimationFrameHeight;
|
||||
xPos += xOffset;
|
||||
yPos += yOffset;
|
||||
Texture2D glowmask = ModContent.Request<Texture2D>("CalamityMod/Tiles/FurnitureProfaned/RunicProfanedBrickGlow");
|
||||
Texture2D glowmask = ModContent.Request<Texture2D>("CalamityMod/Tiles/FurnitureProfaned/RunicProfanedBrickGlow").Value;
|
||||
Vector2 zero = Main.drawToScreen ? Vector2.Zero : new Vector2(Main.offScreenRange);
|
||||
Vector2 drawOffset = new Vector2(i * 16 - Main.screenPosition.X, j * 16 - Main.screenPosition.Y) + zero;
|
||||
Color drawColour = GetDrawColour(i, j, new Color(128, 128, 128, 128));
|
||||
|
||||
@@ -58,7 +58,7 @@ namespace CalamityMod.Tiles.FurnitureStatigel
|
||||
|
||||
public override void PostDraw(int i, int j, SpriteBatch spriteBatch)
|
||||
{
|
||||
CalamityUtils.DrawFlameEffect(ModContent.Request<Texture2D>("CalamityMod/Tiles/FurnitureStatigel/StatigelCandelabraFlame"), i, j);
|
||||
CalamityUtils.DrawFlameEffect(ModContent.Request<Texture2D>("CalamityMod/Tiles/FurnitureStatigel/StatigelCandelabraFlame").Value, i, j);
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -1,4 +1,4 @@
|
||||
using Microsoft.Xna.Framework;
|
||||
using Microsoft.Xna.Framework;
|
||||
using Microsoft.Xna.Framework.Graphics;
|
||||
using Terraria;
|
||||
using Terraria.ID;
|
||||
@@ -67,7 +67,7 @@ namespace CalamityMod.Tiles.FurnitureStatigel
|
||||
|
||||
public override void PostDraw(int i, int j, SpriteBatch spriteBatch)
|
||||
{
|
||||
CalamityUtils.DrawFlameEffect(ModContent.Request<Texture2D>("CalamityMod/Tiles/FurnitureStatigel/StatigelCandleFlame"), i, j);
|
||||
CalamityUtils.DrawFlameEffect(ModContent.Request<Texture2D>("CalamityMod/Tiles/FurnitureStatigel/StatigelCandleFlame").Value, i, j);
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -56,7 +56,7 @@ namespace CalamityMod.Tiles.FurnitureStatigel
|
||||
|
||||
public override void PostDraw(int i, int j, SpriteBatch spriteBatch)
|
||||
{
|
||||
CalamityUtils.DrawFlameEffect(ModContent.Request<Texture2D>("CalamityMod/Tiles/FurnitureStatigel/StatigelChandelierFlame"), i, j);
|
||||
CalamityUtils.DrawFlameEffect(ModContent.Request<Texture2D>("CalamityMod/Tiles/FurnitureStatigel/StatigelChandelierFlame").Value, i, j);
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -58,7 +58,7 @@ namespace CalamityMod.Tiles.FurnitureStatigel
|
||||
|
||||
public override void PostDraw(int i, int j, SpriteBatch spriteBatch)
|
||||
{
|
||||
CalamityUtils.DrawFlameEffect(ModContent.Request<Texture2D>("CalamityMod/Tiles/FurnitureStatigel/StatigelLampFlame"), i, j);
|
||||
CalamityUtils.DrawFlameEffect(ModContent.Request<Texture2D>("CalamityMod/Tiles/FurnitureStatigel/StatigelLampFlame").Value, i, j);
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -58,7 +58,7 @@ namespace CalamityMod.Tiles.FurnitureStatigel
|
||||
|
||||
public override void PostDraw(int i, int j, SpriteBatch spriteBatch)
|
||||
{
|
||||
CalamityUtils.DrawFlameEffect(ModContent.Request<Texture2D>("CalamityMod/Tiles/FurnitureStatigel/StatigelLanternFlame"), i, j);
|
||||
CalamityUtils.DrawFlameEffect(ModContent.Request<Texture2D>("CalamityMod/Tiles/FurnitureStatigel/StatigelLanternFlame").Value, i, j);
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -1,4 +1,4 @@
|
||||
|
||||
|
||||
using Microsoft.Xna.Framework;
|
||||
using Microsoft.Xna.Framework.Graphics;
|
||||
using Terraria;
|
||||
@@ -39,7 +39,7 @@ namespace CalamityMod.Tiles.FurnitureStratus
|
||||
{
|
||||
int xPos = Main.tile[i, j].TileFrameX;
|
||||
int yPos = Main.tile[i, j].TileFrameY;
|
||||
Texture2D glowmask = ModContent.Request<Texture2D>("CalamityMod/Tiles/FurnitureStratus/StratusBricksGlow");
|
||||
Texture2D glowmask = ModContent.Request<Texture2D>("CalamityMod/Tiles/FurnitureStratus/StratusBricksGlow").Value;
|
||||
Color drawColour = GetDrawColour(i, j, new Color(100, 100, 100, 100));
|
||||
Vector2 zero = Main.drawToScreen ? Vector2.Zero : new Vector2(Main.offScreenRange);
|
||||
Vector2 drawOffset = new Vector2(i * 16 - Main.screenPosition.X, j * 16 - Main.screenPosition.Y) + zero;
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
using Microsoft.Xna.Framework;
|
||||
using Microsoft.Xna.Framework;
|
||||
using Microsoft.Xna.Framework.Graphics;
|
||||
using Terraria;
|
||||
using Terraria.ID;
|
||||
@@ -68,7 +68,7 @@ namespace CalamityMod.Tiles.FurnitureStratus
|
||||
|
||||
public override void PostDraw(int i, int j, SpriteBatch spriteBatch)
|
||||
{
|
||||
CalamityUtils.DrawFlameEffect(ModContent.Request<Texture2D>("CalamityMod/Tiles/FurnitureStratus/StratusCandleFlame"), i, j, 0, -7);
|
||||
CalamityUtils.DrawFlameEffect(ModContent.Request<Texture2D>("CalamityMod/Tiles/FurnitureStratus/StratusCandleFlame").Value, i, j, 0, -7);
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -475,7 +475,7 @@ namespace CalamityMod
|
||||
((projectile.friendly && (!npc.friendly || (npc.type == NPCID.Guide && projectile.owner < Main.maxPlayers && player.killGuide) || (npc.type == NPCID.Clothier && projectile.owner < Main.maxPlayers && player.killClothier))) ||
|
||||
(projectile.hostile && npc.friendly && !npc.dontTakeDamageFromHostiles)) && (projectile.owner < 0 || npc.immune[projectile.owner] == 0 || projectile.maxPenetrate == 1))
|
||||
{
|
||||
if (npc.noTileCollide || !projectile.ownerHitCheck || projectile.CanHit(npc))
|
||||
if (npc.noTileCollide || !projectile.ownerHitCheck)
|
||||
{
|
||||
bool stickingToNPC;
|
||||
//Solar Crawltipede tail has special collision
|
||||
@@ -496,9 +496,9 @@ namespace CalamityMod
|
||||
if (stickingToNPC)
|
||||
{
|
||||
//reflect projectile if the npc can reflect it (like Selenians)
|
||||
if (npc.reflectingProjectiles && projectile.CanReflect())
|
||||
if (npc.reflectsProjectiles && projectile.CanBeReflected())
|
||||
{
|
||||
npc.ReflectProjectile(projectile.whoAmI);
|
||||
npc.ReflectProjectile(projectile);
|
||||
return;
|
||||
}
|
||||
|
||||
|
||||
@@ -21,6 +21,7 @@ using System.Linq;
|
||||
using System.Reflection;
|
||||
using System.Text;
|
||||
using Terraria;
|
||||
using Terraria.Chat;
|
||||
using Terraria.ID;
|
||||
using Terraria.Localization;
|
||||
using Terraria.ModLoader;
|
||||
@@ -50,7 +51,7 @@ namespace CalamityMod
|
||||
if (Main.netMode == NetmodeID.SinglePlayer)
|
||||
Main.NewText(Language.GetTextValue(key), textColor.Value);
|
||||
else if (Main.netMode == NetmodeID.Server)
|
||||
NetMessage.BroadcastChatMessage(NetworkText.FromKey(key), textColor.Value);
|
||||
ChatHelper.BroadcastChatMessage(NetworkText.FromKey(key), textColor.Value);
|
||||
}
|
||||
|
||||
// Yes, this method has a use that Utils.Swap does not; You cannot use refs on array indices.
|
||||
|
||||
@@ -21,7 +21,7 @@ namespace CalamityMod
|
||||
public static float MinionDamage(this Player player) => player.GetDamage<GenericDamageClass>().Additive + player.GetDamage(DamageClass.Summon) - 1f;
|
||||
public static float ThrownDamage(this Player player) => player.GetDamage<GenericDamageClass>().Additive + player.GetDamage(DamageClass.Throwing) - 1f;
|
||||
public static float RogueDamage(this Player player) => player.GetDamage<GenericDamageClass>().Additive + player.GetDamage(DamageClass.Throwing) + player.Calamity().throwingDamage - 2f;
|
||||
public static float AverageDamage(this Player player) => player.GetDamage<GenericDamageClass>() + (player.GetDamage(DamageClass.Melee) + player.GetDamage(DamageClass.Ranged) + player.GetDamage(DamageClass.Magic) + player.GetDamage(DamageClass.Summon) + player.Calamity().throwingDamage - 5f) / 5f;
|
||||
public static float AverageDamage(this Player player) => player.GetDamage<GenericDamageClass>() + (player.GetDamage(DamageClass.Melee).Additive + player.GetDamage(DamageClass.Ranged).Additive + player.GetDamage(DamageClass.Magic).Additive + player.GetDamage(DamageClass.Summon).Additive + player.Calamity().throwingDamage - 5f) / 5f;
|
||||
#endregion
|
||||
|
||||
public static bool StandingStill(this Player player, float velocity = 0.05f) => player.velocity.Length() < velocity;
|
||||
|
||||
@@ -1,5 +1,6 @@
|
||||
using Microsoft.Xna.Framework;
|
||||
using Microsoft.Xna.Framework;
|
||||
using Terraria;
|
||||
using Terraria.ID;
|
||||
using Terraria.ModLoader;
|
||||
|
||||
namespace CalamityMod.Walls
|
||||
@@ -8,7 +9,7 @@ namespace CalamityMod.Walls
|
||||
{
|
||||
public override void SetStaticDefaults()
|
||||
{
|
||||
dustType = 33;
|
||||
DustType = 33;
|
||||
AddMapEntry(new Color(6, 10, 54));
|
||||
}
|
||||
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
using Terraria;
|
||||
using Terraria;
|
||||
using Terraria.ModLoader;
|
||||
using Microsoft.Xna.Framework;
|
||||
|
||||
@@ -9,9 +9,9 @@ namespace CalamityMod.Walls
|
||||
public override void SetStaticDefaults()
|
||||
{
|
||||
Main.wallHouse[Type] = true;
|
||||
drop = ModContent.ItemType<Items.Placeables.Walls.AbyssGravelWallItem>();
|
||||
ItemDrop = ModContent.ItemType<Items.Placeables.Walls.AbyssGravelWallItem>();
|
||||
AddMapEntry(new Color(6, 10, 54));
|
||||
dustType = 33;
|
||||
DustType = 33;
|
||||
}
|
||||
|
||||
public override bool CanExplode(int i, int j) => false;
|
||||
|
||||
@@ -9,7 +9,7 @@ namespace CalamityMod.Walls
|
||||
public override void SetStaticDefaults()
|
||||
{
|
||||
Main.wallHouse[Type] = true;
|
||||
drop = ModContent.ItemType<Items.Placeables.Walls.AerialiteBrickWall>();
|
||||
ItemDrop = ModContent.ItemType<Items.Placeables.Walls.AerialiteBrickWall>();
|
||||
AddMapEntry(new Color(51, 45, 97));
|
||||
}
|
||||
|
||||
|
||||
@@ -10,7 +10,7 @@ namespace CalamityMod.Walls
|
||||
public override void SetStaticDefaults()
|
||||
{
|
||||
Main.wallHouse[Type] = true;
|
||||
drop = ModContent.ItemType<Items.Placeables.Walls.AshenSlabWall>();
|
||||
ItemDrop = ModContent.ItemType<Items.Placeables.Walls.AshenSlabWall>();
|
||||
AddMapEntry(new Color(30, 18, 36));
|
||||
}
|
||||
|
||||
|
||||
@@ -11,7 +11,7 @@ namespace CalamityMod.Walls
|
||||
{
|
||||
Main.wallHouse[Type] = true;
|
||||
Main.wallLargeFrames[Type] = 2;
|
||||
drop = ModContent.ItemType<Items.Placeables.Walls.AstralBrickWall>();
|
||||
ItemDrop = ModContent.ItemType<Items.Placeables.Walls.AstralBrickWall>();
|
||||
AddMapEntry(new Color(74, 74, 97));
|
||||
}
|
||||
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
using Microsoft.Xna.Framework;
|
||||
using Microsoft.Xna.Framework;
|
||||
using Terraria.ID;
|
||||
using Terraria.ModLoader;
|
||||
|
||||
@@ -15,7 +15,7 @@ namespace CalamityMod.Walls
|
||||
public override void SetStaticDefaults()
|
||||
{
|
||||
// TODO -- Change this dust to be one more befitting Astral Dirt.
|
||||
dustType = DustID.Shadowflame;
|
||||
DustType = DustID.Shadowflame;
|
||||
AddMapEntry(new Color(26, 22, 32));
|
||||
}
|
||||
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
using Microsoft.Xna.Framework;
|
||||
using Microsoft.Xna.Framework;
|
||||
using Terraria;
|
||||
using Terraria.ID;
|
||||
using Terraria.ModLoader;
|
||||
@@ -11,9 +11,9 @@ namespace CalamityMod.Walls
|
||||
public override void SetStaticDefaults()
|
||||
{
|
||||
// TODO -- Change this dust to be one more befitting Astral Dirt.
|
||||
dustType = DustID.Shadowflame;
|
||||
DustType = DustID.Shadowflame;
|
||||
Main.wallHouse[Type] = true;
|
||||
drop = ModContent.ItemType<Items.Placeables.Walls.AstralDirtWall>();
|
||||
ItemDrop = ModContent.ItemType<Items.Placeables.Walls.AstralDirtWall>();
|
||||
AddMapEntry(new Color(26, 22, 32));
|
||||
}
|
||||
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
using Terraria;
|
||||
using Terraria;
|
||||
using Microsoft.Xna.Framework;
|
||||
using Terraria.ModLoader;
|
||||
namespace CalamityMod.Walls
|
||||
@@ -8,8 +8,8 @@ namespace CalamityMod.Walls
|
||||
|
||||
public override void SetStaticDefaults()
|
||||
{
|
||||
dustType = ModContent.DustType<Dusts.AstralBasic>();
|
||||
drop = ModContent.ItemType<Items.Placeables.Walls.AstralFossilWall>();
|
||||
DustType = ModContent.DustType<Dusts.AstralBasic>();
|
||||
ItemDrop = ModContent.ItemType<Items.Placeables.Walls.AstralFossilWall>();
|
||||
Main.wallHouse[Type] = true;
|
||||
|
||||
AddMapEntry(new Color(29, 38, 49));
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
|
||||
|
||||
using Microsoft.Xna.Framework;
|
||||
using Terraria.ID;
|
||||
using Terraria.ModLoader;
|
||||
@@ -15,8 +15,8 @@ namespace CalamityMod.Walls
|
||||
public override void SetStaticDefaults()
|
||||
{
|
||||
// TODO -- Change this dust to be one more befitting Astral Grass.
|
||||
dustType = DustID.Shadowflame;
|
||||
drop = ModContent.ItemType<Items.Placeables.Walls.AstralGrassWall>();
|
||||
DustType = DustID.Shadowflame;
|
||||
ItemDrop = ModContent.ItemType<Items.Placeables.Walls.AstralGrassWall>();
|
||||
|
||||
WallID.Sets.Conversion.Grass[Type] = true;
|
||||
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
|
||||
|
||||
using Microsoft.Xna.Framework;
|
||||
using Terraria.ID;
|
||||
using Terraria.ModLoader;
|
||||
@@ -15,7 +15,7 @@ namespace CalamityMod.Walls
|
||||
public override void SetStaticDefaults()
|
||||
{
|
||||
// TODO -- Change this dust to be one more befitting Astral Ice.
|
||||
dustType = DustID.Shadowflame;
|
||||
DustType = DustID.Shadowflame;
|
||||
AddMapEntry(new Color(83, 76, 92));
|
||||
}
|
||||
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
using Terraria;
|
||||
using Terraria;
|
||||
using Microsoft.Xna.Framework;
|
||||
using Terraria.ID;
|
||||
using Terraria.ModLoader;
|
||||
@@ -11,8 +11,8 @@ namespace CalamityMod.Walls
|
||||
{
|
||||
// TODO -- Change this dust to be one more befitting Astral Ice.
|
||||
Main.wallHouse[Type] = true;
|
||||
dustType = DustID.Shadowflame;
|
||||
drop = ModContent.ItemType<Items.Placeables.Walls.AstralIceWall>();
|
||||
DustType = DustID.Shadowflame;
|
||||
ItemDrop = ModContent.ItemType<Items.Placeables.Walls.AstralIceWall>();
|
||||
|
||||
AddMapEntry(new Color(83, 76, 92));
|
||||
}
|
||||
|
||||
@@ -11,7 +11,7 @@ namespace CalamityMod.Walls
|
||||
public override void SetStaticDefaults()
|
||||
{
|
||||
Main.wallHouse[Type] = true;
|
||||
drop = ModContent.ItemType<Items.Placeables.Walls.AstralMonolithWall>();
|
||||
ItemDrop = ModContent.ItemType<Items.Placeables.Walls.AstralMonolithWall>();
|
||||
AddMapEntry(new Color(5, 5, 5));
|
||||
}
|
||||
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
|
||||
|
||||
using Microsoft.Xna.Framework;
|
||||
using Terraria.ID;
|
||||
using Terraria.ModLoader;
|
||||
@@ -15,7 +15,7 @@ namespace CalamityMod.Walls
|
||||
public override void SetStaticDefaults()
|
||||
{
|
||||
// TODO -- Change this dust to be one more befitting Astral Sandstone.
|
||||
dustType = DustID.Shadowflame;
|
||||
DustType = DustID.Shadowflame;
|
||||
|
||||
WallID.Sets.Conversion.Sandstone[Type] = true;
|
||||
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
using Terraria;
|
||||
using Terraria;
|
||||
using Microsoft.Xna.Framework;
|
||||
using Terraria.ID;
|
||||
using Terraria.ModLoader;
|
||||
@@ -10,8 +10,8 @@ namespace CalamityMod.Walls
|
||||
public override void SetStaticDefaults()
|
||||
{
|
||||
// TODO -- Change this dust to be one more befitting Astral Sandstone.
|
||||
dustType = DustID.Shadowflame;
|
||||
drop = ModContent.ItemType<Items.Placeables.Walls.AstralSandstoneWall>();
|
||||
DustType = DustID.Shadowflame;
|
||||
ItemDrop = ModContent.ItemType<Items.Placeables.Walls.AstralSandstoneWall>();
|
||||
Main.wallHouse[Type] = true;
|
||||
|
||||
WallID.Sets.Conversion.Sandstone[Type] = true;
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
|
||||
|
||||
using Microsoft.Xna.Framework;
|
||||
using Terraria.ModLoader;
|
||||
namespace CalamityMod.Walls
|
||||
@@ -7,7 +7,7 @@ namespace CalamityMod.Walls
|
||||
{
|
||||
public override void SetStaticDefaults()
|
||||
{
|
||||
dustType = ModContent.DustType<Dusts.AstralBasic>();
|
||||
DustType = ModContent.DustType<Dusts.AstralBasic>();
|
||||
|
||||
AddMapEntry(new Color(135, 145, 149));
|
||||
}
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
using Terraria;
|
||||
using Terraria;
|
||||
using Microsoft.Xna.Framework;
|
||||
using Terraria.ModLoader;
|
||||
namespace CalamityMod.Walls
|
||||
@@ -8,8 +8,8 @@ namespace CalamityMod.Walls
|
||||
|
||||
public override void SetStaticDefaults()
|
||||
{
|
||||
dustType = ModContent.DustType<Dusts.AstralBasic>();
|
||||
drop = ModContent.ItemType<Items.Placeables.Walls.AstralSnowWall>();
|
||||
DustType = ModContent.DustType<Dusts.AstralBasic>();
|
||||
ItemDrop = ModContent.ItemType<Items.Placeables.Walls.AstralSnowWall>();
|
||||
Main.wallHouse[Type] = true;
|
||||
|
||||
AddMapEntry(new Color(135, 145, 149));
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
|
||||
|
||||
using Microsoft.Xna.Framework;
|
||||
using Terraria.ID;
|
||||
using Terraria.ModLoader;
|
||||
@@ -15,7 +15,7 @@ namespace CalamityMod.Walls
|
||||
public override void SetStaticDefaults()
|
||||
{
|
||||
// TODO -- Change this dust to be one more befitting Astral Stone.
|
||||
dustType = DustID.Shadowflame;
|
||||
DustType = DustID.Shadowflame;
|
||||
|
||||
WallID.Sets.Conversion.Stone[Type] = true;
|
||||
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
using Terraria;
|
||||
using Terraria;
|
||||
using Microsoft.Xna.Framework;
|
||||
using Terraria.ID;
|
||||
using Terraria.ModLoader;
|
||||
@@ -10,8 +10,8 @@ namespace CalamityMod.Walls
|
||||
public override void SetStaticDefaults()
|
||||
{
|
||||
// TODO -- Change this dust to be one more befitting Astral Stone.
|
||||
dustType = DustID.Shadowflame;
|
||||
drop = ModContent.ItemType<Items.Placeables.Walls.AstralStoneWall>();
|
||||
DustType = DustID.Shadowflame;
|
||||
ItemDrop = ModContent.ItemType<Items.Placeables.Walls.AstralStoneWall>();
|
||||
Main.wallHouse[Type] = true;
|
||||
|
||||
WallID.Sets.Conversion.Stone[Type] = true;
|
||||
|
||||
@@ -10,7 +10,7 @@ namespace CalamityMod.Walls
|
||||
public override void SetStaticDefaults()
|
||||
{
|
||||
Main.wallHouse[Type] = true;
|
||||
drop = ModContent.ItemType<Items.Placeables.Walls.BrimstoneSlagWall>();
|
||||
ItemDrop = ModContent.ItemType<Items.Placeables.Walls.BrimstoneSlagWall>();
|
||||
AddMapEntry(new Color(24, 16, 29));
|
||||
}
|
||||
|
||||
|
||||
@@ -9,7 +9,7 @@ namespace CalamityMod.Walls
|
||||
{
|
||||
public override void SetStaticDefaults()
|
||||
{
|
||||
drop = ModContent.ItemType<Items.Placeables.Walls.BrimstoneSlagWall>();
|
||||
ItemDrop = ModContent.ItemType<Items.Placeables.Walls.BrimstoneSlagWall>();
|
||||
AddMapEntry(new Color(24, 16, 29));
|
||||
}
|
||||
|
||||
|
||||
@@ -10,7 +10,7 @@ namespace CalamityMod.Walls
|
||||
{
|
||||
Main.wallHouse[Type] = true;
|
||||
|
||||
drop = ModContent.ItemType<Items.Placeables.Walls.ChaosplateWall>();
|
||||
ItemDrop = ModContent.ItemType<Items.Placeables.Walls.ChaosplateWall>();
|
||||
AddMapEntry(new Color(123, 50, 66));
|
||||
}
|
||||
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
using Microsoft.Xna.Framework;
|
||||
using Microsoft.Xna.Framework;
|
||||
using Terraria;
|
||||
using Terraria.ModLoader;
|
||||
|
||||
@@ -9,9 +9,9 @@ namespace CalamityMod.Walls
|
||||
public override void SetStaticDefaults()
|
||||
{
|
||||
Main.wallHouse[Type] = true;
|
||||
drop = ModContent.ItemType<Items.Placeables.Walls.ChaoticBrickWall>();
|
||||
ItemDrop = ModContent.ItemType<Items.Placeables.Walls.ChaoticBrickWall>();
|
||||
AddMapEntry(new Color(255, 0, 0));
|
||||
dustType = 105;
|
||||
DustType = 105;
|
||||
}
|
||||
|
||||
public override void NumDust(int i, int j, bool fail, ref int num) => num = fail ? 1 : 3;
|
||||
|
||||
@@ -10,7 +10,7 @@ namespace CalamityMod.Walls
|
||||
{
|
||||
Main.wallHouse[Type] = true;
|
||||
|
||||
drop = ModContent.ItemType<Items.Placeables.Walls.CinderplateWall>();
|
||||
ItemDrop = ModContent.ItemType<Items.Placeables.Walls.CinderplateWall>();
|
||||
AddMapEntry(new Color(166, 111, 75));
|
||||
}
|
||||
|
||||
|
||||
@@ -10,7 +10,7 @@ namespace CalamityMod.Walls
|
||||
{
|
||||
Main.wallHouse[Type] = true;
|
||||
|
||||
drop = ModContent.ItemType<Items.Placeables.Walls.CosmiliteBrickWall>();
|
||||
ItemDrop = ModContent.ItemType<Items.Placeables.Walls.CosmiliteBrickWall>();
|
||||
AddMapEntry(new Color(34, 33, 59));
|
||||
}
|
||||
|
||||
|
||||
@@ -11,7 +11,7 @@ namespace CalamityMod.Walls
|
||||
{
|
||||
Main.wallHouse[Type] = true;
|
||||
|
||||
drop = ModContent.ItemType<Items.Placeables.Walls.CryonicBrickWall>();
|
||||
ItemDrop = ModContent.ItemType<Items.Placeables.Walls.CryonicBrickWall>();
|
||||
AddMapEntry(new Color(72, 75, 122));
|
||||
}
|
||||
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
using Terraria;
|
||||
using Terraria;
|
||||
using Microsoft.Xna.Framework;
|
||||
using Terraria.ModLoader;
|
||||
namespace CalamityMod.Walls.DraedonStructures
|
||||
@@ -8,8 +8,8 @@ namespace CalamityMod.Walls.DraedonStructures
|
||||
|
||||
public override void SetStaticDefaults()
|
||||
{
|
||||
dustType = 19;
|
||||
drop = ModContent.ItemType<Items.Placeables.Walls.DraedonStructures.HazardChevronWall>();
|
||||
DustType = 19;
|
||||
ItemDrop = ModContent.ItemType<Items.Placeables.Walls.DraedonStructures.HazardChevronWall>();
|
||||
Main.wallHouse[Type] = true;
|
||||
|
||||
AddMapEntry(new Color(114, 105, 51));
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
using Terraria;
|
||||
using Terraria;
|
||||
using Microsoft.Xna.Framework;
|
||||
using Terraria.ModLoader;
|
||||
namespace CalamityMod.Walls.DraedonStructures
|
||||
@@ -8,8 +8,8 @@ namespace CalamityMod.Walls.DraedonStructures
|
||||
|
||||
public override void SetStaticDefaults()
|
||||
{
|
||||
dustType = 1;
|
||||
drop = ModContent.ItemType<Items.Placeables.Walls.DraedonStructures.LaboratoryPanelWall>();
|
||||
DustType = 1;
|
||||
ItemDrop = ModContent.ItemType<Items.Placeables.Walls.DraedonStructures.LaboratoryPanelWall>();
|
||||
Main.wallHouse[Type] = true;
|
||||
|
||||
AddMapEntry(new Color(63, 57, 56));
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
using Terraria;
|
||||
using Terraria;
|
||||
using Microsoft.Xna.Framework;
|
||||
using Terraria.ModLoader;
|
||||
namespace CalamityMod.Walls.DraedonStructures
|
||||
@@ -8,8 +8,8 @@ namespace CalamityMod.Walls.DraedonStructures
|
||||
|
||||
public override void SetStaticDefaults()
|
||||
{
|
||||
dustType = 109;
|
||||
drop = ModContent.ItemType<Items.Placeables.Walls.DraedonStructures.LaboratoryPlateBeam>();
|
||||
DustType = 109;
|
||||
ItemDrop = ModContent.ItemType<Items.Placeables.Walls.DraedonStructures.LaboratoryPlateBeam>();
|
||||
Main.wallHouse[Type] = true;
|
||||
|
||||
AddMapEntry(new Color(48, 45, 46));
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
using Terraria;
|
||||
using Terraria;
|
||||
using Microsoft.Xna.Framework;
|
||||
using Terraria.ModLoader;
|
||||
namespace CalamityMod.Walls.DraedonStructures
|
||||
@@ -8,8 +8,8 @@ namespace CalamityMod.Walls.DraedonStructures
|
||||
|
||||
public override void SetStaticDefaults()
|
||||
{
|
||||
dustType = 109;
|
||||
drop = ModContent.ItemType<Items.Placeables.Walls.DraedonStructures.LaboratoryPlatePillar>();
|
||||
DustType = 109;
|
||||
ItemDrop = ModContent.ItemType<Items.Placeables.Walls.DraedonStructures.LaboratoryPlatePillar>();
|
||||
Main.wallHouse[Type] = true;
|
||||
|
||||
AddMapEntry(new Color(29, 28, 30));
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
using Terraria;
|
||||
using Terraria;
|
||||
using Microsoft.Xna.Framework;
|
||||
using Terraria.ModLoader;
|
||||
namespace CalamityMod.Walls.DraedonStructures
|
||||
@@ -8,8 +8,8 @@ namespace CalamityMod.Walls.DraedonStructures
|
||||
|
||||
public override void SetStaticDefaults()
|
||||
{
|
||||
dustType = 30;
|
||||
drop = ModContent.ItemType<Items.Placeables.Walls.DraedonStructures.LaboratoryPlatingWall>();
|
||||
DustType = 30;
|
||||
ItemDrop = ModContent.ItemType<Items.Placeables.Walls.DraedonStructures.LaboratoryPlatingWall>();
|
||||
Main.wallHouse[Type] = true;
|
||||
|
||||
AddMapEntry(new Color(105, 102, 98));
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
using Microsoft.Xna.Framework;
|
||||
using Microsoft.Xna.Framework;
|
||||
using Terraria;
|
||||
using Terraria.ModLoader;
|
||||
|
||||
@@ -9,8 +9,8 @@ namespace CalamityMod.Walls.DraedonStructures
|
||||
|
||||
public override void SetStaticDefaults()
|
||||
{
|
||||
dustType = 32;
|
||||
drop = ModContent.ItemType<Items.Placeables.Walls.DraedonStructures.RustedPlateBeam>();
|
||||
DustType = 32;
|
||||
ItemDrop = ModContent.ItemType<Items.Placeables.Walls.DraedonStructures.RustedPlateBeam>();
|
||||
Main.wallHouse[Type] = true;
|
||||
|
||||
AddMapEntry(new Color(74, 47, 39));
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
using Microsoft.Xna.Framework;
|
||||
using Microsoft.Xna.Framework;
|
||||
using Terraria;
|
||||
using Terraria.ModLoader;
|
||||
|
||||
@@ -9,8 +9,8 @@ namespace CalamityMod.Walls.DraedonStructures
|
||||
|
||||
public override void SetStaticDefaults()
|
||||
{
|
||||
dustType = 32;
|
||||
drop = ModContent.ItemType<Items.Placeables.Walls.DraedonStructures.RustedPlatePillar>();
|
||||
DustType = 32;
|
||||
ItemDrop = ModContent.ItemType<Items.Placeables.Walls.DraedonStructures.RustedPlatePillar>();
|
||||
Main.wallHouse[Type] = true;
|
||||
|
||||
AddMapEntry(new Color(99, 71, 60));
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
using Terraria;
|
||||
using Terraria;
|
||||
using Microsoft.Xna.Framework;
|
||||
using Terraria.ModLoader;
|
||||
namespace CalamityMod.Walls.DraedonStructures
|
||||
@@ -8,8 +8,8 @@ namespace CalamityMod.Walls.DraedonStructures
|
||||
|
||||
public override void SetStaticDefaults()
|
||||
{
|
||||
dustType = 32;
|
||||
drop = ModContent.ItemType<Items.Placeables.Walls.DraedonStructures.RustedPlatingWall>();
|
||||
DustType = 32;
|
||||
ItemDrop = ModContent.ItemType<Items.Placeables.Walls.DraedonStructures.RustedPlatingWall>();
|
||||
Main.wallHouse[Type] = true;
|
||||
|
||||
AddMapEntry(new Color(83, 59, 50));
|
||||
|
||||
@@ -10,7 +10,7 @@ namespace CalamityMod.Walls
|
||||
{
|
||||
Main.wallHouse[Type] = true;
|
||||
|
||||
drop = ModContent.ItemType<Items.Placeables.Walls.ElumplateWall>();
|
||||
ItemDrop = ModContent.ItemType<Items.Placeables.Walls.ElumplateWall>();
|
||||
AddMapEntry(new Color(79, 117, 138));
|
||||
}
|
||||
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
using Microsoft.Xna.Framework;
|
||||
using Microsoft.Xna.Framework;
|
||||
using Terraria;
|
||||
using Terraria.ModLoader;
|
||||
|
||||
@@ -8,7 +8,7 @@ namespace CalamityMod.Walls
|
||||
{
|
||||
public override void SetStaticDefaults()
|
||||
{
|
||||
dustType = 108;
|
||||
DustType = 108;
|
||||
AddMapEntry(new Color(80, 80, 120));
|
||||
}
|
||||
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
using Microsoft.Xna.Framework;
|
||||
using Microsoft.Xna.Framework;
|
||||
using Terraria;
|
||||
using Terraria.ModLoader;
|
||||
|
||||
@@ -9,8 +9,8 @@ namespace CalamityMod.Walls
|
||||
public override void SetStaticDefaults()
|
||||
{
|
||||
Main.wallHouse[Type] = true;
|
||||
dustType = 108;
|
||||
drop = ModContent.ItemType<Items.Placeables.Walls.EutrophicSandWallSafe>();
|
||||
DustType = 108;
|
||||
ItemDrop = ModContent.ItemType<Items.Placeables.Walls.EutrophicSandWallSafe>();
|
||||
AddMapEntry(new Color(80, 80, 120));
|
||||
}
|
||||
|
||||
|
||||
@@ -10,7 +10,7 @@ namespace CalamityMod.Walls
|
||||
public override void SetStaticDefaults()
|
||||
{
|
||||
Main.wallHouse[Type] = true;
|
||||
drop = ModContent.ItemType<ExoPlatingWallItem>();
|
||||
ItemDrop = ModContent.ItemType<ExoPlatingWallItem>();
|
||||
AddMapEntry(new Color(41, 55, 65));
|
||||
}
|
||||
|
||||
|
||||
@@ -11,7 +11,7 @@ namespace CalamityMod.Walls
|
||||
public override void SetStaticDefaults()
|
||||
{
|
||||
Main.wallHouse[Type] = true;
|
||||
drop = ModContent.ItemType<ExoPrismPanelWallItem>();
|
||||
ItemDrop = ModContent.ItemType<ExoPrismPanelWallItem>();
|
||||
AddMapEntry(new Color(41, 55, 65));
|
||||
}
|
||||
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
|
||||
|
||||
using Microsoft.Xna.Framework;
|
||||
using Terraria.ID;
|
||||
using Terraria.ModLoader;
|
||||
@@ -15,7 +15,7 @@ namespace CalamityMod.Walls
|
||||
public override void SetStaticDefaults()
|
||||
{
|
||||
// TODO -- Change this dust to be one more befitting Hardened Astral Sand.
|
||||
dustType = DustID.Shadowflame;
|
||||
DustType = DustID.Shadowflame;
|
||||
|
||||
WallID.Sets.Conversion.HardenedSand[Type] = true;
|
||||
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
using Terraria;
|
||||
using Terraria;
|
||||
using Microsoft.Xna.Framework;
|
||||
using Terraria.ID;
|
||||
using Terraria.ModLoader;
|
||||
@@ -10,8 +10,8 @@ namespace CalamityMod.Walls
|
||||
public override void SetStaticDefaults()
|
||||
{
|
||||
// TODO -- Change this dust to be one more befitting Hardened Astral Sand.
|
||||
dustType = DustID.Shadowflame;
|
||||
drop = ModContent.ItemType<Items.Placeables.Walls.HardenedAstralSandWall>();
|
||||
DustType = DustID.Shadowflame;
|
||||
ItemDrop = ModContent.ItemType<Items.Placeables.Walls.HardenedAstralSandWall>();
|
||||
Main.wallHouse[Type] = true;
|
||||
|
||||
WallID.Sets.Conversion.HardenedSand[Type] = true;
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
using Microsoft.Xna.Framework;
|
||||
using Microsoft.Xna.Framework;
|
||||
using Terraria;
|
||||
using Terraria.ModLoader;
|
||||
|
||||
@@ -9,8 +9,8 @@ namespace CalamityMod.Walls
|
||||
public override void SetStaticDefaults()
|
||||
{
|
||||
Main.wallHouse[Type] = true;
|
||||
dustType = 32;
|
||||
drop = ModContent.ItemType<Items.Placeables.Walls.HardenedSulphurousSandstoneWall>();
|
||||
DustType = 32;
|
||||
ItemDrop = ModContent.ItemType<Items.Placeables.Walls.HardenedSulphurousSandstoneWall>();
|
||||
AddMapEntry(new Color(62, 50, 39));
|
||||
}
|
||||
|
||||
|
||||
@@ -10,7 +10,7 @@ namespace CalamityMod.Walls
|
||||
{
|
||||
Main.wallHouse[Type] = true;
|
||||
|
||||
drop = ModContent.ItemType<Items.Placeables.Walls.NavyplateWall>();
|
||||
ItemDrop = ModContent.ItemType<Items.Placeables.Walls.NavyplateWall>();
|
||||
AddMapEntry(new Color(55, 98, 127));
|
||||
}
|
||||
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
using Microsoft.Xna.Framework;
|
||||
using Microsoft.Xna.Framework;
|
||||
using Terraria.ModLoader;
|
||||
namespace CalamityMod.Walls
|
||||
{
|
||||
@@ -6,7 +6,7 @@ namespace CalamityMod.Walls
|
||||
{
|
||||
public override void SetStaticDefaults()
|
||||
{
|
||||
dustType = 96;
|
||||
DustType = 96;
|
||||
AddMapEntry(new Color(0, 50, 50));
|
||||
}
|
||||
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
using Microsoft.Xna.Framework;
|
||||
using Microsoft.Xna.Framework;
|
||||
using Terraria;
|
||||
using Terraria.ModLoader;
|
||||
|
||||
@@ -9,8 +9,8 @@ namespace CalamityMod.Walls
|
||||
public override void SetStaticDefaults()
|
||||
{
|
||||
Main.wallHouse[Type] = true;
|
||||
dustType = 96;
|
||||
drop = ModContent.ItemType<Items.Placeables.Walls.NavystoneWallSafe>();
|
||||
DustType = 96;
|
||||
ItemDrop = ModContent.ItemType<Items.Placeables.Walls.NavystoneWallSafe>();
|
||||
AddMapEntry(new Color(0, 50, 50));
|
||||
}
|
||||
|
||||
|
||||
@@ -10,7 +10,7 @@ namespace CalamityMod.Walls
|
||||
{
|
||||
Main.wallHouse[Type] = true;
|
||||
|
||||
drop = ModContent.ItemType<Items.Placeables.Walls.OccultStoneWall>();
|
||||
ItemDrop = ModContent.ItemType<Items.Placeables.Walls.OccultStoneWall>();
|
||||
AddMapEntry(new Color(23, 23, 26));
|
||||
}
|
||||
|
||||
|
||||
@@ -11,7 +11,7 @@ namespace CalamityMod.Walls
|
||||
{
|
||||
Main.wallHouse[Type] = true;
|
||||
|
||||
drop = ModContent.ItemType<Items.Placeables.Walls.PerennialBrickWall>();
|
||||
ItemDrop = ModContent.ItemType<Items.Placeables.Walls.PerennialBrickWall>();
|
||||
AddMapEntry(new Color(64, 116, 43));
|
||||
}
|
||||
|
||||
|
||||
@@ -10,7 +10,7 @@ namespace CalamityMod.Walls
|
||||
{
|
||||
Main.wallHouse[Type] = true;
|
||||
|
||||
drop = ModContent.ItemType<Items.Placeables.Walls.PlagueContainmentCellsWall>();
|
||||
ItemDrop = ModContent.ItemType<Items.Placeables.Walls.PlagueContainmentCellsWall>();
|
||||
AddMapEntry(new Color(83, 122, 44));
|
||||
}
|
||||
|
||||
|
||||
@@ -10,7 +10,7 @@ namespace CalamityMod.Walls
|
||||
{
|
||||
Main.wallHouse[Type] = true;
|
||||
|
||||
drop = ModContent.ItemType<Items.Placeables.Walls.PlaguedPlateWall>();
|
||||
ItemDrop = ModContent.ItemType<Items.Placeables.Walls.PlaguedPlateWall>();
|
||||
AddMapEntry(new Color(23, 23, 26));
|
||||
}
|
||||
|
||||
|
||||
Loaded 100 of 133 files, more files were not shown because too many files have changed in this diff.
Show more
Reference in new issue
Block a user