Tile Map Entries cleanup (part 1)
-Added many entries into "Localization/en-US/Tiles.hjson" **Note: "Localization/en-US/Mods.CalamityMod.hjson" currently has duplicates for some Map Entries. -Added Utilities/LocalizationUtils.cs , contains a few helper methods for getting Localized Text instances. -Updated many Tiles to utilize existing localization values. **Note: Some tiles may now have altered names, due to their Tile names not matching with their item names previously. (Most notably, Altar of the Accursed) -Updated Pylons to re-use the text entry from their Item
This commit is contained in:
1 parent
aa8b1c69ab
commit
c1b47d5a60
110 files changed
+290
-334
No files matched your search
@@ -0,0 +1,106 @@
|
||||
Mods: {
|
||||
CalamityMod: {
|
||||
Tiles: {
|
||||
/* Common Entries shared by multiple tiles */
|
||||
Fossil: Fossil
|
||||
Column: Column
|
||||
Ribs: Ribs
|
||||
Stalagmite: Stalagmite
|
||||
Stalactite: Stalactite
|
||||
|
||||
/* Individual Tile entries */
|
||||
/* Sulphurous Sea / Abyss */
|
||||
SulphurousVines.MapEntry: Sulphurous Vines
|
||||
ViperVines.MapEntry: Viper Vines
|
||||
SteamGeyser.MapEntry: Geyser
|
||||
AbyssVent.MapEntry: Steam Vent
|
||||
ThermalVent.MapEntry: Thermal Vent
|
||||
PirateCrate.MapEntry: Abandoned Crate
|
||||
|
||||
/* Astral */
|
||||
ArenaTile.MapEntry: Arena
|
||||
AstralBeacon.MapEntry: Astral Beacon
|
||||
AstralChestLocked: {
|
||||
MapEntry0: "{$ItemName.AstralChest}"
|
||||
MapEntry1: "Locked Astral Chest"
|
||||
}
|
||||
AstralVines.MapEntry: Astral Vines
|
||||
CelestialRemains.MapEntry: Celestial Remains
|
||||
|
||||
/* Brimstone Crags */
|
||||
BrimstoneSlab.MapEntry: Brimstone Slab
|
||||
SpineSapling.MapEntry: Spine Sapling
|
||||
SpineTree.MapEntry: Giant Spine
|
||||
|
||||
/* Draedon */
|
||||
AgedLaboratoryConsole.MapEntry: Aged Console
|
||||
AgedLaboratoryContainmentBox.MapEntry: Aged Laboratory Containment Box
|
||||
AgedLaboratoryDisplay.MapEntry: Aged Display
|
||||
AgedLaboratoryDoorClosed.MapEntry: Laboratory Door
|
||||
AgedLaboratoryDoorOpen.MapEntry: Laboratory Door
|
||||
AgedLaboratoryElectricPanel.MapEntry: Aged Electric Panel
|
||||
AgedLaboratoryScreen.MapEntry: Aged Screen
|
||||
AgedLaboratoryServer.MapEntry: Aged Server
|
||||
AgedLaboratoryTerminal.MapEntry: Aged Terminal
|
||||
AgedReinforcedCrate.MapEntry: Aged Reinforced Crate
|
||||
AgedSecurityChestTile.MapEntry: Aged Security Chest
|
||||
ChargingStation.MapEntry: Charging Station
|
||||
DraedonLabTurret.MapEntry: Lab Turret
|
||||
InactivePowerCellFactory.MapEntry: Inactive Power Cell Factory
|
||||
LabHologramProjector.MapEntry: Lab Hologram Projector
|
||||
LaboratoryConsole.MapEntry: Console
|
||||
LaboratoryContainmentBox.MapEntry: Laboratory Containment Box
|
||||
LaboratoryDisplay.MapEntry: Display
|
||||
LaboratoryDoorClosed.MapEntry: Laboratory Door
|
||||
LaboratoryDoorOpen.MapEntry: Laboratory Door
|
||||
LaboratoryElectricPanel.MapEntry: Electric Panel
|
||||
LaboratoryScreen.MapEntry: Screen
|
||||
LaboratoryServer.MapEntry: Server
|
||||
LaboratoryTerminal.MapEntry: Terminal
|
||||
OnyxExcavatorTile.MapEntry: Onyx Excavator
|
||||
PowerCellFactory.MapEntry: Power Cell Factory
|
||||
ReinforcedCrate.MapEntry: Reinforced Crate
|
||||
SecurityChestTile.MapEntry: Security Chest
|
||||
CodebreakerTile.MapEntry: The Codebreaker
|
||||
|
||||
/* Sunken Sea */
|
||||
SeaPrismCrystals.MapEntry: Sea Prism Crystal
|
||||
|
||||
/* Ores */
|
||||
AerialiteOre.MapEntry: Aerialite
|
||||
AerialiteOreDisenchanted.MapEntry: Disenchanted Aerialite
|
||||
AstralOre.MapEntry: Astral Ore
|
||||
AuricOre.MapEntry: Auric
|
||||
CryonicOre.MapEntry: Cryonic
|
||||
ExodiumOre.MapEntry: Exodium
|
||||
HallowedOre.MapEntry: Hallowed Ore
|
||||
InfernalSuevite.MapEntry: Infernal Suevite
|
||||
PerennialOre.MapEntry: Perennial
|
||||
ScoriaOre.MapEntry: Scoria
|
||||
UelibloomOre.MapEntry: Uelibloom
|
||||
|
||||
/* Misc */
|
||||
AncientAltar.MapEntry: Ancient Altar
|
||||
AshenAltar.MapEntry: Ashen Altar
|
||||
BotanicPlanter.MapEntry: Botanic Planter
|
||||
CosmicAnvil.MapEntry: Cosmic Anvil
|
||||
DraedonsForge.MapEntry: Draedon's Forge
|
||||
EutrophicShelf.MapEntry: Eutrophic Shelf
|
||||
MonolithAmalgam.MapEntry: Monolith Amalgam
|
||||
PlagueInfuser.MapEntry: Plague Infuser
|
||||
ProfanedCrucible.MapEntry: Profaned Crucible
|
||||
SCalAltar.MapEntry: Altar
|
||||
SilvaBasin.MapEntry: Effulgent Manipulator
|
||||
StaticRefiner.MapEntry: Static Refiner
|
||||
VoidCondenser.MapEntry: Void Condenser
|
||||
WulfrumLabstation.MapEntry: Wulfrum Labstation
|
||||
ThankYouPaintingTile.MapEntry: Thank You Painting
|
||||
AstralPylonTile.MapEntry: "{$Mods.CalamityMod.ItemName.AstralPylon}"
|
||||
CragsPylonTile.MapEntry: "{$Mods.CalamityMod.ItemName.CragsPylon}"
|
||||
SulphurPylonTile.MapEntry: "{$Mods.CalamityMod.ItemName.SulphurPylon}"
|
||||
SunkenPylonTile.MapEntry: "{$Mods.CalamityMod.ItemName.SunkenPylon}"
|
||||
|
||||
/* TODO: Make all furniture tiles use common MapObject/ItemName entries instead of registering their own indivdual entries */
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -21,9 +21,7 @@ namespace CalamityMod.Tiles.Abyss.AbyssAmbient
|
||||
Main.tileNoAttach[Type] = true;
|
||||
TileObjectData.newTile.CopyFrom(TileObjectData.Style2x2);
|
||||
TileObjectData.addTile(Type);
|
||||
LocalizedText name = CreateMapEntryName();
|
||||
// name.SetDefault("Steam Vent");
|
||||
AddMapEntry(new Color(106, 80, 102), name);
|
||||
AddMapEntry(new Color(106, 80, 102), CreateMapEntryName());
|
||||
DustType = 33;
|
||||
|
||||
base.SetStaticDefaults();
|
||||
|
||||
@@ -25,9 +25,7 @@ namespace CalamityMod.Tiles.Abyss.AbyssAmbient
|
||||
TileObjectData.newTile.DrawYOffset = 2;
|
||||
TileObjectData.newTile.CopyFrom(TileObjectData.Style2x2);
|
||||
TileObjectData.addTile(Type);
|
||||
LocalizedText name = CreateMapEntryName();
|
||||
// name.SetDefault("Abandoned Crate");
|
||||
AddMapEntry(new Color(97, 69, 52), name);
|
||||
AddMapEntry(new Color(97, 69, 52), CreateMapEntryName());
|
||||
DustType = DustID.WoodFurniture;
|
||||
HitSound = MineSound;
|
||||
|
||||
|
||||
@@ -31,9 +31,7 @@ namespace CalamityMod.Tiles.Abyss.AbyssAmbient
|
||||
TileObjectData.newTile.LavaDeath = true;
|
||||
TileObjectData.newTile.DrawYOffset = 2;
|
||||
TileObjectData.addTile(Type);
|
||||
LocalizedText name = CreateMapEntryName();
|
||||
// name.SetDefault("Thermal Vent");
|
||||
AddMapEntry(new Color(132, 56, 42), name);
|
||||
AddMapEntry(new Color(132, 56, 42), CreateMapEntryName());
|
||||
DustType = 162;
|
||||
|
||||
base.SetStaticDefaults();
|
||||
|
||||
@@ -1,8 +1,6 @@
|
||||
using CalamityMod.Items.Fishing.SulphurCatches;
|
||||
using CalamityMod.Items.Pets;
|
||||
using Microsoft.Xna.Framework;
|
||||
using Terraria;
|
||||
using Terraria.DataStructures;
|
||||
using Terraria.Localization;
|
||||
using Terraria.ModLoader;
|
||||
using Terraria.ObjectData;
|
||||
|
||||
@@ -17,12 +15,10 @@ namespace CalamityMod.Tiles.Abyss
|
||||
Main.tileWaterDeath[Type] = false;
|
||||
TileObjectData.newTile.CopyFrom(TileObjectData.Style3x2);
|
||||
TileObjectData.addTile(Type);
|
||||
LocalizedText name = CreateMapEntryName();
|
||||
// name.SetDefault("Abyss Shell Fossil");
|
||||
AddMapEntry(new Color(29, 37, 58), name);
|
||||
AddMapEntry(new Color(29, 37, 58), CalamityUtils.GetItemName<AbyssShellFossil>());
|
||||
DustType = 33;
|
||||
|
||||
ItemDrop = ModContent.ItemType<Items.Pets.AbyssShellFossil>();
|
||||
ItemDrop = ModContent.ItemType<AbyssShellFossil>();
|
||||
}
|
||||
|
||||
public override void NumDust(int i, int j, bool fail, ref int num)
|
||||
|
||||
@@ -1,11 +1,7 @@
|
||||
using Terraria;
|
||||
using Terraria.ID;
|
||||
using Terraria.ModLoader;
|
||||
using Terraria.ObjectData;
|
||||
using Terraria.DataStructures;
|
||||
using Terraria.Enums;
|
||||
using Terraria.Localization;
|
||||
using Terraria.Audio;
|
||||
using Terraria.GameContent.ObjectInteractions;
|
||||
using Microsoft.Xna.Framework;
|
||||
|
||||
@@ -16,15 +12,14 @@ namespace CalamityMod.Tiles.Abyss
|
||||
public override void SetStaticDefaults()
|
||||
{
|
||||
this.SetUpChest();
|
||||
LocalizedText name = CreateMapEntryName();
|
||||
AddMapEntry(new Color(71, 49, 41), name, MapChestName);
|
||||
AddMapEntry(new Color(71, 49, 41), CalamityUtils.GetItemName<Items.Placeables.Furniture.AbyssTreasureChest>(), CalamityUtils.GetMapChestName);
|
||||
TileID.Sets.DisableSmartCursor[Type] = true;
|
||||
AdjTiles = new int[] { TileID.Containers };
|
||||
DustType = 33;
|
||||
HitSound = SoundID.Dig;
|
||||
}
|
||||
|
||||
public override LocalizedText DefaultContainerName(int frameX, int frameY) => CreateMapEntryName();
|
||||
public override LocalizedText DefaultContainerName(int frameX, int frameY) => CalamityUtils.GetItemName<Items.Placeables.Furniture.AbyssTreasureChest>();
|
||||
|
||||
public override bool HasSmartInteract(int i, int j, SmartInteractScanSettings settings) => true;
|
||||
|
||||
@@ -35,8 +30,6 @@ namespace CalamityMod.Tiles.Abyss
|
||||
return true;
|
||||
}
|
||||
|
||||
public string MapChestName(string name, int i, int j) => CalamityUtils.GetMapChestName(name, i, j);
|
||||
|
||||
public override void NumDust(int i, int j, bool fail, ref int num)
|
||||
{
|
||||
num = 1;
|
||||
|
||||
@@ -24,9 +24,7 @@ namespace CalamityMod.Tiles.Abyss
|
||||
TileObjectData.newTile.DrawYOffset = 2;
|
||||
TileObjectData.newTile.CopyFrom(TileObjectData.Style2x2);
|
||||
TileObjectData.addTile(Type);
|
||||
LocalizedText name = CreateMapEntryName();
|
||||
// name.SetDefault("Pot");
|
||||
AddMapEntry(new Color(47, 79, 79), name); //dark slate gray
|
||||
AddMapEntry(new Color(47, 79, 79), Language.GetText("MapObject.Pot")); // dark slate gray
|
||||
DustType = 29;
|
||||
HitSound = SoundID.Shatter;
|
||||
}
|
||||
|
||||
@@ -67,9 +67,7 @@ namespace CalamityMod.Tiles.Abyss
|
||||
else if (Main.rand.NextBool(12))
|
||||
{
|
||||
createLeaves = true;
|
||||
int dropItem = 0;
|
||||
WorldGen.KillTile_GetItemDrops(x, y, Main.tile[x, y], out dropItem, out int _, out int _, out int _);
|
||||
Item.NewItem(WorldGen.GetItemSource_FromTreeShake(x, y), x * 16, y * 16, 16, 16, dropItem, Main.rand.Next(1, 4));
|
||||
Item.NewItem(WorldGen.GetItemSource_FromTreeShake(x, y), x * 16, y * 16, 16, 16, DropWood(), Main.rand.Next(1, 4));
|
||||
}
|
||||
else if (Main.rand.NextBool(20))
|
||||
{
|
||||
|
||||
@@ -42,9 +42,7 @@ namespace CalamityMod.Tiles.Abyss
|
||||
TileObjectData.newTile.LavaDeath = true;
|
||||
TileObjectData.newTile.RandomStyleRange = 3;
|
||||
TileObjectData.addTile(Type);
|
||||
LocalizedText name = CreateMapEntryName();
|
||||
// name.SetDefault("MapObject.Sapling");
|
||||
AddMapEntry(new Color(113, 90, 71), name);
|
||||
AddMapEntry(new Color(113, 90, 71), Language.GetText("MapObject.Sapling"));
|
||||
DustType = (int)CalamityDusts.SulfurousSeaAcid;
|
||||
AdjTiles = new int[] { TileID.Saplings };
|
||||
}
|
||||
|
||||
@@ -15,10 +15,8 @@ namespace CalamityMod.Tiles.Abyss
|
||||
Main.tileNoFail[Type] = true;
|
||||
Main.tileFrameImportant[Type] = true;
|
||||
Main.tileObsidianKill[Type] = true;
|
||||
LocalizedText name = CreateMapEntryName();
|
||||
// name.SetDefault("Lumenyl");
|
||||
AddToArray(ref TileID.Sets.RoomNeeds.CountsAsTorch);
|
||||
AddMapEntry(new Color(0, 150, 200), name);
|
||||
AddMapEntry(new Color(0, 150, 200), CalamityUtils.GetItemName<Lumenyl>());
|
||||
HitSound = SoundID.Item27;
|
||||
DustType = 67;
|
||||
ItemDrop = ModContent.ItemType<Lumenyl>();
|
||||
|
||||
@@ -32,7 +32,7 @@ namespace CalamityMod.Tiles.Abyss
|
||||
ItemDrop = ModContent.ItemType<Items.Placeables.PlantyMush>();
|
||||
LocalizedText name = CreateMapEntryName();
|
||||
// name.SetDefault("Planty Mush");
|
||||
AddMapEntry(new Color(84, 102, 39), name);
|
||||
AddMapEntry(new Color(84, 102, 39), CalamityUtils.GetItemName<Items.Placeables.PlantyMush>());
|
||||
MineResist = 1f;
|
||||
HitSound = MineSound;
|
||||
|
||||
|
||||
@@ -15,12 +15,12 @@ namespace CalamityMod.Tiles.Abyss
|
||||
{
|
||||
this.SetUpChest();
|
||||
LocalizedText name = CreateMapEntryName();
|
||||
AddMapEntry(new Color(113, 90, 71), name, MapChestName);
|
||||
AddMapEntry(new Color(113, 90, 71), CalamityUtils.GetItemName<RustyChest>(), CalamityUtils.GetMapChestName);
|
||||
TileID.Sets.DisableSmartCursor[Type] = true;
|
||||
AdjTiles = new int[] { TileID.Containers };
|
||||
}
|
||||
|
||||
public override LocalizedText DefaultContainerName(int frameX, int frameY) => CreateMapEntryName();
|
||||
public override LocalizedText DefaultContainerName(int frameX, int frameY) => CalamityUtils.GetItemName<RustyChest>();
|
||||
|
||||
public override bool CreateDust(int i, int j, ref int type)
|
||||
{
|
||||
@@ -30,8 +30,6 @@ namespace CalamityMod.Tiles.Abyss
|
||||
|
||||
public override bool HasSmartInteract(int i, int j, SmartInteractScanSettings settings) => true;
|
||||
|
||||
public string MapChestName(string name, int i, int j) => CalamityUtils.GetMapChestName(name, i, j);
|
||||
|
||||
public override void NumDust(int i, int j, bool fail, ref int num)
|
||||
{
|
||||
num = fail ? 1 : 3;
|
||||
|
||||
@@ -30,9 +30,7 @@ namespace CalamityMod.Tiles.Abyss.Stalactite
|
||||
TileObjectData.newTile.LavaDeath = true;
|
||||
TileObjectData.newTile.DrawYOffset = 2;
|
||||
TileObjectData.addTile(Type);
|
||||
LocalizedText name = CreateMapEntryName();
|
||||
// name.SetDefault("Stalacmite");
|
||||
AddMapEntry(new Color(57, 48, 83), name);
|
||||
AddMapEntry(new Color(57, 48, 83), CalamityUtils.GetText("Tiles.Stalagmite"));
|
||||
DustType = (int)CalamityDusts.SulfurousSeaAcid;
|
||||
|
||||
base.SetStaticDefaults();
|
||||
|
||||
@@ -30,9 +30,7 @@ namespace CalamityMod.Tiles.Abyss.Stalactite
|
||||
TileObjectData.newTile.LavaDeath = true;
|
||||
TileObjectData.newTile.DrawYOffset = 2;
|
||||
TileObjectData.addTile(Type);
|
||||
LocalizedText name = CreateMapEntryName();
|
||||
// name.SetDefault("Stalacmite");
|
||||
AddMapEntry(new Color(57, 48, 83), name);
|
||||
AddMapEntry(new Color(57, 48, 83), CalamityUtils.GetText("Tiles.Stalagmite"));
|
||||
DustType = (int)CalamityDusts.SulfurousSeaAcid;
|
||||
|
||||
base.SetStaticDefaults();
|
||||
|
||||
@@ -31,9 +31,7 @@ namespace CalamityMod.Tiles.Abyss.Stalactite
|
||||
TileObjectData.newTile.LavaDeath = true;
|
||||
TileObjectData.newTile.DrawYOffset = 2;
|
||||
TileObjectData.addTile(Type);
|
||||
LocalizedText name = CreateMapEntryName();
|
||||
// name.SetDefault("Stalacmite");
|
||||
AddMapEntry(new Color(57, 48, 83), name);
|
||||
AddMapEntry(new Color(57, 48, 83), CalamityUtils.GetText("Tiles.Stalagmite"));
|
||||
DustType = (int)CalamityDusts.SulfurousSeaAcid;
|
||||
|
||||
base.SetStaticDefaults();
|
||||
|
||||
@@ -31,9 +31,7 @@ namespace CalamityMod.Tiles.Abyss.Stalactite
|
||||
TileObjectData.newTile.LavaDeath = true;
|
||||
TileObjectData.newTile.DrawYOffset = 2;
|
||||
TileObjectData.addTile(Type);
|
||||
LocalizedText name = CreateMapEntryName();
|
||||
// name.SetDefault("Stalacmite");
|
||||
AddMapEntry(new Color(57, 48, 83), name);
|
||||
AddMapEntry(new Color(57, 48, 83), CalamityUtils.GetText("Tiles.Stalagmite"));
|
||||
DustType = (int)CalamityDusts.SulfurousSeaAcid;
|
||||
|
||||
base.SetStaticDefaults();
|
||||
|
||||
@@ -32,9 +32,7 @@ namespace CalamityMod.Tiles.Abyss.Stalactite
|
||||
TileObjectData.newTile.LavaDeath = true;
|
||||
TileObjectData.newTile.DrawYOffset = 2;
|
||||
TileObjectData.addTile(Type);
|
||||
LocalizedText name = CreateMapEntryName();
|
||||
// name.SetDefault("Stalacmite");
|
||||
AddMapEntry(new Color(57, 48, 83), name);
|
||||
AddMapEntry(new Color(57, 48, 83), CalamityUtils.GetText("Tiles.Stalagmite"));
|
||||
DustType = (int)CalamityDusts.SulfurousSeaAcid;
|
||||
|
||||
base.SetStaticDefaults();
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
using CalamityMod.Dusts;
|
||||
using CalamityMod.Dusts;
|
||||
using Microsoft.Xna.Framework;
|
||||
using Terraria;
|
||||
using Terraria.DataStructures;
|
||||
@@ -32,9 +32,7 @@ namespace CalamityMod.Tiles.Abyss.Stalactite
|
||||
TileObjectData.newTile.LavaDeath = true;
|
||||
TileObjectData.newTile.DrawYOffset = 2;
|
||||
TileObjectData.addTile(Type);
|
||||
LocalizedText name = CreateMapEntryName();
|
||||
// name.SetDefault("Stalacmite");
|
||||
AddMapEntry(new Color(57, 48, 83), name);
|
||||
AddMapEntry(new Color(57, 48, 83), CalamityUtils.GetText("Tiles.Stalagmite"));
|
||||
DustType = (int)CalamityDusts.SulfurousSeaAcid;
|
||||
|
||||
base.SetStaticDefaults();
|
||||
|
||||
@@ -30,9 +30,7 @@ namespace CalamityMod.Tiles.Abyss.Stalactite
|
||||
TileObjectData.newTile.LavaDeath = true;
|
||||
TileObjectData.newTile.DrawYOffset = -2;
|
||||
TileObjectData.addTile(Type);
|
||||
LocalizedText name = CreateMapEntryName();
|
||||
// name.SetDefault("Stalactite");
|
||||
AddMapEntry(new Color(57, 48, 83), name);
|
||||
AddMapEntry(new Color(57, 48, 83), CalamityUtils.GetText("Tiles.Stalactite"));
|
||||
DustType = (int)CalamityDusts.SulfurousSeaAcid;
|
||||
|
||||
base.SetStaticDefaults();
|
||||
|
||||
@@ -30,9 +30,7 @@ namespace CalamityMod.Tiles.Abyss.Stalactite
|
||||
TileObjectData.newTile.LavaDeath = true;
|
||||
TileObjectData.newTile.DrawYOffset = -2;
|
||||
TileObjectData.addTile(Type);
|
||||
LocalizedText name = CreateMapEntryName();
|
||||
// name.SetDefault("Stalactite");
|
||||
AddMapEntry(new Color(57, 48, 83), name);
|
||||
AddMapEntry(new Color(57, 48, 83), CalamityUtils.GetText("Tiles.Stalactite"));
|
||||
DustType = (int)CalamityDusts.SulfurousSeaAcid;
|
||||
|
||||
base.SetStaticDefaults();
|
||||
|
||||
@@ -31,9 +31,7 @@ namespace CalamityMod.Tiles.Abyss.Stalactite
|
||||
TileObjectData.newTile.LavaDeath = true;
|
||||
TileObjectData.newTile.DrawYOffset = -2;
|
||||
TileObjectData.addTile(Type);
|
||||
LocalizedText name = CreateMapEntryName();
|
||||
// name.SetDefault("Stalactite");
|
||||
AddMapEntry(new Color(57, 48, 83), name);
|
||||
AddMapEntry(new Color(57, 48, 83), CalamityUtils.GetText("Tiles.Stalactite"));
|
||||
DustType = (int)CalamityDusts.SulfurousSeaAcid;
|
||||
|
||||
base.SetStaticDefaults();
|
||||
|
||||
@@ -31,9 +31,7 @@ namespace CalamityMod.Tiles.Abyss.Stalactite
|
||||
TileObjectData.newTile.LavaDeath = true;
|
||||
TileObjectData.newTile.DrawYOffset = -2;
|
||||
TileObjectData.addTile(Type);
|
||||
LocalizedText name = CreateMapEntryName();
|
||||
// name.SetDefault("Stalactite");
|
||||
AddMapEntry(new Color(57, 48, 83), name);
|
||||
AddMapEntry(new Color(57, 48, 83), CalamityUtils.GetText("Tiles.Stalactite"));
|
||||
DustType = (int)CalamityDusts.SulfurousSeaAcid;
|
||||
|
||||
base.SetStaticDefaults();
|
||||
|
||||
@@ -32,9 +32,7 @@ namespace CalamityMod.Tiles.Abyss.Stalactite
|
||||
TileObjectData.newTile.LavaDeath = true;
|
||||
TileObjectData.newTile.DrawYOffset = -2;
|
||||
TileObjectData.addTile(Type);
|
||||
LocalizedText name = CreateMapEntryName();
|
||||
// name.SetDefault("Stalactite");
|
||||
AddMapEntry(new Color(57, 48, 83), name);
|
||||
AddMapEntry(new Color(57, 48, 83), CalamityUtils.GetText("Tiles.Stalactite"));
|
||||
DustType = (int)CalamityDusts.SulfurousSeaAcid;
|
||||
|
||||
base.SetStaticDefaults();
|
||||
|
||||
@@ -32,9 +32,7 @@ namespace CalamityMod.Tiles.Abyss.Stalactite
|
||||
TileObjectData.newTile.LavaDeath = true;
|
||||
TileObjectData.newTile.DrawYOffset = -2;
|
||||
TileObjectData.addTile(Type);
|
||||
LocalizedText name = CreateMapEntryName();
|
||||
// name.SetDefault("Stalactite");
|
||||
AddMapEntry(new Color(57, 48, 83), name);
|
||||
AddMapEntry(new Color(57, 48, 83), CalamityUtils.GetText("Tiles.Stalactite"));
|
||||
DustType = (int)CalamityDusts.SulfurousSeaAcid;
|
||||
|
||||
base.SetStaticDefaults();
|
||||
|
||||
@@ -22,9 +22,7 @@ namespace CalamityMod.Tiles.Abyss
|
||||
TileObjectData.newTile.DrawYOffset = 2;
|
||||
TileObjectData.newTile.CopyFrom(TileObjectData.Style2x2);
|
||||
TileObjectData.addTile(Type);
|
||||
LocalizedText name = CreateMapEntryName();
|
||||
// name.SetDefault("Geyser");
|
||||
AddMapEntry(new Color(103, 65, 64), name);
|
||||
AddMapEntry(new Color(103, 65, 64), CreateMapEntryName());
|
||||
DustType = (int)CalamityDusts.SulfurousSeaAcid;
|
||||
|
||||
base.SetStaticDefaults();
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
using CalamityMod.Dusts;
|
||||
using CalamityMod.Dusts;
|
||||
using Microsoft.Xna.Framework;
|
||||
using Terraria;
|
||||
using Terraria.Localization;
|
||||
@@ -20,7 +20,7 @@ namespace CalamityMod.Tiles.Abyss
|
||||
TileObjectData.addTile(Type);
|
||||
LocalizedText name = CreateMapEntryName();
|
||||
// name.SetDefault("Fossil");
|
||||
AddMapEntry(new Color(113, 90, 71), name);
|
||||
AddMapEntry(new Color(113, 90, 71), CalamityUtils.GetText("Tiles.Fossil"));
|
||||
DustType = (int)CalamityDusts.SulfurousSeaAcid;
|
||||
}
|
||||
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
using CalamityMod.Dusts;
|
||||
using CalamityMod.Dusts;
|
||||
using Microsoft.Xna.Framework;
|
||||
using Terraria;
|
||||
using Terraria.Localization;
|
||||
@@ -18,9 +18,7 @@ namespace CalamityMod.Tiles.Abyss
|
||||
|
||||
TileObjectData.newTile.CopyFrom(TileObjectData.Style3x2);
|
||||
TileObjectData.addTile(Type);
|
||||
LocalizedText name = CreateMapEntryName();
|
||||
// name.SetDefault("Fossil");
|
||||
AddMapEntry(new Color(113, 90, 71), name);
|
||||
AddMapEntry(new Color(113, 90, 71), CalamityUtils.GetText("Tiles.Fossil"));
|
||||
DustType = (int)CalamityDusts.SulfurousSeaAcid;
|
||||
}
|
||||
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
using CalamityMod.Dusts;
|
||||
using CalamityMod.Dusts;
|
||||
using Microsoft.Xna.Framework;
|
||||
using Terraria;
|
||||
using Terraria.Localization;
|
||||
@@ -18,9 +18,7 @@ namespace CalamityMod.Tiles.Abyss
|
||||
|
||||
TileObjectData.newTile.CopyFrom(TileObjectData.Style3x2);
|
||||
TileObjectData.addTile(Type);
|
||||
LocalizedText name = CreateMapEntryName();
|
||||
// name.SetDefault("Fossil");
|
||||
AddMapEntry(new Color(113, 90, 71), name);
|
||||
AddMapEntry(new Color(113, 90, 71), CalamityUtils.GetText("Tiles.Fossil"));
|
||||
DustType = (int)CalamityDusts.SulfurousSeaAcid;
|
||||
}
|
||||
|
||||
|
||||
@@ -34,9 +34,7 @@ namespace CalamityMod.Tiles.Abyss
|
||||
TileObjectData.newTile.WaterDeath = false;
|
||||
TileObjectData.newTile.LavaDeath = true;
|
||||
TileObjectData.addTile(Type);
|
||||
LocalizedText name = CreateMapEntryName();
|
||||
AddMapEntry(new Color(150, 100, 50), name);
|
||||
// name.SetDefault("Column");
|
||||
AddMapEntry(new Color(150, 100, 50), CalamityUtils.GetText("Tiles.Column"));
|
||||
DustType = (int)CalamityDusts.SulfurousSeaAcid;
|
||||
|
||||
base.SetStaticDefaults();
|
||||
|
||||
@@ -23,9 +23,7 @@ namespace CalamityMod.Tiles.Abyss
|
||||
|
||||
TileObjectData.newTile.CopyFrom(TileObjectData.Style2x2);
|
||||
TileObjectData.addTile(Type);
|
||||
LocalizedText name = CreateMapEntryName();
|
||||
// name.SetDefault("Sulphurous Crate");
|
||||
AddMapEntry(new Color(47, 79, 79), name); //dark slate gray
|
||||
AddMapEntry(new Color(47, 79, 79), CalamityUtils.GetItemName<SulphurousCrate>()); // dark slate gray
|
||||
DustType = 33;
|
||||
}
|
||||
|
||||
|
||||
@@ -28,7 +28,7 @@ namespace CalamityMod.Tiles.Abyss
|
||||
|
||||
LocalizedText name = CreateMapEntryName();
|
||||
// name.SetDefault("Pot");
|
||||
AddMapEntry(new Color(226, 205, 101), name);
|
||||
AddMapEntry(new Color(226, 205, 101), Language.GetText("MapObject.Pot"));
|
||||
|
||||
DustType = (int)CalamityDusts.SulfurousSeaAcid;
|
||||
HitSound = SoundID.Shatter;
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
using CalamityMod.Dusts;
|
||||
using CalamityMod.Dusts;
|
||||
using Microsoft.Xna.Framework;
|
||||
using Terraria;
|
||||
using Terraria.DataStructures;
|
||||
@@ -32,9 +32,7 @@ namespace CalamityMod.Tiles.Abyss
|
||||
TileObjectData.newTile.LavaDeath = true;
|
||||
TileObjectData.newTile.DrawYOffset = 2;
|
||||
TileObjectData.addTile(Type);
|
||||
LocalizedText name = CreateMapEntryName();
|
||||
// name.SetDefault("Ribs");
|
||||
AddMapEntry(new Color(57, 48, 83), name);
|
||||
AddMapEntry(new Color(57, 48, 83), CalamityUtils.GetText("Tiles.Ribs"));
|
||||
DustType = (int)CalamityDusts.SulfurousSeaAcid;
|
||||
|
||||
base.SetStaticDefaults();
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
using CalamityMod.Dusts;
|
||||
using CalamityMod.Dusts;
|
||||
using Microsoft.Xna.Framework;
|
||||
using Terraria;
|
||||
using Terraria.DataStructures;
|
||||
@@ -31,9 +31,7 @@ namespace CalamityMod.Tiles.Abyss
|
||||
TileObjectData.newTile.LavaDeath = true;
|
||||
TileObjectData.newTile.DrawYOffset = 2;
|
||||
TileObjectData.addTile(Type);
|
||||
LocalizedText name = CreateMapEntryName();
|
||||
// name.SetDefault("Ribs");
|
||||
AddMapEntry(new Color(57, 48, 83), name);
|
||||
AddMapEntry(new Color(57, 48, 83), CalamityUtils.GetText("Tiles.Ribs"));
|
||||
DustType = (int)CalamityDusts.SulfurousSeaAcid;
|
||||
|
||||
base.SetStaticDefaults();
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
using CalamityMod.Dusts;
|
||||
using CalamityMod.Dusts;
|
||||
using Microsoft.Xna.Framework;
|
||||
using Terraria;
|
||||
using Terraria.DataStructures;
|
||||
@@ -30,9 +30,7 @@ namespace CalamityMod.Tiles.Abyss
|
||||
TileObjectData.newTile.LavaDeath = true;
|
||||
TileObjectData.newTile.DrawYOffset = 2;
|
||||
TileObjectData.addTile(Type);
|
||||
LocalizedText name = CreateMapEntryName();
|
||||
// name.SetDefault("Ribs");
|
||||
AddMapEntry(new Color(57, 48, 83), name);
|
||||
AddMapEntry(new Color(57, 48, 83), CalamityUtils.GetText("Tiles.Ribs"));
|
||||
DustType = (int)CalamityDusts.SulfurousSeaAcid;
|
||||
|
||||
base.SetStaticDefaults();
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
using CalamityMod.Dusts;
|
||||
using CalamityMod.Dusts;
|
||||
using Microsoft.Xna.Framework;
|
||||
using Terraria;
|
||||
using Terraria.DataStructures;
|
||||
@@ -31,9 +31,7 @@ namespace CalamityMod.Tiles.Abyss
|
||||
TileObjectData.newTile.LavaDeath = true;
|
||||
TileObjectData.newTile.DrawYOffset = 2;
|
||||
TileObjectData.addTile(Type);
|
||||
LocalizedText name = CreateMapEntryName();
|
||||
// name.SetDefault("Ribs");
|
||||
AddMapEntry(new Color(57, 48, 83), name);
|
||||
AddMapEntry(new Color(57, 48, 83), CalamityUtils.GetText("Tiles.Ribs"));
|
||||
DustType = (int)CalamityDusts.SulfurousSeaAcid;
|
||||
|
||||
base.SetStaticDefaults();
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
using CalamityMod.Dusts;
|
||||
using CalamityMod.Dusts;
|
||||
using Microsoft.Xna.Framework;
|
||||
using Terraria;
|
||||
using Terraria.DataStructures;
|
||||
@@ -29,9 +29,7 @@ namespace CalamityMod.Tiles.Abyss
|
||||
TileObjectData.newTile.LavaDeath = true;
|
||||
TileObjectData.newTile.DrawYOffset = 2;
|
||||
TileObjectData.addTile(Type);
|
||||
LocalizedText name = CreateMapEntryName();
|
||||
// name.SetDefault("Ribs");
|
||||
AddMapEntry(new Color(57, 48, 83), name);
|
||||
AddMapEntry(new Color(57, 48, 83), CalamityUtils.GetText("Tiles.Ribs"));
|
||||
DustType = (int)CalamityDusts.SulfurousSeaAcid;
|
||||
|
||||
base.SetStaticDefaults();
|
||||
|
||||
@@ -13,9 +13,7 @@ namespace CalamityMod.Tiles.Abyss
|
||||
public override void SetStaticDefaults()
|
||||
{
|
||||
this.SetUpTorch(true, true);
|
||||
LocalizedText name = CreateMapEntryName();
|
||||
// name.SetDefault("Torch");
|
||||
AddMapEntry(new Color(253, 221, 3), name);
|
||||
AddMapEntry(new Color(253, 221, 3), CalamityUtils.GetItemName(ItemID.Torch));
|
||||
TileID.Sets.DisableSmartCursor[Type] = true;
|
||||
ItemDrop = ModContent.ItemType<Items.Placeables.Furniture.SulphurousTorch>();
|
||||
AdjTiles = new int[] { TileID.Torches };
|
||||
|
||||
@@ -19,9 +19,7 @@ namespace CalamityMod.Tiles.Abyss
|
||||
Main.tileLavaDeath[Type] = true;
|
||||
Main.tileNoFail[Type] = true;
|
||||
Main.tileNoSunLight[Type] = false;
|
||||
LocalizedText name = CreateMapEntryName();
|
||||
// name.SetDefault("Sulphurous Vines");
|
||||
AddMapEntry(new Color(0, 50, 0), name);
|
||||
AddMapEntry(new Color(0, 50, 0), CreateMapEntryName());
|
||||
HitSound = SoundID.Grass;
|
||||
DustType = 2;
|
||||
TileID.Sets.IsVine[Type] = true;
|
||||
|
||||
@@ -15,9 +15,7 @@ namespace CalamityMod.Tiles.Abyss
|
||||
Main.tileBlockLight[Type] = true;
|
||||
Main.tileLavaDeath[Type] = true;
|
||||
Main.tileNoFail[Type] = true;
|
||||
LocalizedText name = CreateMapEntryName();
|
||||
// name.SetDefault("Viper Vines");
|
||||
AddMapEntry(new Color(0, 50, 0), name);
|
||||
AddMapEntry(new Color(0, 50, 0), CreateMapEntryName());
|
||||
HitSound = SoundID.Grass;
|
||||
DustType = 2;
|
||||
}
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
using CalamityMod.Dusts;
|
||||
using CalamityMod.Dusts;
|
||||
using CalamityMod.Items.Fishing.AstralCatches;
|
||||
using Microsoft.Xna.Framework;
|
||||
using Terraria;
|
||||
@@ -23,9 +23,7 @@ namespace CalamityMod.Tiles.Astral
|
||||
|
||||
TileObjectData.newTile.CopyFrom(TileObjectData.Style2x2);
|
||||
TileObjectData.addTile(Type);
|
||||
LocalizedText name = CreateMapEntryName();
|
||||
// name.SetDefault("Astral Crate");
|
||||
AddMapEntry(new Color(47, 66, 90), name);
|
||||
AddMapEntry(new Color(47, 66, 90), CalamityUtils.GetItemName<AstralCrate>());
|
||||
DustType = ModContent.DustType<AstralBlue>();
|
||||
}
|
||||
|
||||
|
||||
@@ -14,9 +14,7 @@ namespace CalamityMod.Tiles.Astral
|
||||
public override void SetStaticDefaults()
|
||||
{
|
||||
this.SetUpTorch();
|
||||
LocalizedText name = CreateMapEntryName();
|
||||
// name.SetDefault("Torch");
|
||||
AddMapEntry(new Color(253, 221, 3), name);
|
||||
AddMapEntry(new Color(253, 221, 3), CalamityUtils.GetItemName(ItemID.Torch));
|
||||
TileID.Sets.DisableSmartCursor[Type] = true;
|
||||
ItemDrop = ModContent.ItemType<Items.Placeables.Furniture.AstralTorch>();
|
||||
AdjTiles = new int[] { TileID.Torches };
|
||||
|
||||
@@ -41,9 +41,7 @@ namespace CalamityMod.Tiles.Astral
|
||||
TileObjectData.newTile.LavaDeath = true;
|
||||
TileObjectData.newTile.RandomStyleRange = 3;
|
||||
TileObjectData.addTile(Type);
|
||||
LocalizedText name = CreateMapEntryName();
|
||||
// name.SetDefault("MapObject.Sapling");
|
||||
AddMapEntry(new Color(200, 200, 200), name);
|
||||
AddMapEntry(new Color(200, 200, 200), Language.GetText("MapObject.Sapling"));
|
||||
DustType = ModContent.DustType<AstralBasic>();
|
||||
AdjTiles = new int[] { TileID.Saplings };
|
||||
}
|
||||
|
||||
@@ -29,9 +29,7 @@ namespace CalamityMod.Tiles.Astral
|
||||
|
||||
HitSound = SoundID.Grass;
|
||||
|
||||
LocalizedText name = CreateMapEntryName();
|
||||
// name.SetDefault("Astral Vines");
|
||||
AddMapEntry(new Color(65, 56, 83), name);
|
||||
AddMapEntry(new Color(65, 56, 83), CreateMapEntryName());
|
||||
}
|
||||
|
||||
public override void KillTile(int i, int j, ref bool fail, ref bool effectOnly, ref bool noItem)
|
||||
|
||||
@@ -26,8 +26,6 @@ namespace CalamityMod.Tiles.Astral
|
||||
DustType = ModContent.DustType<AstralBasic>();
|
||||
ItemDrop = ModContent.ItemType<Items.Placeables.NovaeSlag>();
|
||||
|
||||
LocalizedText name = CreateMapEntryName();
|
||||
// name.SetDefault("Novae Slag");
|
||||
AddMapEntry(new Color(133, 69, 115));
|
||||
|
||||
TileID.Sets.ChecksForMerge[Type] = true;
|
||||
|
||||
@@ -41,9 +41,7 @@ namespace CalamityMod.Tiles.AstralDesert
|
||||
TileObjectData.newTile.LavaDeath = true;
|
||||
TileObjectData.newTile.RandomStyleRange = 3;
|
||||
TileObjectData.addTile(Type);
|
||||
LocalizedText name = CreateMapEntryName();
|
||||
// name.SetDefault("MapObject.Sapling");
|
||||
AddMapEntry(new Color(200, 200, 200), name);
|
||||
AddMapEntry(new Color(200, 200, 200), Language.GetText("MapObject.Sapling"));
|
||||
DustType = ModContent.DustType<AstralBasic>();
|
||||
AdjTiles = new int[] { TileID.Saplings };
|
||||
}
|
||||
|
||||
@@ -25,9 +25,7 @@ namespace CalamityMod.Tiles.AstralDesert
|
||||
DustType = ModContent.DustType<AstralBasic>();
|
||||
ItemDrop = ModContent.ItemType<Items.Placeables.CelestialRemains>();
|
||||
|
||||
LocalizedText name = CreateMapEntryName();
|
||||
// name.SetDefault("Celestial Remains");
|
||||
AddMapEntry(new Color(59, 50, 77));
|
||||
AddMapEntry(new Color(59, 50, 77), CreateMapEntryName());
|
||||
|
||||
TileID.Sets.ForAdvancedCollision.ForSandshark[Type] = true;
|
||||
|
||||
|
||||
@@ -41,9 +41,7 @@ namespace CalamityMod.Tiles.AstralSnow
|
||||
TileObjectData.newTile.LavaDeath = true;
|
||||
TileObjectData.newTile.RandomStyleRange = 3;
|
||||
TileObjectData.addTile(Type);
|
||||
LocalizedText name = CreateMapEntryName();
|
||||
// name.SetDefault("MapObject.Sapling");
|
||||
AddMapEntry(new Color(200, 200, 200), name);
|
||||
AddMapEntry(new Color(200, 200, 200), Language.GetText("MapObject.Sapling"));
|
||||
DustType = ModContent.DustType<AstralBasic>();
|
||||
AdjTiles = new int[] { TileID.Saplings };
|
||||
}
|
||||
|
||||
@@ -23,19 +23,23 @@ namespace CalamityMod.Tiles.BaseTiles
|
||||
public Asset<Texture2D> crystalTexture;
|
||||
public Asset<Texture2D> mapIcon;
|
||||
|
||||
//The type of dust created by the pylon
|
||||
/// <summary>
|
||||
/// The type of dust created by the pylon
|
||||
/// </summary>
|
||||
public virtual int DustID => 43;
|
||||
public virtual Color DustColor => Color.White;
|
||||
public virtual Color LightColor => Color.White;
|
||||
public abstract int AssociatedItem { get; }
|
||||
public abstract string PylonMapText { get; }
|
||||
public abstract Color PylonMapColor { get; }
|
||||
|
||||
public override void Load()
|
||||
{
|
||||
// Pre-loading textures
|
||||
crystalTexture = ModContent.Request<Texture2D>(Texture + "_Crystal");
|
||||
mapIcon = ModContent.Request<Texture2D>(Texture + "_MapIcon");
|
||||
if (!Main.dedServ)
|
||||
{
|
||||
// Pre-loading textures
|
||||
crystalTexture = ModContent.Request<Texture2D>(Texture + "_Crystal");
|
||||
mapIcon = ModContent.Request<Texture2D>(Texture + "_MapIcon");
|
||||
}
|
||||
}
|
||||
|
||||
public override void Unload()
|
||||
@@ -52,8 +56,7 @@ namespace CalamityMod.Tiles.BaseTiles
|
||||
TileID.Sets.InteractibleByNPCs[Type] = true;
|
||||
TileID.Sets.PreventsSandfall[Type] = true;
|
||||
|
||||
LocalizedText pylonName = CreateMapEntryName();
|
||||
AddMapEntry(PylonMapColor, pylonName);
|
||||
AddMapEntry(PylonMapColor, CalamityUtils.GetItemName(AssociatedItem));
|
||||
}
|
||||
|
||||
public override void MouseOver(int i, int j)
|
||||
@@ -160,7 +163,7 @@ namespace CalamityMod.Tiles.BaseTiles
|
||||
{
|
||||
// Just like in SpecialDraw, we want things to be handled the EXACT same way vanilla would handle it, which ModPylon also has built in methods for:
|
||||
bool mouseOver = DefaultDrawMapIcon(ref context, mapIcon, pylonInfo.PositionInTiles.ToVector2() + new Vector2(1.5f, 2f), drawColor, deselectedScale, selectedScale);
|
||||
DefaultMapClickHandle(mouseOver, pylonInfo, PylonMapText, ref mouseOverText);
|
||||
DefaultMapClickHandle(mouseOver, pylonInfo, Lang.GetItemName(AssociatedItem).Key, ref mouseOverText);
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -1,4 +1,4 @@
|
||||
using CalamityMod.Items.Fishing.BrimstoneCragCatches;
|
||||
using CalamityMod.Items.Fishing.BrimstoneCragCatches;
|
||||
using Microsoft.Xna.Framework;
|
||||
using Terraria;
|
||||
using Terraria.DataStructures;
|
||||
@@ -22,9 +22,7 @@ namespace CalamityMod.Tiles.Crags
|
||||
|
||||
TileObjectData.newTile.CopyFrom(TileObjectData.Style2x2);
|
||||
TileObjectData.addTile(Type);
|
||||
LocalizedText name = CreateMapEntryName();
|
||||
// name.SetDefault("Brimstone Crate");
|
||||
AddMapEntry(new Color(128, 0, 0), name); //Maroon
|
||||
AddMapEntry(new Color(128, 0, 0), CalamityUtils.GetItemName<BrimstoneCrate>()); //Maroon
|
||||
DustType = 60;
|
||||
}
|
||||
|
||||
|
||||
@@ -25,9 +25,7 @@ namespace CalamityMod.Tiles.Crags
|
||||
CalamityUtils.MergeWithHell(Type);
|
||||
|
||||
ItemDrop = ModContent.ItemType<Items.Placeables.BrimstoneSlab>();
|
||||
LocalizedText name = CreateMapEntryName();
|
||||
// name.SetDefault("Brimstone Slab");
|
||||
AddMapEntry(new Color(79, 55, 70), name);
|
||||
AddMapEntry(new Color(79, 55, 70), CreateMapEntryName());
|
||||
MineResist = 3f;
|
||||
MinPick = 100;
|
||||
HitSound = SoundID.Tink;
|
||||
|
||||
@@ -15,9 +15,7 @@ namespace CalamityMod.Tiles.Crags
|
||||
public override void SetStaticDefaults()
|
||||
{
|
||||
this.SetUpTorch();
|
||||
LocalizedText name = CreateMapEntryName();
|
||||
// name.SetDefault("Torch");
|
||||
AddMapEntry(new Color(253, 221, 3), name);
|
||||
AddMapEntry(new Color(253, 221, 3), CalamityUtils.GetItemName(ItemID.Torch));
|
||||
TileID.Sets.DisableSmartCursor[Type] = true;
|
||||
TileID.Sets.Torch[Type] = true;
|
||||
TileID.Sets.FramesOnKillWall[Type] = true;
|
||||
|
||||
@@ -37,17 +37,15 @@ namespace CalamityMod.Tiles.Furniture
|
||||
// Toilets count as chairs
|
||||
AddToArray(ref TileID.Sets.RoomNeeds.CountsAsChair);
|
||||
|
||||
LocalizedText name = CreateMapEntryName();
|
||||
// name.SetDefault("Auric Toilet");
|
||||
TileID.Sets.DisableSmartCursor[Type] = true;
|
||||
AddMapEntry(new Color(191, 142, 111), name);
|
||||
AddMapEntry(new Color(191, 142, 111), CalamityUtils.GetItemName<AuricToilet>());
|
||||
AdjTiles = new int[] { TileID.Chairs };
|
||||
}
|
||||
|
||||
public override bool CreateDust(int i, int j, ref int type)
|
||||
{
|
||||
Dust.NewDust(new Vector2(i, j) * 16f, 16, 16, 132, 0f, 0f, 1, new Color(255, 255, 255), 1f);
|
||||
Dust.NewDust(new Vector2(i, j) * 16f, 16, 16, 134, 0f, 0f, 1, new Color(255, 255, 255), 1f);
|
||||
Dust.NewDust(new Vector2(i, j) * 16f, 16, 16, DustID.Firework_Blue, 0f, 0f, 1, new Color(255, 255, 255), 1f);
|
||||
Dust.NewDust(new Vector2(i, j) * 16f, 16, 16, DustID.Firework_Pink, 0f, 0f, 1, new Color(255, 255, 255), 1f);
|
||||
return false;
|
||||
}
|
||||
|
||||
|
||||
@@ -18,9 +18,7 @@ namespace CalamityMod.Tiles.Furniture
|
||||
TileObjectData.newTile.CopyFrom(TileObjectData.Style6x3);
|
||||
TileObjectData.addTile(Type);
|
||||
AnimationFrameHeight = 54;
|
||||
LocalizedText name = CreateMapEntryName();
|
||||
// name.SetDefault("Baby Flak Crab Cage");
|
||||
AddMapEntry(new Color(175, 238, 238), name);
|
||||
AddMapEntry(new Color(175, 238, 238), CalamityUtils.GetItemName<BabyFlakCrabCage>());
|
||||
}
|
||||
|
||||
public override bool CreateDust(int i, int j, ref int type)
|
||||
|
||||
@@ -19,9 +19,7 @@ namespace CalamityMod.Tiles.Furniture
|
||||
TileObjectData.newTile.CopyFrom(TileObjectData.Style2x2);
|
||||
TileObjectData.addTile(Type);
|
||||
AnimationFrameHeight = 36;
|
||||
LocalizedText name = CreateMapEntryName();
|
||||
// name.SetDefault("Baby Ghost Bell Jar");
|
||||
AddMapEntry(new Color(64, 224, 208), name);
|
||||
AddMapEntry(new Color(64, 224, 208), CalamityUtils.GetItemName<BabyGhostBellJar>());
|
||||
AddToArray(ref TileID.Sets.RoomNeeds.CountsAsTorch);
|
||||
}
|
||||
|
||||
|
||||
@@ -1,4 +1,5 @@
|
||||
using CalamityMod.Buffs.Placeables;
|
||||
using CalamityMod.Items.Placeables.Furniture;
|
||||
using Microsoft.Xna.Framework;
|
||||
using Terraria;
|
||||
using Terraria.DataStructures;
|
||||
@@ -18,11 +19,9 @@ namespace CalamityMod.Tiles.Furniture
|
||||
Main.tileLavaDeath[Type] = true;
|
||||
TileObjectData.newTile.CopyFrom(TileObjectData.Style1x2);
|
||||
TileObjectData.addTile(Type);
|
||||
LocalizedText name = CreateMapEntryName();
|
||||
// name.SetDefault("Weightless Candle");
|
||||
AdjTiles = new int[] { TileID.Candles };
|
||||
AddToArray(ref TileID.Sets.RoomNeeds.CountsAsTorch);
|
||||
AddMapEntry(new Color(238, 145, 105), name);
|
||||
AddMapEntry(new Color(238, 145, 105), CalamityUtils.GetItemName<WeightlessCandle>());
|
||||
AnimationFrameHeight = 34;
|
||||
}
|
||||
|
||||
|
||||
@@ -21,9 +21,7 @@ namespace CalamityMod.Tiles.Furniture
|
||||
TileObjectData.addTile(Type);
|
||||
DustType = 7;
|
||||
TileID.Sets.DisableSmartCursor[Type] = true;
|
||||
LocalizedText name = CreateMapEntryName();
|
||||
// name.SetDefault("Trophy");
|
||||
AddMapEntry(new Color(120, 85, 60), name);
|
||||
AddMapEntry(new Color(120, 85, 60), Language.GetText("MapObject.Trophy"));
|
||||
TileID.Sets.FramesOnKillWall[Type] = true;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -15,9 +15,7 @@ namespace CalamityMod.Tiles.Furniture
|
||||
{
|
||||
this.SetUpCandle();
|
||||
ItemDrop = ModContent.ItemType<Items.Placeables.Furniture.ChaosCandle>();
|
||||
LocalizedText name = CreateMapEntryName();
|
||||
// name.SetDefault("Chaos Candle");
|
||||
AddMapEntry(new Color(238, 145, 105), name);
|
||||
AddMapEntry(new Color(238, 145, 105), CreateMapEntryName());
|
||||
AdjTiles = new int[] { TileID.Candles };
|
||||
}
|
||||
|
||||
|
||||
@@ -26,9 +26,7 @@ namespace CalamityMod.Tiles.Furniture
|
||||
TileObjectData.newTile.UsesCustomCanPlace = true;
|
||||
TileObjectData.newTile.AnchorBottom = new AnchorData(AnchorType.SolidTile | AnchorType.SolidWithTop, 2, 0);
|
||||
TileObjectData.addTile(Type);
|
||||
LocalizedText name = CreateMapEntryName();
|
||||
// name.SetDefault("Corruption Effigy");
|
||||
AddMapEntry(new Color(126, 156, 134), name);
|
||||
AddMapEntry(new Color(126, 156, 134), CalamityUtils.GetItemName<Items.Placeables.Furniture.CorruptionEffigy>());
|
||||
}
|
||||
|
||||
public override void NearbyEffects(int i, int j, bool closer)
|
||||
|
||||
@@ -21,9 +21,7 @@ namespace CalamityMod.Tiles.Furniture.CraftingStations
|
||||
TileObjectData.newTile.CopyFrom(TileObjectData.Style3x3);
|
||||
TileObjectData.newTile.LavaDeath = false;
|
||||
TileObjectData.addTile(Type);
|
||||
LocalizedText name = CreateMapEntryName();
|
||||
// name.SetDefault("Ancient Altar");
|
||||
AddMapEntry(new Color(191, 142, 111), name);
|
||||
AddMapEntry(new Color(191, 142, 111), CalamityUtils.GetItemName<Items.Placeables.Furniture.CraftingStations.AncientAltar>());
|
||||
AnimationFrameHeight = 54;
|
||||
AddToArray(ref TileID.Sets.RoomNeeds.CountsAsTorch);
|
||||
}
|
||||
|
||||
@@ -21,9 +21,7 @@ namespace CalamityMod.Tiles.Furniture.CraftingStations
|
||||
TileObjectData.newTile.CopyFrom(TileObjectData.Style3x3);
|
||||
TileObjectData.newTile.LavaDeath = false;
|
||||
TileObjectData.addTile(Type);
|
||||
LocalizedText name = CreateMapEntryName();
|
||||
// name.SetDefault("Ashen Altar");
|
||||
AddMapEntry(new Color(191, 142, 111), name);
|
||||
AddMapEntry(new Color(191, 142, 111), CalamityUtils.GetItemName<Items.Placeables.Furniture.CraftingStations.AshenAltar>());
|
||||
AnimationFrameHeight = 54;
|
||||
AddToArray(ref TileID.Sets.RoomNeeds.CountsAsTorch);
|
||||
}
|
||||
|
||||
@@ -19,9 +19,7 @@ namespace CalamityMod.Tiles.Furniture.CraftingStations
|
||||
TileObjectData.newTile.CopyFrom(TileObjectData.Style3x3);
|
||||
TileObjectData.newTile.LavaDeath = false;
|
||||
TileObjectData.addTile(Type);
|
||||
LocalizedText name = CreateMapEntryName();
|
||||
// name.SetDefault("Botanic Planter");
|
||||
AddMapEntry(new Color(191, 142, 111), name);
|
||||
AddMapEntry(new Color(191, 142, 111), CalamityUtils.GetItemName<Items.Placeables.Furniture.CraftingStations.BotanicPlanter>());
|
||||
AnimationFrameHeight = 54;
|
||||
AddToArray(ref TileID.Sets.RoomNeeds.CountsAsTorch);
|
||||
}
|
||||
|
||||
@@ -25,9 +25,7 @@ namespace CalamityMod.Tiles.Furniture.CraftingStations
|
||||
// You cannot face the Cosmic Anvil left or right, it only has one orientation
|
||||
TileObjectData.newTile.Direction = Terraria.Enums.TileObjectDirection.None;
|
||||
TileObjectData.addTile(Type);
|
||||
LocalizedText name = CreateMapEntryName();
|
||||
// name.SetDefault("Cosmic Anvil");
|
||||
AddMapEntry(new Color(159, 125, 201), name);
|
||||
AddMapEntry(new Color(159, 125, 201), CalamityUtils.GetItemName<Items.Placeables.Furniture.CraftingStations.CosmicAnvilItem>());
|
||||
TileID.Sets.DisableSmartCursor[Type] = true;
|
||||
// Visual Studio complains about this line. However, if you change it to DustID.BubbleBurst_Purple, it won't compile.
|
||||
DustType = 179;
|
||||
|
||||
@@ -24,9 +24,7 @@ namespace CalamityMod.Tiles.Furniture.CraftingStations
|
||||
TileObjectData.newTile.Origin = new Point16(2, 1);
|
||||
TileObjectData.addTile(Type);
|
||||
|
||||
LocalizedText name = CreateMapEntryName();
|
||||
// name.SetDefault("Draedon's Forge");
|
||||
AddMapEntry(new Color(230, 157, 41), name);
|
||||
AddMapEntry(new Color(230, 157, 41), CalamityUtils.GetItemName<Items.Placeables.Furniture.CraftingStations.DraedonsForge>());
|
||||
|
||||
AnimationFrameHeight = 54;
|
||||
TileID.Sets.DisableSmartCursor[Type] = true;
|
||||
|
||||
@@ -41,9 +41,7 @@ namespace CalamityMod.Tiles.Furniture.CraftingStations
|
||||
TileObjectData.newAlternate.Direction = TileObjectDirection.PlaceRight;
|
||||
TileObjectData.addAlternate(1);
|
||||
TileObjectData.addTile(Type);
|
||||
LocalizedText name = CreateMapEntryName();
|
||||
// name.SetDefault("Eutrophic Shelf");
|
||||
AddMapEntry(new Color(191, 142, 111), name);
|
||||
AddMapEntry(new Color(191, 142, 111), CalamityUtils.GetItemName<Items.Placeables.Furniture.CraftingStations.EutrophicShelf>());
|
||||
AnimationFrameHeight = 54;
|
||||
AddToArray(ref TileID.Sets.RoomNeeds.CountsAsTorch);
|
||||
}
|
||||
|
||||
@@ -14,9 +14,7 @@ namespace CalamityMod.Tiles.Furniture.CraftingStations
|
||||
public override void SetStaticDefaults()
|
||||
{
|
||||
this.SetUpBookcase(true, false, false);
|
||||
LocalizedText name = CreateMapEntryName();
|
||||
// name.SetDefault("Monolith Amalgam");
|
||||
AddMapEntry(new Color(191, 142, 111), name);
|
||||
AddMapEntry(new Color(191, 142, 111), CalamityUtils.GetItemName<Items.Placeables.Furniture.CraftingStations.MonolithAmalgam>());
|
||||
AnimationFrameHeight = 54;
|
||||
}
|
||||
|
||||
|
||||
@@ -27,9 +27,7 @@ namespace CalamityMod.Tiles.Furniture.CraftingStations
|
||||
TileObjectData.newTile.AnchorBottom = new AnchorData(AnchorType.SolidTile | AnchorType.SolidWithTop, 2, 0);
|
||||
TileObjectData.addTile(Type);
|
||||
|
||||
LocalizedText name = CreateMapEntryName();
|
||||
// name.SetDefault("Plague Infuser");
|
||||
AddMapEntry(new Color(191, 142, 111), name);
|
||||
AddMapEntry(new Color(191, 142, 111), CalamityUtils.GetItemName<Items.Placeables.Furniture.CraftingStations.PlagueInfuser>());
|
||||
AnimationFrameHeight = 72;
|
||||
}
|
||||
|
||||
|
||||
@@ -20,9 +20,7 @@ namespace CalamityMod.Tiles.Furniture.CraftingStations
|
||||
TileObjectData.newTile.CopyFrom(TileObjectData.Style3x3);
|
||||
TileObjectData.newTile.LavaDeath = false;
|
||||
TileObjectData.addTile(Type);
|
||||
LocalizedText name = CreateMapEntryName();
|
||||
// name.SetDefault("Profaned Crucible");
|
||||
AddMapEntry(new Color(191, 142, 111), name);
|
||||
AddMapEntry(new Color(191, 142, 111), CalamityUtils.GetItemName<Items.Placeables.Furniture.CraftingStations.ProfanedCrucible>());
|
||||
AnimationFrameHeight = 54;
|
||||
AddToArray(ref TileID.Sets.RoomNeeds.CountsAsTorch);
|
||||
}
|
||||
|
||||
@@ -43,9 +43,7 @@ namespace CalamityMod.Tiles.Furniture.CraftingStations
|
||||
TileObjectData.newTile.StyleHorizontal = true;
|
||||
TileObjectData.newTile.LavaDeath = false;
|
||||
TileObjectData.addTile(Type);
|
||||
LocalizedText name = CreateMapEntryName();
|
||||
// name.SetDefault("Altar");
|
||||
AddMapEntry(new Color(43, 19, 42), name);
|
||||
AddMapEntry(new Color(43, 19, 42), CalamityUtils.GetItemName<Items.Placeables.Furniture.CraftingStations.AltarOfTheAccursedItem>());
|
||||
TileID.Sets.DisableSmartCursor[Type] = true;
|
||||
|
||||
ItemDrop = ModContent.ItemType<AltarOfTheAccursedItem>();
|
||||
@@ -133,9 +131,7 @@ namespace CalamityMod.Tiles.Furniture.CraftingStations
|
||||
TileObjectData.newTile.StyleHorizontal = true;
|
||||
TileObjectData.newTile.LavaDeath = false;
|
||||
TileObjectData.addTile(Type);
|
||||
LocalizedText name = CreateMapEntryName();
|
||||
// name.SetDefault("Altar");
|
||||
AddMapEntry(new Color(43, 19, 42), name);
|
||||
AddMapEntry(new Color(43, 19, 42), CalamityUtils.GetItemName<Items.Placeables.Furniture.CraftingStations.AltarOfTheAccursedItem>());
|
||||
TileID.Sets.DisableSmartCursor[Type] = true;
|
||||
}
|
||||
|
||||
|
||||
@@ -19,9 +19,7 @@ namespace CalamityMod.Tiles.Furniture.CraftingStations
|
||||
TileObjectData.newTile.CopyFrom(TileObjectData.Style3x3);
|
||||
TileObjectData.newTile.LavaDeath = false;
|
||||
TileObjectData.addTile(Type);
|
||||
LocalizedText name = CreateMapEntryName();
|
||||
// name.SetDefault("Effulgent Manipulator");
|
||||
AddMapEntry(new Color(191, 142, 111), name);
|
||||
AddMapEntry(new Color(191, 142, 111), CalamityUtils.GetItemName<Items.Placeables.Furniture.CraftingStations.SilvaBasin>());
|
||||
AnimationFrameHeight = 54;
|
||||
AddToArray(ref TileID.Sets.RoomNeeds.CountsAsTorch);
|
||||
}
|
||||
|
||||
@@ -18,9 +18,7 @@ namespace CalamityMod.Tiles.Furniture.CraftingStations
|
||||
|
||||
TileObjectData.newTile.CopyFrom(TileObjectData.Style3x3);
|
||||
TileObjectData.addTile(Type);
|
||||
LocalizedText name = CreateMapEntryName();
|
||||
// name.SetDefault("Static Refiner");
|
||||
AddMapEntry(new Color(191, 142, 111), name);
|
||||
AddMapEntry(new Color(191, 142, 111), CalamityUtils.GetItemName<Items.Placeables.Furniture.CraftingStations.StaticRefiner>());
|
||||
AnimationFrameHeight = 54;
|
||||
//also counts as a Solidifier
|
||||
AdjTiles = new int[] { TileID.Solidifier };
|
||||
|
||||
@@ -19,9 +19,7 @@ namespace CalamityMod.Tiles.Furniture.CraftingStations
|
||||
TileObjectData.newTile.CopyFrom(TileObjectData.Style3x3);
|
||||
TileObjectData.newTile.LavaDeath = false;
|
||||
TileObjectData.addTile(Type);
|
||||
LocalizedText name = CreateMapEntryName();
|
||||
// name.SetDefault("Void Condenser");
|
||||
AddMapEntry(new Color(191, 142, 111), name);
|
||||
AddMapEntry(new Color(191, 142, 111), CalamityUtils.GetItemName<Items.Placeables.Furniture.CraftingStations.VoidCondenser>());
|
||||
AnimationFrameHeight = 54;
|
||||
}
|
||||
|
||||
|
||||
@@ -16,9 +16,7 @@ namespace CalamityMod.Tiles.Furniture.CraftingStations
|
||||
Main.tileFrameImportant[Type] = true;
|
||||
TileObjectData.newTile.CopyFrom(TileObjectData.Style3x3);
|
||||
TileObjectData.addTile(Type);
|
||||
LocalizedText name = CreateMapEntryName();
|
||||
// name.SetDefault("Wulfrum Labstation");
|
||||
AddMapEntry(new Color(100, 153, 100), name);
|
||||
AddMapEntry(new Color(100, 153, 100), CalamityUtils.GetItemName<Items.Placeables.Furniture.CraftingStations.WulfrumLabstationItem>());
|
||||
}
|
||||
|
||||
public override bool CreateDust(int i, int j, ref int type)
|
||||
|
||||
@@ -26,9 +26,7 @@ namespace CalamityMod.Tiles.Furniture
|
||||
TileObjectData.newTile.UsesCustomCanPlace = true;
|
||||
TileObjectData.newTile.AnchorBottom = new AnchorData(AnchorType.SolidTile | AnchorType.SolidWithTop, 2, 0);
|
||||
TileObjectData.addTile(Type);
|
||||
LocalizedText name = CreateMapEntryName();
|
||||
// name.SetDefault("Crimson Effigy");
|
||||
AddMapEntry(new Color(238, 145, 105), name);
|
||||
AddMapEntry(new Color(238, 145, 105), CalamityUtils.GetItemName<Items.Placeables.Furniture.CrimsonEffigy>());
|
||||
}
|
||||
|
||||
public override void NearbyEffects(int i, int j, bool closer)
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
using CalamityMod.Items.Placeables.Furniture.DevPaintings;
|
||||
using CalamityMod.Items.Placeables.Furniture.DevPaintings;
|
||||
using Microsoft.Xna.Framework;
|
||||
using Terraria;
|
||||
using Terraria.DataStructures;
|
||||
@@ -28,9 +28,7 @@ namespace CalamityMod.Tiles.Furniture.DevPaintings
|
||||
TileID.Sets.FramesOnKillWall[Type] = true;
|
||||
TileID.Sets.DisableSmartCursor[Type] = true;
|
||||
DustType = 7;
|
||||
LocalizedText name = CreateMapEntryName();
|
||||
// name.SetDefault("Thank You Painting");
|
||||
AddMapEntry(new Color(120, 85, 60), name);
|
||||
AddMapEntry(new Color(120, 85, 60), CreateMapEntryName());
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -27,9 +27,7 @@ namespace CalamityMod.Tiles.Furniture
|
||||
TileObjectData.newTile.UsesCustomCanPlace = true;
|
||||
TileObjectData.newTile.AnchorBottom = new AnchorData(AnchorType.SolidTile | AnchorType.SolidWithTop, 2, 0);
|
||||
TileObjectData.addTile(Type);
|
||||
LocalizedText name = CreateMapEntryName();
|
||||
// name.SetDefault("Effigy of Decay");
|
||||
AddMapEntry(new Color(113, 90, 71), name);
|
||||
AddMapEntry(new Color(113, 90, 71), CalamityUtils.GetItemName<EffigyOfDecay>());
|
||||
}
|
||||
|
||||
public override void NearbyEffects(int i, int j, bool closer)
|
||||
|
||||
@@ -22,9 +22,7 @@ namespace CalamityMod.Tiles.Furniture
|
||||
TileObjectData.newTile.DrawYOffset = 2;
|
||||
TileObjectData.newTile.CoordinateHeights = new int[] { 16, 16, 18 };
|
||||
TileObjectData.addTile(Type);
|
||||
LocalizedText name = CreateMapEntryName();
|
||||
// name.SetDefault("Lantern Center");
|
||||
AddMapEntry(new Color(99, 99, 99), name);
|
||||
AddMapEntry(new Color(99, 99, 99), CalamityUtils.GetItemName<LanternCenter>());
|
||||
TileID.Sets.HasOutlines[Type] = true;
|
||||
|
||||
AnimationFrameHeight = 54;
|
||||
|
||||
@@ -20,7 +20,7 @@ namespace CalamityMod.Tiles.Furniture
|
||||
AnimationFrameHeight = 54;
|
||||
LocalizedText name = CreateMapEntryName();
|
||||
// name.SetDefault("Piggy Cage");
|
||||
AddMapEntry(new Color(175, 238, 238), name);
|
||||
AddMapEntry(new Color(175, 238, 238), CalamityUtils.GetItemName<PiggyCage>());
|
||||
}
|
||||
|
||||
public override bool CreateDust(int i, int j, ref int type)
|
||||
|
||||
@@ -1,4 +1,5 @@
|
||||
using CalamityMod.Buffs.Placeables;
|
||||
using CalamityMod.Items.Placeables.Furniture;
|
||||
using Microsoft.Xna.Framework;
|
||||
using Terraria;
|
||||
using Terraria.DataStructures;
|
||||
@@ -18,11 +19,9 @@ namespace CalamityMod.Tiles.Furniture
|
||||
Main.tileLavaDeath[Type] = true;
|
||||
TileObjectData.newTile.CopyFrom(TileObjectData.Style1x2);
|
||||
TileObjectData.addTile(Type);
|
||||
LocalizedText name = CreateMapEntryName();
|
||||
// name.SetDefault("Vigorous Candle");
|
||||
AdjTiles = new int[] { TileID.Candles };
|
||||
AddToArray(ref TileID.Sets.RoomNeeds.CountsAsTorch);
|
||||
AddMapEntry(new Color(238, 145, 105), name);
|
||||
AddMapEntry(new Color(238, 145, 105), CalamityUtils.GetItemName<VigorousCandle>());
|
||||
AnimationFrameHeight = 34;
|
||||
}
|
||||
|
||||
|
||||
@@ -1,4 +1,5 @@
|
||||
using CalamityMod.Buffs.Placeables;
|
||||
using CalamityMod.Items.Placeables.Furniture;
|
||||
using Microsoft.Xna.Framework;
|
||||
using Terraria;
|
||||
using Terraria.DataStructures;
|
||||
@@ -18,11 +19,9 @@ namespace CalamityMod.Tiles.Furniture
|
||||
Main.tileLavaDeath[Type] = true;
|
||||
TileObjectData.newTile.CopyFrom(TileObjectData.Style1x2);
|
||||
TileObjectData.addTile(Type);
|
||||
LocalizedText name = CreateMapEntryName();
|
||||
// name.SetDefault("Resilient Candle");
|
||||
AdjTiles = new int[] { TileID.Candles };
|
||||
AddToArray(ref TileID.Sets.RoomNeeds.CountsAsTorch);
|
||||
AddMapEntry(new Color(238, 145, 105), name);
|
||||
AddMapEntry(new Color(238, 145, 105), CalamityUtils.GetItemName<ResilientCandle>());
|
||||
AnimationFrameHeight = 34;
|
||||
}
|
||||
|
||||
|
||||
@@ -18,9 +18,7 @@ namespace CalamityMod.Tiles.Furniture
|
||||
TileObjectData.newTile.CopyFrom(TileObjectData.Style2x2);
|
||||
TileObjectData.addTile(Type);
|
||||
AnimationFrameHeight = 36;
|
||||
LocalizedText name = CreateMapEntryName();
|
||||
// name.SetDefault("Sea Minnow Jar");
|
||||
AddMapEntry(new Color(65, 105, 225), name);
|
||||
AddMapEntry(new Color(65, 105, 225), CalamityUtils.GetItemName<SeaMinnowJar>());
|
||||
}
|
||||
|
||||
public override bool CreateDust(int i, int j, ref int type)
|
||||
|
||||
@@ -1,4 +1,5 @@
|
||||
using CalamityMod.Buffs.Placeables;
|
||||
using CalamityMod.Items.Placeables.Furniture;
|
||||
using Microsoft.Xna.Framework;
|
||||
using Microsoft.Xna.Framework.Graphics;
|
||||
using Terraria;
|
||||
@@ -14,10 +15,7 @@ namespace CalamityMod.Tiles.Furniture
|
||||
public override void SetStaticDefaults()
|
||||
{
|
||||
this.SetUpCandle();
|
||||
ItemDrop = ModContent.ItemType<Items.Placeables.Furniture.TranquilityCandle>();
|
||||
LocalizedText name = CreateMapEntryName();
|
||||
// name.SetDefault("Tranquility Candle");
|
||||
AddMapEntry(new Color(238, 145, 105), name);
|
||||
AddMapEntry(new Color(238, 145, 105), CalamityUtils.GetItemName<Items.Placeables.Furniture.TranquilityCandle>());
|
||||
AdjTiles = new int[] { TileID.Candles };
|
||||
}
|
||||
|
||||
|
||||
@@ -13,9 +13,7 @@ namespace CalamityMod.Tiles.Furniture
|
||||
public override void SetStaticDefaults()
|
||||
{
|
||||
this.SetUpLantern();
|
||||
LocalizedText name = CreateMapEntryName();
|
||||
// name.SetDefault("Twinkler in a Bottle");
|
||||
AddMapEntry(new Color(255, 99, 71), name);
|
||||
AddMapEntry(new Color(255, 99, 71), CalamityUtils.GetItemName<TwinklerInABottle>());
|
||||
AnimationFrameHeight = 36;
|
||||
|
||||
TileID.Sets.DisableSmartCursor[Type] = true;
|
||||
|
||||
@@ -35,9 +35,7 @@ namespace CalamityMod.Tiles.Furniture
|
||||
Main.tileNoAttach[Type] = true;
|
||||
TileObjectData.newTile.CopyFrom(TileObjectData.Style2x2);
|
||||
TileObjectData.addTile(Type);
|
||||
LocalizedText name = CreateMapEntryName();
|
||||
// name.SetDefault("Wulfrum Lure");
|
||||
AddMapEntry(new Color(194, 255, 67), name);
|
||||
AddMapEntry(new Color(194, 255, 67), CalamityUtils.GetItemName<WulfrumLureItem>());
|
||||
TileID.Sets.DisableSmartCursor[Type] = true;
|
||||
|
||||
DustType = 83;
|
||||
|
||||
@@ -1,4 +1,5 @@
|
||||
using CalamityMod.Buffs.Placeables;
|
||||
using CalamityMod.Items.Placeables.Furniture;
|
||||
using Microsoft.Xna.Framework;
|
||||
using Terraria;
|
||||
using Terraria.DataStructures;
|
||||
@@ -18,11 +19,8 @@ namespace CalamityMod.Tiles.Furniture
|
||||
Main.tileLavaDeath[Type] = true;
|
||||
TileObjectData.newTile.CopyFrom(TileObjectData.Style1x2);
|
||||
TileObjectData.addTile(Type);
|
||||
LocalizedText name = CreateMapEntryName();
|
||||
// name.SetDefault("Spiteful Candle");
|
||||
AdjTiles = new int[] { TileID.Candles };
|
||||
AddToArray(ref TileID.Sets.RoomNeeds.CountsAsTorch);
|
||||
AddMapEntry(new Color(238, 145, 105), name);
|
||||
AddMapEntry(new Color(238, 145, 105), CalamityUtils.GetItemName<SpitefulCandle>());
|
||||
AnimationFrameHeight = 34;
|
||||
}
|
||||
|
||||
|
||||
@@ -13,9 +13,7 @@ namespace CalamityMod.Tiles.FurnitureAbyss
|
||||
public override void SetStaticDefaults()
|
||||
{
|
||||
this.SetUpTorch(true, true);
|
||||
LocalizedText name = CreateMapEntryName();
|
||||
// name.SetDefault("Torch");
|
||||
AddMapEntry(new Color(253, 221, 3), name);
|
||||
AddMapEntry(new Color(253, 221, 3), CalamityUtils.GetItemName(ItemID.Torch));
|
||||
TileID.Sets.DisableSmartCursor[Type] = true;
|
||||
ItemDrop = ModContent.ItemType<Items.Placeables.FurnitureAbyss.AbyssTorch>();
|
||||
AdjTiles = new int[] { TileID.Torches };
|
||||
|
||||
@@ -22,9 +22,7 @@ namespace CalamityMod.Tiles.MusicBoxes
|
||||
TileObjectData.newTile.DrawYOffset = 2;
|
||||
TileObjectData.addTile(Type);
|
||||
TileID.Sets.DisableSmartCursor[Type] = true;
|
||||
LocalizedText name = CreateMapEntryName();
|
||||
// name.SetDefault("Music Box");
|
||||
AddMapEntry(new Color(191, 142, 111), name);
|
||||
AddMapEntry(new Color(191, 142, 111), CalamityUtils.GetItemName(ItemID.MusicBox));
|
||||
}
|
||||
|
||||
public override void MouseOver(int i, int j)
|
||||
|
||||
@@ -11,7 +11,6 @@ namespace CalamityMod.Tiles.Pylons
|
||||
public class AstralPylonTile : BasePylonTile
|
||||
{
|
||||
public override Color LightColor => new Color(0.8f, 0.5f, 0.8f);
|
||||
public override string PylonMapText => "Mods.CalamityMod.ItemName.AstralPylon";
|
||||
public override int AssociatedItem => ModContent.ItemType<AstralPylon>();
|
||||
public override Color PylonMapColor => Color.Coral;
|
||||
public override Color DustColor => Main.rand.NextBool() ? Color.Coral : Color.MediumTurquoise;
|
||||
|
||||
@@ -13,7 +13,6 @@ namespace CalamityMod.Tiles.Pylons
|
||||
public class CragsPylonTile : BasePylonTile
|
||||
{
|
||||
public override Color LightColor => new Color(1f, 0.3f, 0f);
|
||||
public override string PylonMapText => "Mods.CalamityMod.ItemName.CragsPylon";
|
||||
public override int AssociatedItem => ModContent.ItemType<CragsPylon>();
|
||||
public override Color PylonMapColor => Color.OrangeRed;
|
||||
public override Color DustColor => Color.OrangeRed;
|
||||
|
||||
@@ -12,7 +12,6 @@ namespace CalamityMod.Tiles.Pylons
|
||||
public class SulphurPylonTile : BasePylonTile
|
||||
{
|
||||
public override int AssociatedItem => ModContent.ItemType<SulphurPylon>();
|
||||
public override string PylonMapText => "Mods.CalamityMod.ItemName.SulphurPylon";
|
||||
public override Color PylonMapColor => Color.YellowGreen;
|
||||
public override Color DustColor => Color.GreenYellow;
|
||||
public override Color LightColor => new Color(1f, 0.8f, 0f);
|
||||
|
||||
@@ -12,7 +12,6 @@ namespace CalamityMod.Tiles.Pylons
|
||||
public class SunkenPylonTile : BasePylonTile
|
||||
{
|
||||
public override Color LightColor => new Color(0.2f, 0.8f, 1f);
|
||||
public override string PylonMapText => "Mods.CalamityMod.ItemName.SunkenPylon";
|
||||
public override int AssociatedItem => ModContent.ItemType<SunkenPylon>();
|
||||
public override Color PylonMapColor => Color.Turquoise;
|
||||
public override Color DustColor => Color.Cyan;
|
||||
|
||||
@@ -13,9 +13,7 @@ namespace CalamityMod.Tiles.SunkenSea
|
||||
public override void SetStaticDefaults()
|
||||
{
|
||||
this.SetUpTorch(true, true);
|
||||
LocalizedText name = CreateMapEntryName();
|
||||
// name.SetDefault("Torch");
|
||||
AddMapEntry(new Color(253, 221, 3), name);
|
||||
AddMapEntry(new Color(253, 221, 3), CalamityUtils.GetItemName(ItemID.Torch));
|
||||
TileID.Sets.DisableSmartCursor[Type] = true;
|
||||
ItemDrop = ModContent.ItemType<Items.Placeables.Furniture.AlgalPrismTorch>();
|
||||
AdjTiles = new int[] { TileID.Torches };
|
||||
|
||||
@@ -18,8 +18,6 @@ namespace CalamityMod.Tiles.SunkenSea
|
||||
TileObjectData.newTile.CopyFrom(TileObjectData.Style3x2);
|
||||
TileObjectData.addTile(Type);
|
||||
DustType = 253;
|
||||
LocalizedText name = CreateMapEntryName();
|
||||
// name.SetDefault("Brain Coral");
|
||||
AddMapEntry(new Color(36, 61, 111));
|
||||
MineResist = 3f;
|
||||
|
||||
|
||||
@@ -22,11 +22,10 @@ namespace CalamityMod.Tiles.SunkenSea
|
||||
Main.tileLighted[Type] = true;
|
||||
Main.tileShine2[Type] = false;
|
||||
TileID.Sets.ChecksForMerge[Type] = true;
|
||||
//TileID.Sets.WallsMergeWith[Type] = true; Uncomment this when it gets pushed to 1.4 stable (or when we start porting to 1.4.4 which should also have it)
|
||||
TileID.Sets.WallsMergeWith[Type] = true;
|
||||
DustType = 108;
|
||||
ItemDrop = ModContent.ItemType<Items.Placeables.EutrophicGlass>();
|
||||
LocalizedText name = CreateMapEntryName();
|
||||
AddMapEntry(new Color(197, 220, 220), name);
|
||||
AddMapEntry(new Color(197, 220, 220), CalamityUtils.GetItemName<Items.Placeables.EutrophicGlass>());
|
||||
MineResist = 2f;
|
||||
HitSound = SoundID.Shatter;
|
||||
MinPick = 55;
|
||||
|
||||
@@ -1,4 +1,5 @@
|
||||
using Microsoft.Xna.Framework;
|
||||
using CalamityMod.Items.Placeables;
|
||||
using Microsoft.Xna.Framework;
|
||||
using Microsoft.Xna.Framework.Graphics;
|
||||
using Terraria;
|
||||
using Terraria.ID;
|
||||
@@ -31,7 +32,7 @@ namespace CalamityMod.Tiles.SunkenSea
|
||||
ItemDrop = ModContent.ItemType<Items.Placeables.EutrophicSand>();
|
||||
LocalizedText name = CreateMapEntryName();
|
||||
// name.SetDefault("Eutrophic Sand");
|
||||
AddMapEntry(new Color(92, 145, 167), name);
|
||||
AddMapEntry(new Color(92, 145, 167), CalamityUtils.GetItemName<Items.Placeables.EutrophicSand>());
|
||||
|
||||
TileFraming.SetUpUniversalMerge(Type, TileID.Sandstone, out tileAdjacency);
|
||||
TileFraming.SetUpUniversalMerge(Type, TileID.Sand, out secondTileAdjacency);
|
||||
|
||||
@@ -18,8 +18,6 @@ namespace CalamityMod.Tiles.SunkenSea
|
||||
TileObjectData.newTile.Direction = TileObjectDirection.None;
|
||||
TileObjectData.addTile(Type);
|
||||
DustType = 253;
|
||||
LocalizedText name = CreateMapEntryName();
|
||||
// name.SetDefault("Fan Coral");
|
||||
AddMapEntry(new Color(54, 69, 72));
|
||||
MineResist = 3f;
|
||||
|
||||
|
||||
@@ -13,9 +13,7 @@ namespace CalamityMod.Tiles.SunkenSea
|
||||
public override void SetStaticDefaults()
|
||||
{
|
||||
this.SetUpTorch(true, true);
|
||||
LocalizedText name = CreateMapEntryName();
|
||||
// name.SetDefault("Torch");
|
||||
AddMapEntry(new Color(253, 221, 3), name);
|
||||
AddMapEntry(new Color(253, 221, 3), CalamityUtils.GetItemName(ItemID.Torch));
|
||||
TileID.Sets.DisableSmartCursor[Type] = true;
|
||||
ItemDrop = ModContent.ItemType<Items.Placeables.Furniture.NavyPrismTorch>();
|
||||
AdjTiles = new int[] { TileID.Torches };
|
||||
|
||||
@@ -25,9 +25,7 @@ namespace CalamityMod.Tiles.SunkenSea
|
||||
TileID.Sets.ChecksForMerge[Type] = true;
|
||||
DustType = 96;
|
||||
ItemDrop = ModContent.ItemType<Items.Placeables.Navystone>();
|
||||
LocalizedText name = CreateMapEntryName();
|
||||
// name.SetDefault("Navystone");
|
||||
AddMapEntry(new Color(31, 92, 114), name);
|
||||
AddMapEntry(new Color(31, 92, 114), CalamityUtils.GetItemName<Items.Placeables.Navystone>());
|
||||
MineResist = 2f;
|
||||
HitSound = SoundID.Tink;
|
||||
|
||||
|
||||
@@ -15,7 +15,7 @@ namespace CalamityMod.Tiles.SunkenSea
|
||||
this.SetUpTorch(true, true);
|
||||
LocalizedText name = CreateMapEntryName();
|
||||
// name.SetDefault("Torch");
|
||||
AddMapEntry(new Color(253, 221, 3), name);
|
||||
AddMapEntry(new Color(253, 221, 3), CalamityUtils.GetItemName(ItemID.Torch));
|
||||
TileID.Sets.DisableSmartCursor[Type] = true;
|
||||
ItemDrop = ModContent.ItemType<Items.Placeables.Furniture.RefractivePrismTorch>();
|
||||
AdjTiles = new int[] { TileID.Torches };
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
using Microsoft.Xna.Framework;
|
||||
using Microsoft.Xna.Framework;
|
||||
using Terraria;
|
||||
using Terraria.Localization;
|
||||
using Terraria.ModLoader;
|
||||
@@ -16,8 +16,6 @@ namespace CalamityMod.Tiles.SunkenSea
|
||||
TileObjectData.newTile.CopyFrom(TileObjectData.Style2x2);
|
||||
TileObjectData.addTile(Type);
|
||||
DustType = 253;
|
||||
LocalizedText name = CreateMapEntryName();
|
||||
// name.SetDefault("Sea Anemone");
|
||||
AddMapEntry(new Color(54, 69, 72));
|
||||
MineResist = 2f;
|
||||
|
||||
|
||||
@@ -28,9 +28,7 @@ namespace CalamityMod.Tiles.SunkenSea
|
||||
TileID.Sets.ChecksForMerge[Type] = true;
|
||||
DustType = 33;
|
||||
ItemDrop = ModContent.ItemType<Items.Placeables.SeaPrism>();
|
||||
LocalizedText name = CreateMapEntryName();
|
||||
// name.SetDefault("Sea Prism");
|
||||
AddMapEntry(new Color(0, 150, 200), name);
|
||||
AddMapEntry(new Color(0, 150, 200), CalamityUtils.GetItemName<Items.Placeables.SeaPrism>());
|
||||
MineResist = 3f;
|
||||
HitSound = SoundID.Tink;
|
||||
Main.tileSpelunker[Type] = true;
|
||||
|
||||
Loaded 100 of 110 files, more files were not shown because too many files have changed in this diff.
Show more
Reference in new issue
Block a user