This commit is contained in:
Andrew Marheine committed 2020-08-21 15:43:39 -05:00
commit 69c08321d9
52 files changed
+84 -248

No files matched your search

+2
View File
@@ -1004,6 +1004,8 @@ namespace CalamityMod.CalPlayer
modPlayer.omegaBlueCooldown--;
if (modPlayer.plagueReaperCooldown > 0)
modPlayer.plagueReaperCooldown--;
if (modPlayer.brimflameFrenzyTimer > 0)
modPlayer.brimflameFrenzyTimer--;
if (modPlayer.roverDrive)
{
if (modPlayer.roverDriveTimer < CalamityUtils.SecondsToFrames(30f))
Binary file not shown.

Before

Width:  |  Height:  |  Size: 384 B

After

Width:  |  Height:  |  Size: 362 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 294 B

After

Width:  |  Height:  |  Size: 313 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 270 B

After

Width:  |  Height:  |  Size: 361 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 309 B

After

Width:  |  Height:  |  Size: 337 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 348 B

After

Width:  |  Height:  |  Size: 347 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 327 B

After

Width:  |  Height:  |  Size: 366 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 258 B

After

Width:  |  Height:  |  Size: 313 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 379 B

After

Width:  |  Height:  |  Size: 304 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 270 B

After

Width:  |  Height:  |  Size: 306 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 324 B

After

Width:  |  Height:  |  Size: 363 B

@@ -59,11 +59,19 @@ namespace CalamityMod.NPCs.AstrumDeus
public override void SendExtraAI(BinaryWriter writer)
{
writer.Write(npc.dontTakeDamage);
for (int i = 0; i < 4; i++)
{
writer.Write(npc.Calamity().newAI[i]);
}
}
public override void ReceiveExtraAI(BinaryReader reader)
{
npc.dontTakeDamage = reader.ReadBoolean();
for (int i = 0; i < 4; i++)
{
npc.Calamity().newAI[i] = reader.ReadSingle();
}
}
public override bool? DrawHealthBar(byte hbPosition, ref float scale, ref Vector2 position)
@@ -74,11 +74,19 @@ namespace CalamityMod.NPCs.AstrumDeus
public override void SendExtraAI(BinaryWriter writer)
{
writer.Write(npc.dontTakeDamage);
for (int i = 0; i < 4; i++)
{
writer.Write(npc.Calamity().newAI[i]);
}
}
public override void ReceiveExtraAI(BinaryReader reader)
{
npc.dontTakeDamage = reader.ReadBoolean();
for (int i = 0; i < 4; i++)
{
npc.Calamity().newAI[i] = reader.ReadSingle();
}
}
public override void AI()
@@ -59,11 +59,19 @@ namespace CalamityMod.NPCs.AstrumDeus
public override void SendExtraAI(BinaryWriter writer)
{
writer.Write(npc.dontTakeDamage);
for (int i = 0; i < 4; i++)
{
writer.Write(npc.Calamity().newAI[i]);
}
}
public override void ReceiveExtraAI(BinaryReader reader)
{
npc.dontTakeDamage = reader.ReadBoolean();
for (int i = 0; i < 4; i++)
{
npc.Calamity().newAI[i] = reader.ReadSingle();
}
}
public override bool? DrawHealthBar(byte hbPosition, ref float scale, ref Vector2 position)
+11
View File
@@ -26,6 +26,7 @@ namespace CalamityMod.NPCs.Leviathan
{
int counter = 0;
bool initialised = false;
int soundDelay = 0;
public override void SetStaticDefaults()
{
@@ -95,6 +96,7 @@ namespace CalamityMod.NPCs.Leviathan
writer.Write(npc.dontTakeDamage);
writer.Write(counter);
writer.Write(initialised);
writer.Write(soundDelay);
}
public override void ReceiveExtraAI(BinaryReader reader)
@@ -102,6 +104,7 @@ namespace CalamityMod.NPCs.Leviathan
npc.dontTakeDamage = reader.ReadBoolean();
counter = reader.ReadInt32();
initialised = reader.ReadBoolean();
soundDelay = reader.ReadInt32();
}
public override void AI()
@@ -157,6 +160,9 @@ namespace CalamityMod.NPCs.Leviathan
40
});
if (soundDelay > 0)
soundDelay--;
if (Main.rand.NextBool(600) && !spawnAnimation)
Main.PlaySound(SoundID.Zombie, (int)npc.Center.X, (int)npc.Center.Y, (sirenAlive && !death) ? soundChoice : soundChoiceRage);
@@ -346,6 +352,11 @@ namespace CalamityMod.NPCs.Leviathan
vector40.X += num415 * 4f;
vector40.Y += num416 * 4f;
Projectile.NewProjectile(vector40.X, vector40.Y, num415, num416, projType, dmg, 0f, Main.myPlayer, 0f, 0f);
if (soundDelay <= 0)
{
soundDelay = 120;
Main.PlaySound(mod.GetLegacySoundSlot(SoundType.Custom, "Sounds/Custom/LeviathanRoarMeteor"), npc.Center);
}
}
}
}
-5
View File
@@ -46,11 +46,6 @@ namespace CalamityMod.Projectiles.Boss
projectile.rotation += 0.1f;
if (visible && projectile.alpha > 0)
projectile.alpha -= 15;
if (projectile.ai[1] == 0f)
{
projectile.ai[1] = 1f;
Main.PlaySound(mod.GetLegacySoundSlot(SoundType.Custom, "Sounds/Custom/LeviathanRoarMeteor"), projectile.Center);
}
projectile.localAI[0] += 1f;
if (projectile.localAI[0] == 12f)
{
+3
View File
@@ -74,6 +74,9 @@ namespace CalamityMod.Projectiles.Ranged
int flames = Projectile.NewProjectile(projectile.Center, velocity, ModContent.ProjectileType<TotalityFire>(), (int)(projectile.damage * 0.3), 0f, projectile.owner, 0f, 0f);
Main.projectile[flames].Calamity().forceRanged = true;
Main.projectile[flames].penetrate = 3;
Main.projectile[flames].usesLocalNPCImmunity = false;
Main.projectile[flames].usesIDStaticNPCImmunity = true;
Main.projectile[flames].idStaticNPCHitCooldown = 10;
}
}
}
-138
View File
@@ -1,138 +0,0 @@
using CalamityMod.Buffs.DamageOverTime;
using Microsoft.Xna.Framework;
using Microsoft.Xna.Framework.Graphics;
using System;
using Terraria;
using Terraria.ID;
using Terraria.ModLoader;
namespace CalamityMod.Projectiles.Summon
{
public class GigaFlareFriendly : ModProjectile
{
public override void SetStaticDefaults()
{
DisplayName.SetDefault("Flare");
Main.projFrames[projectile.type] = 4;
}
public override void SetDefaults()
{
projectile.width = 20;
projectile.height = 20;
projectile.friendly = true;
projectile.penetrate = -1;
projectile.tileCollide = false;
projectile.usesLocalNPCImmunity = true;
projectile.localNPCHitCooldown = 4;
projectile.minion = true;
projectile.minionSlots = 0f;
projectile.timeLeft = 120;
}
public override void AI()
{
projectile.frameCounter++;
if (projectile.frameCounter > 4)
{
projectile.frame++;
projectile.frameCounter = 0;
}
if (projectile.frame > 3)
{
projectile.frame = 0;
}
Lighting.AddLight(projectile.Center, 1f, 0.7f, 0f);
float num472 = projectile.Center.X;
float num473 = projectile.Center.Y;
float num474 = 400f;
bool flag17 = false;
for (int num475 = 0; num475 < Main.maxNPCs; num475++)
{
if (Main.npc[num475].CanBeChasedBy(projectile, false) && Collision.CanHit(projectile.Center, 1, 1, Main.npc[num475].Center, 1, 1))
{
float num476 = Main.npc[num475].position.X + (float)(Main.npc[num475].width / 2);
float num477 = Main.npc[num475].position.Y + (float)(Main.npc[num475].height / 2);
float num478 = Math.Abs(projectile.position.X + (float)(projectile.width / 2) - num476) + Math.Abs(projectile.position.Y + (float)(projectile.height / 2) - num477);
if (num478 < num474)
{
num474 = num478;
num472 = num476;
num473 = num477;
flag17 = true;
}
}
}
if (flag17)
{
float num483 = 30f;
Vector2 vector35 = new Vector2(projectile.position.X + (float)projectile.width * 0.5f, projectile.position.Y + (float)projectile.height * 0.5f);
float num484 = num472 - vector35.X;
float num485 = num473 - vector35.Y;
float num486 = (float)Math.Sqrt((double)(num484 * num484 + num485 * num485));
num486 = num483 / num486;
num484 *= num486;
num485 *= num486;
projectile.velocity.X = (projectile.velocity.X * 20f + num484) / 21f;
projectile.velocity.Y = (projectile.velocity.Y * 20f + num485) / 21f;
return;
}
}
public override bool PreDraw(SpriteBatch spriteBatch, Color lightColor)
{
Texture2D texture2D13 = Main.projectileTexture[projectile.type];
int num214 = Main.projectileTexture[projectile.type].Height / Main.projFrames[projectile.type];
int y6 = num214 * projectile.frame;
Main.spriteBatch.Draw(texture2D13, projectile.Center - Main.screenPosition + new Vector2(0f, projectile.gfxOffY), new Microsoft.Xna.Framework.Rectangle?(new Rectangle(0, y6, texture2D13.Width, num214)), projectile.GetAlpha(lightColor), projectile.rotation, new Vector2((float)texture2D13.Width / 2f, (float)num214 / 2f), projectile.scale, SpriteEffects.None, 0f);
return false;
}
public override void Kill(int timeLeft)
{
float spread = 90f * 0.0174f;
double startAngle = Math.Atan2(projectile.velocity.X, projectile.velocity.Y) - spread / 2;
double deltaAngle = spread / 8f;
double offsetAngle;
if (projectile.owner == Main.myPlayer)
{
for (int i = 0; i < 2; i++)
{
offsetAngle = startAngle + deltaAngle * (i + i * i) / 2f + 32f * i;
Projectile.NewProjectile(projectile.Center.X, projectile.Center.Y, (float)(Math.Sin(offsetAngle) * 5f), (float)(Math.Cos(offsetAngle) * 5f), ModContent.ProjectileType<PhoenixFireFriendly>(), projectile.damage, projectile.knockBack, projectile.owner, 0f, 0f);
Projectile.NewProjectile(projectile.Center.X, projectile.Center.Y, (float)(-Math.Sin(offsetAngle) * 5f), (float)(-Math.Cos(offsetAngle) * 5f), ModContent.ProjectileType<PhoenixFireFriendly>(), projectile.damage, projectile.knockBack, projectile.owner, 0f, 0f);
}
}
Main.PlaySound(SoundID.Item14, projectile.position);
projectile.position.X = projectile.position.X + (float)(projectile.width / 2);
projectile.position.Y = projectile.position.Y + (float)(projectile.height / 2);
projectile.width = 100;
projectile.height = 100;
projectile.position.X = projectile.position.X - (float)(projectile.width / 2);
projectile.position.Y = projectile.position.Y - (float)(projectile.height / 2);
for (int num621 = 0; num621 < 20; num621++)
{
int num622 = Dust.NewDust(projectile.position, projectile.width, projectile.height, 244, 0f, 0f, 100, default, 2f);
Main.dust[num622].velocity *= 3f;
if (Main.rand.NextBool(2))
{
Main.dust[num622].scale = 0.5f;
Main.dust[num622].fadeIn = 1f + (float)Main.rand.Next(10) * 0.1f;
}
}
for (int num623 = 0; num623 < 35; num623++)
{
int num624 = Dust.NewDust(projectile.position, projectile.width, projectile.height, 244, 0f, 0f, 100, default, 3f);
Main.dust[num624].noGravity = true;
Main.dust[num624].velocity *= 5f;
num624 = Dust.NewDust(projectile.position, projectile.width, projectile.height, 244, 0f, 0f, 100, default, 2f);
Main.dust[num624].velocity *= 2f;
}
CalamityUtils.ExplosionGores(projectile.Center, 3);
}
public override void OnHitNPC(NPC target, int damage, float knockback, bool crit)
{
target.AddBuff(ModContent.BuffType<HolyFlames>(), 200);
}
}
}
Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.5 KiB

-90
View File
@@ -1,90 +0,0 @@
using CalamityMod.Buffs.DamageOverTime;
using Microsoft.Xna.Framework;
using System;
using Terraria;
using Terraria.ID;
using Terraria.ModLoader;
namespace CalamityMod.Projectiles.Summon
{
public class PhoenixFireFriendly : ModProjectile
{
public override void SetStaticDefaults()
{
DisplayName.SetDefault("Fire");
ProjectileID.Sets.MinionShot[projectile.type] = true;
}
public override void SetDefaults()
{
projectile.width = 6;
projectile.height = 6;
projectile.friendly = true;
projectile.penetrate = 1;
projectile.tileCollide = true;
projectile.minion = true;
projectile.minionSlots = 0f;
projectile.timeLeft = 200;
}
public override void AI()
{
projectile.localAI[0] += 1f;
if (projectile.localAI[0] > 4f)
{
for (int num468 = 0; num468 < 5; num468++)
{
int num469 = Dust.NewDust(new Vector2(projectile.position.X, projectile.position.Y), projectile.width, projectile.height, 244, 0f, 0f, 100, default, 1f);
Main.dust[num469].noGravity = true;
Main.dust[num469].velocity *= 0f;
}
}
float num472 = projectile.Center.X;
float num473 = projectile.Center.Y;
float num474 = 400f;
bool flag17 = false;
for (int num475 = 0; num475 < 200; num475++)
{
if (Main.npc[num475].CanBeChasedBy(projectile, false) && Collision.CanHit(projectile.Center, 1, 1, Main.npc[num475].Center, 1, 1))
{
float num476 = Main.npc[num475].position.X + (float)(Main.npc[num475].width / 2);
float num477 = Main.npc[num475].position.Y + (float)(Main.npc[num475].height / 2);
float num478 = Math.Abs(projectile.position.X + (float)(projectile.width / 2) - num476) + Math.Abs(projectile.position.Y + (float)(projectile.height / 2) - num477);
if (num478 < num474)
{
num474 = num478;
num472 = num476;
num473 = num477;
flag17 = true;
}
}
}
if (flag17)
{
float num483 = 30f;
Vector2 vector35 = new Vector2(projectile.position.X + (float)projectile.width * 0.5f, projectile.position.Y + (float)projectile.height * 0.5f);
float num484 = num472 - vector35.X;
float num485 = num473 - vector35.Y;
float num486 = (float)Math.Sqrt((double)(num484 * num484 + num485 * num485));
num486 = num483 / num486;
num484 *= num486;
num485 *= num486;
projectile.velocity.X = (projectile.velocity.X * 20f + num484) / 21f;
projectile.velocity.Y = (projectile.velocity.Y * 20f + num485) / 21f;
return;
}
}
public override void Kill(int timeLeft)
{
for (int k = 0; k < 5; k++)
{
Dust.NewDust(projectile.position + projectile.velocity, projectile.width, projectile.height, 244, projectile.oldVelocity.X * 0.5f, projectile.oldVelocity.Y * 0.5f);
}
}
public override void OnHitNPC(NPC target, int damage, float knockback, bool crit)
{
target.AddBuff(ModContent.BuffType<HolyFlames>(), 100);
}
}
}
Binary file not shown.

Before

Width:  |  Height:  |  Size: 136 B

+10 -14
View File
@@ -100,13 +100,7 @@ namespace CalamityMod.Schematics
chestInteraction?.Invoke(chest);
}
}
if (tile.type == ModContent.TileType<DraedonItemCharger>() ||
tile.type == ModContent.TileType<DraedonTurretTile>() ||
tile.type == ModContent.TileType<DraedonFactoryFieldGenerator>())
{
WorldGen.PlaceTile(x + xOffset, y + yOffset, tile.type);
}
else if (tile.type == TileID.Trees || tile.type == TileID.PineTree || tile.type == TileID.Cactus)
if (tile.type == TileID.Trees || tile.type == TileID.PineTree || tile.type == TileID.Cactus)
{
ushort oldWall = oldTiles[x, y].wall;
oldTiles[x, y] = new Tile
@@ -117,6 +111,10 @@ namespace CalamityMod.Schematics
else
{
Main.tile[x + xOffset, y + yOffset] = (Tile)SchematicTileConversion(oldTiles[x, y], tile, schematic[x, y].InternalColor).Clone();
// Temporary until the eldritch Tile Entity world corruption bug is killed.
if (Main.tile[x + xOffset, y + yOffset].type == ModContent.TileType<DraedonItemCharger>())
Main.tile[x + xOffset, y + yOffset].active(false);
}
Rectangle placeInArea = new Rectangle(x, y, schematic.GetLength(0), schematic.GetLength(1));
@@ -185,13 +183,7 @@ namespace CalamityMod.Schematics
specialCondition = true;
}
}
if (tile.type == ModContent.TileType<DraedonItemCharger>() ||
tile.type == ModContent.TileType<DraedonTurretTile>() ||
tile.type == ModContent.TileType<DraedonFactoryFieldGenerator>())
{
WorldGen.PlaceTile(x + xOffset, y + yOffset, tile.type);
}
else if (tile.type == TileID.Trees || tile.type == TileID.PineTree || tile.type == TileID.Cactus)
if (tile.type == TileID.Trees || tile.type == TileID.PineTree || tile.type == TileID.Cactus)
{
ushort oldWall = oldTiles[x, y].wall;
oldTiles[x, y] = new Tile
@@ -202,6 +194,10 @@ namespace CalamityMod.Schematics
else
{
Main.tile[x + xOffset, y + yOffset] = (Tile)SchematicTileConversion(oldTiles[x, y], tile, schematic[x, y].InternalColor).Clone();
// Temporary until the eldritch Tile Entity world corruption bug is killed.
if (Main.tile[x + xOffset, y + yOffset].type == ModContent.TileType<DraedonItemCharger>())
Main.tile[x + xOffset, y + yOffset].active(false);
}
Rectangle placeInArea = new Rectangle(x, y, schematic.GetLength(0), schematic.GetLength(1));
+1 -1
View File
@@ -66,7 +66,7 @@ namespace CalamityMod.TileEntities
{
var netMessage = CalamityMod.Instance.GetPacket();
netMessage.Write((byte)CalamityModMessageType.DraedonFieldGeneratorSync);
netMessage.Write(Main.LocalPlayer.Calamity().CurrentlyViewedCharger.ID);
netMessage.Write(ID);
netMessage.Write(Time);
netMessage.Write(ActiveTimer);
netMessage.Send();
Binary file not shown.

Before

Width:  |  Height:  |  Size: 12 KiB

+1
View File
@@ -20,6 +20,7 @@ namespace CalamityMod.Tiles
Main.tileWaterDeath[Type] = false;
TileObjectData.newTile.CopyFrom(TileObjectData.Style1x1);
TileObjectData.newTile.HookPostPlaceMyPlayer = new PlacementHook(ModContent.GetInstance<TEDraedonFieldGenerator>().Hook_AfterPlacement, -1, 0, true);
TileObjectData.newTile.LavaDeath = false;
TileObjectData.addTile(Type);
ModTranslation name = CreateMapEntryName();
name.SetDefault("Field Generator");
+1
View File
@@ -32,6 +32,7 @@ namespace CalamityMod.Tiles
TileObjectData.newTile.AnchorBottom = new AnchorData(AnchorType.SolidTile | AnchorType.SolidWithTop | AnchorType.SolidSide, TileObjectData.newTile.Width, 0);
TileObjectData.newTile.CoordinateHeights = new int[] { 16, 16, 16, 16 };
TileObjectData.newTile.HookPostPlaceMyPlayer = new PlacementHook(ModContent.GetInstance<TEDraedonFuelFactory>().Hook_AfterPlacement, -1, 0, true);
TileObjectData.newTile.LavaDeath = false;
TileObjectData.addTile(Type);
ModTranslation name = CreateMapEntryName();
name.SetDefault("Fuel Factory");
+1
View File
@@ -32,6 +32,7 @@ namespace CalamityMod.Tiles
TileObjectData.newTile.CoordinateHeights[i] = 16;
}
TileObjectData.newTile.HookPostPlaceMyPlayer = new PlacementHook(ModContent.GetInstance<TEDraedonHologram>().Hook_AfterPlacement, -1, 0, true);
TileObjectData.newTile.LavaDeath = false;
TileObjectData.addTile(Type);
animationFrameHeight = 112;
+2
View File
@@ -24,6 +24,7 @@ namespace CalamityMod.Tiles
Main.tileWaterDeath[Type] = false;
TileObjectData.newTile.CopyFrom(TileObjectData.Style3x2);
TileObjectData.newTile.HookPostPlaceMyPlayer = new PlacementHook(ModContent.GetInstance<TEDraedonItemCharger>().Hook_AfterPlacement, -1, 0, true);
TileObjectData.newTile.LavaDeath = false;
TileObjectData.addTile(Type);
ModTranslation name = CreateMapEntryName();
name.SetDefault("Item Charger");
@@ -42,6 +43,7 @@ namespace CalamityMod.Tiles
var factory = ModTileEntity.ConstructFromType(ModContent.TileEntityType<TEDraedonItemCharger>());
factory.Position = new Point16(left, top);
TileEntity.ByID[TileEntity.ByID.Count] = factory;
TileEntity.ByPosition[factory.Position] = factory;
}
return (TEDraedonItemCharger)TileEntity.ByID.Where(tileEntity => tileEntity.Value.Position == new Point16(left, top)).First().Value;
}
@@ -23,6 +23,7 @@ namespace CalamityMod.Tiles.DraedonStructures
TileObjectData.newTile.StyleWrapLimit = 2;
TileObjectData.newTile.StyleMultiplier = 2;
TileObjectData.newTile.StyleHorizontal = true;
TileObjectData.newTile.LavaDeath = false;
TileObjectData.newTile.Direction = TileObjectDirection.PlaceRight;
@@ -21,6 +21,7 @@ namespace CalamityMod.Tiles.DraedonStructures
TileObjectData.newTile.StyleWrapLimit = 2;
TileObjectData.newTile.StyleMultiplier = 2;
TileObjectData.newTile.StyleHorizontal = true;
TileObjectData.newTile.LavaDeath = false;
TileObjectData.newTile.Direction = TileObjectDirection.PlaceRight;
@@ -24,6 +24,7 @@ namespace CalamityMod.Tiles.DraedonStructures
TileObjectData.newTile.Origin = new Point16(0, 2);
TileObjectData.newTile.AnchorBottom = new AnchorData(AnchorType.SolidTile | AnchorType.SolidWithTop | AnchorType.SolidSide, TileObjectData.newTile.Width, 0);
TileObjectData.newTile.CoordinateHeights = new int[] { 16, 16, 16 };
TileObjectData.newTile.LavaDeath = false;
TileObjectData.addTile(Type);
ModTranslation name = CreateMapEntryName();
name.SetDefault("Aged Display");
@@ -31,6 +31,7 @@ namespace CalamityMod.Tiles.DraedonStructures
TileObjectData.newTile.AnchorTop = new AnchorData(AnchorType.SolidTile, TileObjectData.newTile.Width, 0);
TileObjectData.newTile.AnchorBottom = new AnchorData(AnchorType.SolidTile, TileObjectData.newTile.Width, 0);
TileObjectData.newTile.UsesCustomCanPlace = true;
TileObjectData.newTile.LavaDeath = false;
TileObjectData.addTile(Type);
AddToArray(ref TileID.Sets.RoomNeeds.CountsAsDoor);
@@ -31,6 +31,7 @@ namespace CalamityMod.Tiles.DraedonStructures
TileObjectData.newTile.AnchorTop = new AnchorData(AnchorType.SolidTile, TileObjectData.newTile.Width, 0);
TileObjectData.newTile.AnchorBottom = new AnchorData(AnchorType.SolidTile, TileObjectData.newTile.Width, 0);
TileObjectData.newTile.UsesCustomCanPlace = true;
TileObjectData.newTile.LavaDeath = false;
TileObjectData.addTile(Type);
AddToArray(ref TileID.Sets.RoomNeeds.CountsAsDoor);
@@ -20,6 +20,7 @@ namespace CalamityMod.Tiles.DraedonStructures
TileObjectData.newTile.StyleWrapLimit = 2;
TileObjectData.newTile.StyleMultiplier = 2;
TileObjectData.newTile.StyleHorizontal = true;
TileObjectData.newTile.LavaDeath = false;
TileObjectData.newTile.Direction = TileObjectDirection.PlaceRight;
@@ -16,6 +16,7 @@ namespace CalamityMod.Tiles.DraedonStructures
TileObjectData.newTile.CopyFrom(TileObjectData.Style3x3Wall);
TileObjectData.newTile.Height = 2;
TileObjectData.newTile.CoordinateHeights = new[] { 16, 16 };
TileObjectData.newTile.LavaDeath = false;
TileObjectData.addTile(Type);
ModTranslation name = CreateMapEntryName();
@@ -23,6 +23,7 @@ namespace CalamityMod.Tiles.DraedonStructures
TileObjectData.newTile.StyleWrapLimit = 2;
TileObjectData.newTile.StyleMultiplier = 2;
TileObjectData.newTile.StyleHorizontal = true;
TileObjectData.newTile.LavaDeath = false;
TileObjectData.newTile.Direction = TileObjectDirection.PlaceRight;
@@ -23,6 +23,7 @@ namespace CalamityMod.Tiles.DraedonStructures
TileObjectData.newTile.Origin = new Point16(0, 2);
TileObjectData.newTile.AnchorBottom = new AnchorData(AnchorType.SolidTile | AnchorType.SolidWithTop | AnchorType.SolidSide, TileObjectData.newTile.Width, 0);
TileObjectData.newTile.CoordinateHeights = new int[] { 16, 16, 16 };
TileObjectData.newTile.LavaDeath = false;
TileObjectData.newTile.StyleWrapLimit = 2;
TileObjectData.newTile.StyleMultiplier = 2;
@@ -18,6 +18,7 @@ namespace CalamityMod.Tiles.DraedonStructures
Main.tileWaterDeath[Type] = false;
Main.tileSolidTop[Type] = true;
TileObjectData.newTile.CopyFrom(TileObjectData.Style2x2);
TileObjectData.newTile.LavaDeath = false;
TileObjectData.addTile(Type);
ModTranslation name = CreateMapEntryName();
name.SetDefault("Aged Reinforced Crate");
@@ -23,6 +23,7 @@ namespace CalamityMod.Tiles.DraedonStructures
TileObjectData.newTile.StyleWrapLimit = 2;
TileObjectData.newTile.StyleMultiplier = 2;
TileObjectData.newTile.StyleHorizontal = true;
TileObjectData.newTile.LavaDeath = false;
TileObjectData.newTile.Direction = TileObjectDirection.PlaceRight;
@@ -21,6 +21,7 @@ namespace CalamityMod.Tiles.DraedonStructures
TileObjectData.newTile.StyleWrapLimit = 2;
TileObjectData.newTile.StyleMultiplier = 2;
TileObjectData.newTile.StyleHorizontal = true;
TileObjectData.newTile.LavaDeath = false;
TileObjectData.newTile.Direction = TileObjectDirection.PlaceRight;
@@ -27,6 +27,7 @@ namespace CalamityMod.Tiles.DraedonStructures
TileObjectData.newTile.StyleWrapLimit = 2;
TileObjectData.newTile.StyleMultiplier = 2;
TileObjectData.newTile.StyleHorizontal = true;
TileObjectData.newTile.LavaDeath = false;
TileObjectData.newTile.Direction = TileObjectDirection.PlaceRight;
@@ -31,6 +31,7 @@ namespace CalamityMod.Tiles.DraedonStructures
TileObjectData.newTile.AnchorTop = new AnchorData(AnchorType.SolidTile, TileObjectData.newTile.Width, 0);
TileObjectData.newTile.AnchorBottom = new AnchorData(AnchorType.SolidTile, TileObjectData.newTile.Width, 0);
TileObjectData.newTile.UsesCustomCanPlace = true;
TileObjectData.newTile.LavaDeath = false;
TileObjectData.addTile(Type);
AddToArray(ref TileID.Sets.RoomNeeds.CountsAsDoor);
@@ -31,6 +31,7 @@ namespace CalamityMod.Tiles.DraedonStructures
TileObjectData.newTile.AnchorTop = new AnchorData(AnchorType.SolidTile, TileObjectData.newTile.Width, 0);
TileObjectData.newTile.AnchorBottom = new AnchorData(AnchorType.SolidTile, TileObjectData.newTile.Width, 0);
TileObjectData.newTile.UsesCustomCanPlace = true;
TileObjectData.newTile.LavaDeath = false;
TileObjectData.addTile(Type);
AddToArray(ref TileID.Sets.RoomNeeds.CountsAsDoor);
@@ -20,6 +20,7 @@ namespace CalamityMod.Tiles.DraedonStructures
TileObjectData.newTile.StyleWrapLimit = 2;
TileObjectData.newTile.StyleMultiplier = 2;
TileObjectData.newTile.StyleHorizontal = true;
TileObjectData.newTile.LavaDeath = false;
TileObjectData.newTile.Direction = TileObjectDirection.PlaceRight;
@@ -17,6 +17,7 @@ namespace CalamityMod.Tiles.DraedonStructures
TileObjectData.newTile.CopyFrom(TileObjectData.Style3x3Wall);
TileObjectData.newTile.Height = 2;
TileObjectData.newTile.CoordinateHeights = new[] { 16, 16 };
TileObjectData.newTile.LavaDeath = false;
TileObjectData.addTile(Type);
ModTranslation name = CreateMapEntryName();
@@ -23,6 +23,7 @@ namespace CalamityMod.Tiles.DraedonStructures
TileObjectData.newTile.StyleWrapLimit = 2;
TileObjectData.newTile.StyleMultiplier = 2;
TileObjectData.newTile.StyleHorizontal = true;
TileObjectData.newTile.LavaDeath = false;
TileObjectData.newTile.Direction = TileObjectDirection.PlaceRight;
@@ -27,6 +27,7 @@ namespace CalamityMod.Tiles.DraedonStructures
TileObjectData.newTile.StyleWrapLimit = 2;
TileObjectData.newTile.StyleMultiplier = 2;
TileObjectData.newTile.StyleHorizontal = true;
TileObjectData.newTile.LavaDeath = false;
TileObjectData.newTile.Direction = TileObjectDirection.PlaceRight;
@@ -18,6 +18,7 @@ namespace CalamityMod.Tiles.DraedonStructures
Main.tileWaterDeath[Type] = false;
Main.tileSolidTop[Type] = true;
TileObjectData.newTile.CopyFrom(TileObjectData.Style2x2);
TileObjectData.newTile.LavaDeath = false;
TileObjectData.addTile(Type);
ModTranslation name = CreateMapEntryName();
name.SetDefault("Reinforced Crate");
+1
View File
@@ -23,6 +23,7 @@ namespace CalamityMod.Tiles
Main.tileWaterDeath[Type] = false;
TileObjectData.newTile.CopyFrom(TileObjectData.Style3x2);
TileObjectData.newTile.HookPostPlaceMyPlayer = new PlacementHook(ModContent.GetInstance<TEDraedonTurret>().Hook_AfterPlacement, -1, 0, true);
TileObjectData.newTile.LavaDeath = false;
TileObjectData.addTile(Type);
ModTranslation name = CreateMapEntryName();
name.SetDefault("Turret");
+1
View File
@@ -25,6 +25,7 @@ namespace CalamityMod.Tiles
TileObjectData.newTile.AnchorBottom = new AnchorData(AnchorType.SolidTile | AnchorType.SolidWithTop | AnchorType.SolidSide, TileObjectData.newTile.Width, 0);
TileObjectData.newTile.CoordinateHeights = new int[] { 16, 16, 16, 16 };
TileObjectData.newTile.CoordinatePadding = 0;
TileObjectData.newTile.LavaDeath = false;
TileObjectData.addTile(Type);
ModTranslation name = CreateMapEntryName();
name.SetDefault("Inactive Fuel Factory");
Binary file not shown.

Before

Width:  |  Height:  |  Size: 79 KiB

After

Width:  |  Height:  |  Size: 55 KiB

+6
View File
@@ -1,5 +1,6 @@
using CalamityMod.Items.DraedonMisc;
using CalamityMod.Items.Materials;
using CalamityMod.Items.Placeables;
using CalamityMod.Items.Weapons.Melee;
using CalamityMod.Schematics;
using CalamityMod.Tiles;
@@ -188,6 +189,7 @@ namespace CalamityMod.World
{
new ChestItem(ModContent.ItemType<DubiousPlating>(), WorldGen.genRand.Next(8, 14 + 1)),
new ChestItem(ModContent.ItemType<MysteriousCircuitry>(), WorldGen.genRand.Next(7, 12 + 1)),
new ChestItem(ModContent.ItemType<DraedonsChargingStation>(), WorldGen.genRand.Next(2, 3 + 1)),
new ChestItem(ItemID.Torch, WorldGen.genRand.Next(15, 29 + 1)),
new ChestItem(ItemID.GoldCoin, WorldGen.genRand.Next(5, 11 + 1)),
new ChestItem(ItemID.HealingPotion, WorldGen.genRand.Next(5, 7 + 1)),
@@ -260,6 +262,7 @@ namespace CalamityMod.World
{
new ChestItem(ModContent.ItemType<DubiousPlating>(), WorldGen.genRand.Next(8, 14 + 1)),
new ChestItem(ModContent.ItemType<MysteriousCircuitry>(), WorldGen.genRand.Next(7, 12 + 1)),
new ChestItem(ModContent.ItemType<DraedonsChargingStation>(), WorldGen.genRand.Next(2, 3 + 1)),
new ChestItem(ItemID.Torch, WorldGen.genRand.Next(15, 29 + 1)),
new ChestItem(ItemID.GoldCoin, WorldGen.genRand.Next(5, 11 + 1)),
new ChestItem(ItemID.HealingPotion, WorldGen.genRand.Next(5, 7 + 1)),
@@ -327,6 +330,7 @@ namespace CalamityMod.World
{
new ChestItem(ModContent.ItemType<DubiousPlating>(), WorldGen.genRand.Next(8, 14 + 1)),
new ChestItem(ModContent.ItemType<MysteriousCircuitry>(), WorldGen.genRand.Next(7, 12 + 1)),
new ChestItem(ModContent.ItemType<DraedonsChargingStation>(), WorldGen.genRand.Next(2, 3 + 1)),
new ChestItem(ItemID.Torch, WorldGen.genRand.Next(15, 29 + 1)),
new ChestItem(ItemID.GoldCoin, WorldGen.genRand.Next(5, 11 + 1)),
new ChestItem(ItemID.HealingPotion, WorldGen.genRand.Next(5, 7 + 1)),
@@ -409,6 +413,7 @@ namespace CalamityMod.World
{
new ChestItem(ModContent.ItemType<DubiousPlating>(), WorldGen.genRand.Next(8, 14 + 1)),
new ChestItem(ModContent.ItemType<MysteriousCircuitry>(), WorldGen.genRand.Next(7, 12 + 1)),
new ChestItem(ModContent.ItemType<DraedonsChargingStation>(), WorldGen.genRand.Next(2, 3 + 1)),
new ChestItem(ItemID.Torch, WorldGen.genRand.Next(15, 29 + 1)),
new ChestItem(ItemID.GoldCoin, WorldGen.genRand.Next(5, 11 + 1)),
new ChestItem(ItemID.HealingPotion, WorldGen.genRand.Next(5, 7 + 1)),
@@ -487,6 +492,7 @@ namespace CalamityMod.World
{
new ChestItem(ModContent.ItemType<DubiousPlating>(), WorldGen.genRand.Next(8, 14 + 1)),
new ChestItem(ModContent.ItemType<MysteriousCircuitry>(), WorldGen.genRand.Next(7, 12 + 1)),
new ChestItem(ModContent.ItemType<DraedonsChargingStation>(), WorldGen.genRand.Next(2, 3 + 1)),
new ChestItem(ItemID.HerbBag, WorldGen.genRand.Next(12, 17 + 1)),
new ChestItem(ItemID.CorruptPlanterBox, WorldGen.genRand.Next(5, 9 + 1)),
new ChestItem(ItemID.DayBloomPlanterBox, WorldGen.genRand.Next(5, 9 + 1)),