Other common furniture (240 items!)

This commit is contained in:
Altixal committed 2023-04-22 23:23:27 +07:00
1 parent be05af98af
commit 03a896e2b8
241 files changed
+434 -2073

No files matched your search

@@ -12,10 +12,6 @@ namespace CalamityMod.Tiles.DraedonStructures
this.SetUpPlatform(true);
HitSound = SoundID.Tink;
DustType = 30;
AddMapEntry(new Color(97, 87, 86));
ItemDrop = ModContent.ItemType<Items.Placeables.DraedonStructures.LaboratoryShelf>();
TileID.Sets.DisableSmartCursor[Type] = true;
AdjTiles = new int[] { TileID.Platforms };
}
public override bool CanExplode(int i, int j) => false;
-4
View File
@@ -12,10 +12,6 @@ namespace CalamityMod.Tiles.DraedonStructures
this.SetUpPlatform(true);
HitSound = SoundID.Tink;
DustType = 32;
AddMapEntry(new Color(128, 90, 77));
ItemDrop = ModContent.ItemType<Items.Placeables.DraedonStructures.RustedShelf>();
TileID.Sets.DisableSmartCursor[Type] = true;
AdjTiles = new int[] { TileID.Platforms };
}
public override bool CanExplode(int i, int j) => false;
+1 -1
View File
@@ -38,7 +38,7 @@ namespace CalamityMod.Tiles.Furniture
AddToArray(ref TileID.Sets.RoomNeeds.CountsAsChair);
TileID.Sets.DisableSmartCursor[Type] = true;
AddMapEntry(new Color(191, 142, 111), CalamityUtils.GetItemName<AuricToilet>());
AddMapEntry(new Color(191, 142, 111), Language.GetText("MapObject.Toilet"));
AdjTiles = new int[] { TileID.Chairs };
}
@@ -11,11 +11,6 @@ namespace CalamityMod.Tiles.Furniture.BossTrophies
{
public class AnahitaTrophyTile : ModTile
{
public override void SetStaticDefaults()
{
this.SetUpTrophy();
AddMapEntry(new Color(120, 85, 60), Language.GetText("MapObject.Trophy"));
DustType = 7;
}
public override void SetStaticDefaults() => this.SetUpTrophy();
}
}
}
@@ -11,11 +11,6 @@ namespace CalamityMod.Tiles.Furniture.BossTrophies
{
public class ApolloTrophyTile : ModTile
{
public override void SetStaticDefaults()
{
this.SetUpTrophy();
AddMapEntry(new Color(120, 85, 60), Language.GetText("MapObject.Trophy"));
DustType = 7;
}
public override void SetStaticDefaults() => this.SetUpTrophy();
}
}
}
@@ -11,11 +11,6 @@ namespace CalamityMod.Tiles.Furniture.BossTrophies
{
public class AquaticScourgeTrophyTile : ModTile
{
public override void SetStaticDefaults()
{
this.SetUpTrophy();
AddMapEntry(new Color(120, 85, 60), Language.GetText("MapObject.Trophy"));
DustType = 7;
}
public override void SetStaticDefaults() => this.SetUpTrophy();
}
}
}
@@ -11,11 +11,6 @@ namespace CalamityMod.Tiles.Furniture.BossTrophies
{
public class AresTrophyTile : ModTile
{
public override void SetStaticDefaults()
{
this.SetUpTrophy();
AddMapEntry(new Color(120, 85, 60), Language.GetText("MapObject.Trophy"));
DustType = 7;
}
public override void SetStaticDefaults() => this.SetUpTrophy();
}
}
}
@@ -11,11 +11,6 @@ namespace CalamityMod.Tiles.Furniture.BossTrophies
{
public class ArtemisTrophyTile : ModTile
{
public override void SetStaticDefaults()
{
this.SetUpTrophy();
AddMapEntry(new Color(120, 85, 60), Language.GetText("MapObject.Trophy"));
DustType = 7;
}
public override void SetStaticDefaults() => this.SetUpTrophy();
}
}
}
@@ -11,11 +11,6 @@ namespace CalamityMod.Tiles.Furniture.BossTrophies
{
public class AstrumAureusTrophyTile : ModTile
{
public override void SetStaticDefaults()
{
this.SetUpTrophy();
AddMapEntry(new Color(120, 85, 60), Language.GetText("MapObject.Trophy"));
DustType = 7;
}
public override void SetStaticDefaults() => this.SetUpTrophy();
}
}
}
@@ -11,11 +11,6 @@ namespace CalamityMod.Tiles.Furniture.BossTrophies
{
public class AstrumDeusTrophyTile : ModTile
{
public override void SetStaticDefaults()
{
this.SetUpTrophy();
AddMapEntry(new Color(120, 85, 60), Language.GetText("MapObject.Trophy"));
DustType = 7;
}
public override void SetStaticDefaults() => this.SetUpTrophy();
}
}
}
@@ -11,11 +11,6 @@ namespace CalamityMod.Tiles.Furniture.BossTrophies
{
public class BrimstoneElementalTrophyTile : ModTile
{
public override void SetStaticDefaults()
{
this.SetUpTrophy();
AddMapEntry(new Color(120, 85, 60), Language.GetText("MapObject.Trophy"));
DustType = 7;
}
public override void SetStaticDefaults() => this.SetUpTrophy();
}
}
}
@@ -10,11 +10,6 @@ namespace CalamityMod.Tiles.Furniture.BossTrophies
[LegacyName("CalamitasTrophyTile")]
public class CalamitasCloneTrophyTile : ModTile
{
public override void SetStaticDefaults()
{
this.SetUpTrophy();
AddMapEntry(new Color(120, 85, 60), Language.GetText("MapObject.Trophy"));
DustType = 7;
}
public override void SetStaticDefaults() => this.SetUpTrophy();
}
}
}
@@ -11,11 +11,6 @@ namespace CalamityMod.Tiles.Furniture.BossTrophies
{
public class CataclysmTrophyTile : ModTile
{
public override void SetStaticDefaults()
{
this.SetUpTrophy();
AddMapEntry(new Color(120, 85, 60), Language.GetText("MapObject.Trophy"));
DustType = 7;
}
public override void SetStaticDefaults() => this.SetUpTrophy();
}
}
}
@@ -11,11 +11,6 @@ namespace CalamityMod.Tiles.Furniture.BossTrophies
{
public class CatastropheTrophyTile : ModTile
{
public override void SetStaticDefaults()
{
this.SetUpTrophy();
AddMapEntry(new Color(120, 85, 60), Language.GetText("MapObject.Trophy"));
DustType = 7;
}
public override void SetStaticDefaults() => this.SetUpTrophy();
}
}
}
@@ -11,11 +11,6 @@ namespace CalamityMod.Tiles.Furniture.BossTrophies
{
public class CeaselessVoidTrophyTile : ModTile
{
public override void SetStaticDefaults()
{
this.SetUpTrophy();
AddMapEntry(new Color(120, 85, 60), Language.GetText("MapObject.Trophy"));
DustType = 7;
}
public override void SetStaticDefaults() => this.SetUpTrophy();
}
}
}
@@ -11,11 +11,6 @@ namespace CalamityMod.Tiles.Furniture.BossTrophies
{
public class CrabulonTrophyTile : ModTile
{
public override void SetStaticDefaults()
{
this.SetUpTrophy();
AddMapEntry(new Color(120, 85, 60), Language.GetText("MapObject.Trophy"));
DustType = 7;
}
public override void SetStaticDefaults() => this.SetUpTrophy();
}
}
}
@@ -11,11 +11,6 @@ namespace CalamityMod.Tiles.Furniture.BossTrophies
{
public class CragmawMireTrophyTile : ModTile
{
public override void SetStaticDefaults()
{
this.SetUpTrophy();
AddMapEntry(new Color(120, 85, 60), Language.GetText("MapObject.Trophy"));
DustType = 7;
}
public override void SetStaticDefaults() => this.SetUpTrophy();
}
}
}
@@ -11,11 +11,6 @@ namespace CalamityMod.Tiles.Furniture.BossTrophies
{
public class CryogenTrophyTile : ModTile
{
public override void SetStaticDefaults()
{
this.SetUpTrophy();
AddMapEntry(new Color(120, 85, 60), Language.GetText("MapObject.Trophy"));
DustType = 7;
}
public override void SetStaticDefaults() => this.SetUpTrophy();
}
}
}
@@ -11,11 +11,6 @@ namespace CalamityMod.Tiles.Furniture.BossTrophies
{
public class DesertScourgeTrophyTile : ModTile
{
public override void SetStaticDefaults()
{
this.SetUpTrophy();
AddMapEntry(new Color(120, 85, 60), Language.GetText("MapObject.Trophy"));
DustType = 7;
}
public override void SetStaticDefaults() => this.SetUpTrophy();
}
}
}
@@ -11,11 +11,6 @@ namespace CalamityMod.Tiles.Furniture.BossTrophies
{
public class DevourerofGodsTrophyTile : ModTile
{
public override void SetStaticDefaults()
{
this.SetUpTrophy();
AddMapEntry(new Color(120, 85, 60), Language.GetText("MapObject.Trophy"));
DustType = 7;
}
public override void SetStaticDefaults() => this.SetUpTrophy();
}
}
}
@@ -11,11 +11,6 @@ namespace CalamityMod.Tiles.Furniture.BossTrophies
{
public class DragonfollyTrophyTile : ModTile
{
public override void SetStaticDefaults()
{
this.SetUpTrophy();
AddMapEntry(new Color(120, 85, 60), Language.GetText("MapObject.Trophy"));
DustType = 7;
}
public override void SetStaticDefaults() => this.SetUpTrophy();
}
}
}
@@ -11,11 +11,6 @@ namespace CalamityMod.Tiles.Furniture.BossTrophies
{
public class GiantClamTrophyTile : ModTile
{
public override void SetStaticDefaults()
{
this.SetUpTrophy();
AddMapEntry(new Color(120, 85, 60), Language.GetText("MapObject.Trophy"));
DustType = 7;
}
public override void SetStaticDefaults() => this.SetUpTrophy();
}
}
}
@@ -11,11 +11,6 @@ namespace CalamityMod.Tiles.Furniture.BossTrophies
{
public class GreatSandSharkTrophyTile : ModTile
{
public override void SetStaticDefaults()
{
this.SetUpTrophy();
AddMapEntry(new Color(120, 85, 60), Language.GetText("MapObject.Trophy"));
DustType = 7;
}
public override void SetStaticDefaults() => this.SetUpTrophy();
}
}
}
@@ -11,11 +11,6 @@ namespace CalamityMod.Tiles.Furniture.BossTrophies
{
public class HiveMindTrophyTile : ModTile
{
public override void SetStaticDefaults()
{
this.SetUpTrophy();
AddMapEntry(new Color(120, 85, 60), Language.GetText("MapObject.Trophy"));
DustType = 7;
}
public override void SetStaticDefaults() => this.SetUpTrophy();
}
}
}
@@ -11,11 +11,6 @@ namespace CalamityMod.Tiles.Furniture.BossTrophies
{
public class LeviathanTrophyTile : ModTile
{
public override void SetStaticDefaults()
{
this.SetUpTrophy();
AddMapEntry(new Color(120, 85, 60), Language.GetText("MapObject.Trophy"));
DustType = 7;
}
public override void SetStaticDefaults() => this.SetUpTrophy();
}
}
}
@@ -11,11 +11,6 @@ namespace CalamityMod.Tiles.Furniture.BossTrophies
{
public class MaulerTrophyTile : ModTile
{
public override void SetStaticDefaults()
{
this.SetUpTrophy();
AddMapEntry(new Color(120, 85, 60), Language.GetText("MapObject.Trophy"));
DustType = 7;
}
public override void SetStaticDefaults() => this.SetUpTrophy();
}
}
}
@@ -11,11 +11,6 @@ namespace CalamityMod.Tiles.Furniture.BossTrophies
{
public class NuclearTerrorTrophyTile : ModTile
{
public override void SetStaticDefaults()
{
this.SetUpTrophy();
AddMapEntry(new Color(120, 85, 60), Language.GetText("MapObject.Trophy"));
DustType = 7;
}
public override void SetStaticDefaults() => this.SetUpTrophy();
}
}
}
@@ -11,11 +11,6 @@ namespace CalamityMod.Tiles.Furniture.BossTrophies
{
public class OldDukeTrophyTile : ModTile
{
public override void SetStaticDefaults()
{
this.SetUpTrophy();
AddMapEntry(new Color(120, 85, 60), Language.GetText("MapObject.Trophy"));
DustType = 7;
}
public override void SetStaticDefaults() => this.SetUpTrophy();
}
}
}
@@ -11,11 +11,6 @@ namespace CalamityMod.Tiles.Furniture.BossTrophies
{
public class PerforatorTrophyTile : ModTile
{
public override void SetStaticDefaults()
{
this.SetUpTrophy();
AddMapEntry(new Color(120, 85, 60), Language.GetText("MapObject.Trophy"));
DustType = 7;
}
public override void SetStaticDefaults() => this.SetUpTrophy();
}
}
}
@@ -11,11 +11,6 @@ namespace CalamityMod.Tiles.Furniture.BossTrophies
{
public class PlaguebringerGoliathTrophyTile : ModTile
{
public override void SetStaticDefaults()
{
this.SetUpTrophy();
AddMapEntry(new Color(120, 85, 60), Language.GetText("MapObject.Trophy"));
DustType = 7;
}
public override void SetStaticDefaults() => this.SetUpTrophy();
}
}
}
@@ -11,11 +11,6 @@ namespace CalamityMod.Tiles.Furniture.BossTrophies
{
public class PolterghastTrophyTile : ModTile
{
public override void SetStaticDefaults()
{
this.SetUpTrophy();
AddMapEntry(new Color(120, 85, 60), Language.GetText("MapObject.Trophy"));
DustType = 7;
}
public override void SetStaticDefaults() => this.SetUpTrophy();
}
}
}
@@ -11,11 +11,6 @@ namespace CalamityMod.Tiles.Furniture.BossTrophies
{
public class ProfanedGuardianTrophyTile : ModTile
{
public override void SetStaticDefaults()
{
this.SetUpTrophy();
AddMapEntry(new Color(120, 85, 60), Language.GetText("MapObject.Trophy"));
DustType = 7;
}
public override void SetStaticDefaults() => this.SetUpTrophy();
}
}
}
@@ -11,11 +11,6 @@ namespace CalamityMod.Tiles.Furniture.BossTrophies
{
public class ProvidenceTrophyTile : ModTile
{
public override void SetStaticDefaults()
{
this.SetUpTrophy();
AddMapEntry(new Color(120, 85, 60), Language.GetText("MapObject.Trophy"));
DustType = 7;
}
public override void SetStaticDefaults() => this.SetUpTrophy();
}
}
}
@@ -11,11 +11,6 @@ namespace CalamityMod.Tiles.Furniture.BossTrophies
{
public class RavagerTrophyTile : ModTile
{
public override void SetStaticDefaults()
{
this.SetUpTrophy();
AddMapEntry(new Color(120, 85, 60), Language.GetText("MapObject.Trophy"));
DustType = 7;
}
public override void SetStaticDefaults() => this.SetUpTrophy();
}
}
}
@@ -11,11 +11,6 @@ namespace CalamityMod.Tiles.Furniture.BossTrophies
{
public class SignusTrophyTile : ModTile
{
public override void SetStaticDefaults()
{
this.SetUpTrophy();
AddMapEntry(new Color(120, 85, 60), Language.GetText("MapObject.Trophy"));
DustType = 7;
}
public override void SetStaticDefaults() => this.SetUpTrophy();
}
}
}
@@ -11,11 +11,6 @@ namespace CalamityMod.Tiles.Furniture.BossTrophies
{
public class SlimeGodTrophyTile : ModTile
{
public override void SetStaticDefaults()
{
this.SetUpTrophy();
AddMapEntry(new Color(120, 85, 60), Language.GetText("MapObject.Trophy"));
DustType = 7;
}
public override void SetStaticDefaults() => this.SetUpTrophy();
}
}
}
@@ -11,11 +11,6 @@ namespace CalamityMod.Tiles.Furniture.BossTrophies
{
public class StormWeaverTrophyTile : ModTile
{
public override void SetStaticDefaults()
{
this.SetUpTrophy();
AddMapEntry(new Color(120, 85, 60), Language.GetText("MapObject.Trophy"));
DustType = 7;
}
public override void SetStaticDefaults() => this.SetUpTrophy();
}
}
}
@@ -11,11 +11,6 @@ namespace CalamityMod.Tiles.Furniture.BossTrophies
{
public class SupremeCalamitasTrophyTile : ModTile
{
public override void SetStaticDefaults()
{
this.SetUpTrophy();
AddMapEntry(new Color(120, 85, 60), Language.GetText("MapObject.Trophy"));
DustType = 7;
}
public override void SetStaticDefaults() => this.SetUpTrophy();
}
}
}
@@ -11,11 +11,6 @@ namespace CalamityMod.Tiles.Furniture.BossTrophies
{
public class SupremeCataclysmTrophyTile : ModTile
{
public override void SetStaticDefaults()
{
this.SetUpTrophy();
AddMapEntry(new Color(120, 85, 60), Language.GetText("MapObject.Trophy"));
DustType = 7;
}
public override void SetStaticDefaults() => this.SetUpTrophy();
}
}
}
@@ -11,11 +11,6 @@ namespace CalamityMod.Tiles.Furniture.BossTrophies
{
public class SupremeCatastropheTrophyTile : ModTile
{
public override void SetStaticDefaults()
{
this.SetUpTrophy();
AddMapEntry(new Color(120, 85, 60), Language.GetText("MapObject.Trophy"));
DustType = 7;
}
public override void SetStaticDefaults() => this.SetUpTrophy();
}
}
}
@@ -11,11 +11,6 @@ namespace CalamityMod.Tiles.Furniture.BossTrophies
{
public class ThanatosTrophyTile : ModTile
{
public override void SetStaticDefaults()
{
this.SetUpTrophy();
AddMapEntry(new Color(120, 85, 60), Language.GetText("MapObject.Trophy"));
DustType = 7;
}
public override void SetStaticDefaults() => this.SetUpTrophy();
}
}
}
@@ -11,11 +11,6 @@ namespace CalamityMod.Tiles.Furniture.BossTrophies
{
public class YharonTrophyTile : ModTile
{
public override void SetStaticDefaults()
{
this.SetUpTrophy();
AddMapEntry(new Color(120, 85, 60), Language.GetText("MapObject.Trophy"));
DustType = 7;
}
public override void SetStaticDefaults() => this.SetUpTrophy();
}
}
}
@@ -15,7 +15,6 @@ namespace CalamityMod.Tiles.Furniture.CraftingStations
{
this.SetUpBookcase(true, false, false);
AddMapEntry(new Color(191, 142, 111), CalamityUtils.GetItemName<Items.Placeables.Furniture.CraftingStations.MonolithAmalgam>());
AnimationFrameHeight = 54;
}
public override bool CreateDust(int i, int j, ref int type)
@@ -14,12 +14,7 @@ namespace CalamityMod.Tiles.Furniture.Fountains
{
int mode = 0;
public override void SetStaticDefaults()
{
this.SetUpFountain();
AddMapEntry(new Color(71, 93, 107), Language.GetText("MapObject.WaterFountain"));
AnimationFrameHeight = 72;
}
public override void SetStaticDefaults() => this.SetUpFountain(new Color(71, 93, 107));
public override void NearbyEffects(int i, int j, bool closer)
{
@@ -13,12 +13,7 @@ namespace CalamityMod.Tiles.Furniture.Fountains
{
public class AstralFountainTile : ModTile
{
public override void SetStaticDefaults()
{
this.SetUpFountain();
AddMapEntry(new Color(59, 50, 77), Language.GetText("MapObject.WaterFountain"));
AnimationFrameHeight = 72;
}
public override void SetStaticDefaults() => this.SetUpFountain(new Color(59, 50, 77));
public override void NearbyEffects(int i, int j, bool closer)
{
@@ -13,12 +13,7 @@ namespace CalamityMod.Tiles.Furniture.Fountains
{
public class SulphurousFountainTile : ModTile
{
public override void SetStaticDefaults()
{
this.SetUpFountain();
AddMapEntry(new Color(141, 121, 77), Language.GetText("MapObject.WaterFountain"));
AnimationFrameHeight = 72;
}
public override void SetStaticDefaults() => this.SetUpFountain(new Color(141, 121, 77));
public override void NearbyEffects(int i, int j, bool closer)
{
@@ -12,12 +12,7 @@ namespace CalamityMod.Tiles.Furniture.Fountains
{
public class SunkenSeaFountainTile : ModTile
{
public override void SetStaticDefaults()
{
this.SetUpFountain();
AddMapEntry(new Color(104, 195, 255), Language.GetText("MapObject.WaterFountain"));
AnimationFrameHeight = 72;
}
public override void SetStaticDefaults() => this.SetUpFountain(new Color(104, 195, 255));
public override void NearbyEffects(int i, int j, bool closer)
{
+1 -6
View File
@@ -12,12 +12,7 @@ namespace CalamityMod.Tiles.Furniture
{
public class ThaumaticChairTile : ModTile
{
public override void SetStaticDefaults()
{
this.SetUpChair(true);
AddMapEntry(new Color(236, 123, 89), Language.GetText("MapObject.Chair"));
AdjTiles = new int[] { TileID.Chairs };
}
public override void SetStaticDefaults() => this.SetUpChair(true);
public override bool CreateDust(int i, int j, ref int type)
{
+1 -9
View File
@@ -10,15 +10,7 @@ namespace CalamityMod.Tiles.FurnitureAbyss
{
public class AbyssBed : ModTile
{
public override void SetStaticDefaults()
{
this.SetUpBed(true);
LocalizedText name = CreateMapEntryName();
// name.SetDefault("Bed");
AddMapEntry(new Color(191, 142, 111), name);
TileID.Sets.DisableSmartCursor[Type] = true;
AdjTiles = new int[] { TileID.Beds };
}
public override void SetStaticDefaults() => this.SetUpBed(true);
public override bool CreateDust(int i, int j, ref int type)
{
+1 -9
View File
@@ -9,15 +9,7 @@ namespace CalamityMod.Tiles.FurnitureAbyss
{
public class AbyssBookcase : ModTile
{
public override void SetStaticDefaults()
{
this.SetUpBookcase(true);
LocalizedText name = CreateMapEntryName();
// name.SetDefault("Bookcase");
AddMapEntry(new Color(191, 142, 111), name);
AnimationFrameHeight = 54;
AdjTiles = new int[] { TileID.Bookcases };
}
public override void SetStaticDefaults() => this.SetUpBookcase(true);
public override bool CreateDust(int i, int j, ref int type)
{
+1 -6
View File
@@ -11,12 +11,7 @@ namespace CalamityMod.Tiles.FurnitureAbyss
{
public class AbyssChair : ModTile
{
public override void SetStaticDefaults()
{
this.SetUpChair(true);
AddMapEntry(new Color(191, 142, 111), Language.GetText("MapObject.Chair"));
AdjTiles = new int[] { TileID.Chairs };
}
public override void SetStaticDefaults() => this.SetUpChair(true);
public override bool CreateDust(int i, int j, ref int type)
{
-4
View File
@@ -13,10 +13,6 @@ namespace CalamityMod.Tiles.FurnitureAbyss
public override void SetStaticDefaults()
{
this.SetUpClock(true);
LocalizedText name = CreateMapEntryName();
// name.SetDefault("Grandfather Clock");
AddMapEntry(new Color(191, 142, 111), name);
AdjTiles = new int[] { TileID.GrandfatherClocks };
AnimationFrameHeight = 90;
}
+7 -31
View File
@@ -13,45 +13,21 @@ namespace CalamityMod.Tiles.FurnitureAbyss
public override void SetStaticDefaults()
{
this.SetUpDresser();
LocalizedText name = CreateMapEntryName();
AddMapEntry(new Color(191, 142, 111), name);
TileID.Sets.DisableSmartCursor[Type] = true;
AdjTiles = new int[] { TileID.Dressers };
AddMapEntry(new Color(191, 142, 111), CalamityUtils.GetItemName<Items.Placeables.FurnitureAbyss.AbyssDresser>(), CalamityUtils.GetMapChestName);
}
public override LocalizedText DefaultContainerName(int frameX, int frameY) => CreateMapEntryName();
public override bool CreateDust(int i, int j, ref int type)
{
Dust.NewDust(new Vector2(i, j) * 16f, 16, 16, 1, 0f, 0f, 1, new Color(100, 130, 150), 1f);
return false;
}
public override bool HasSmartInteract(int i, int j, SmartInteractScanSettings settings) => true;
public override void NumDust(int i, int j, bool fail, ref int num) => num = fail ? 1 : 3;
public override bool RightClick(int i, int j)
{
return CalamityUtils.DresserRightClick();
}
public override void MouseOverFar(int i, int j)
{
CalamityUtils.DresserMouseFar<Items.Placeables.FurnitureAbyss.AbyssDresser>();
}
public override void MouseOver(int i, int j)
{
CalamityUtils.DresserMouseOver<Items.Placeables.FurnitureAbyss.AbyssDresser>();
}
public override void NumDust(int i, int j, bool fail, ref int num)
{
num = fail ? 1 : 3;
}
public override void KillMultiTile(int i, int j, int frameX, int frameY)
{
Chest.DestroyChest(i, j);
}
public override LocalizedText DefaultContainerName(int frameX, int frameY) => CalamityUtils.GetItemName<Items.Placeables.FurnitureAbyss.AbyssDresser>();
public override void MouseOver(int i, int j) => CalamityUtils.DresserMouseOver<Items.Placeables.FurnitureAbyss.AbyssDresser>();
public override void MouseOverFar(int i, int j) => CalamityUtils.DresserMouseFar<Items.Placeables.FurnitureAbyss.AbyssDresser>();
public override void KillMultiTile(int i, int j, int frameX, int frameY) => Chest.DestroyChest(i, j);
public override bool RightClick(int i, int j) => CalamityUtils.DresserRightClick();
}
}
+1 -6
View File
@@ -9,12 +9,7 @@ namespace CalamityMod.Tiles.FurnitureAbyss
{
public class AbyssSink : ModTile
{
public override void SetStaticDefaults()
{
this.SetUpSink(true);
AddMapEntry(new Color(191, 142, 111), Language.GetText("MapObject.Sink"));
AdjTiles = new int[] { TileID.Sinks };
}
public override void SetStaticDefaults() => this.SetUpSink(true);
public override bool CreateDust(int i, int j, ref int type)
{
+1 -5
View File
@@ -10,11 +10,7 @@ namespace CalamityMod.Tiles.FurnitureAbyss
{
public class AbyssSofa : ModTile
{
public override void SetStaticDefaults()
{
this.SetUpSofa(true);
AddMapEntry(new Color(191, 142, 111), Language.GetText("Bench"));
}
public override void SetStaticDefaults() => this.SetUpSofa(true);
public override bool CreateDust(int i, int j, ref int type)
{
+1 -7
View File
@@ -8,13 +8,7 @@ namespace CalamityMod.Tiles.FurnitureAbyss
[LegacyName("AbyssPiano")]
public class AbyssSynth : ModTile
{
public override void SetStaticDefaults()
{
this.SetUpPiano(true);
LocalizedText name = CreateMapEntryName();
// name.SetDefault("Abyss Synth");
AddMapEntry(new Color(191, 142, 111), name);
}
public override void SetStaticDefaults() => this.SetUpPiano(true);
public override bool CreateDust(int i, int j, ref int type)
{
+1 -6
View File
@@ -9,12 +9,7 @@ namespace CalamityMod.Tiles.FurnitureAbyss
{
public class AbyssTable : ModTile
{
public override void SetStaticDefaults()
{
this.SetUpTable(true);
AddMapEntry(new Color(191, 142, 111), Language.GetText("MapObject.Table"));
AdjTiles = new int[] { TileID.Tables };
}
public override void SetStaticDefaults() => this.SetUpTable(true);
public override bool CreateDust(int i, int j, ref int type)
{
+1 -9
View File
@@ -10,15 +10,7 @@ namespace CalamityMod.Tiles.FurnitureAbyss
[LegacyName("AbyssWorkbench")]
public class AbyssWorkBench : ModTile
{
public override void SetStaticDefaults()
{
this.SetUpWorkBench(true);
LocalizedText name = CreateMapEntryName();
// name.SetDefault("Work Bench");
AddMapEntry(new Color(191, 142, 111), name);
TileID.Sets.DisableSmartCursor[Type] = true;
AdjTiles = new int[] { TileID.WorkBenches };
}
public override void SetStaticDefaults() => this.SetUpWorkBench(true);
public override bool CreateDust(int i, int j, ref int type)
{
@@ -11,10 +11,6 @@ namespace CalamityMod.Tiles.FurnitureAbyss
{
this.SetUpPlatform(true);
HitSound = SoundID.Tink;
AddMapEntry(new Color(191, 142, 111));
ItemDrop = ModContent.ItemType<Items.Placeables.FurnitureAbyss.SmoothAbyssGravelPlatform>();
TileID.Sets.DisableSmartCursor[Type] = true;
AdjTiles = new int[] { TileID.Platforms };
}
public override bool CreateDust(int i, int j, ref int type)
+1 -9
View File
@@ -11,15 +11,7 @@ namespace CalamityMod.Tiles.FurnitureAcidwood
{
public class AcidwoodBedTile : ModTile
{
public override void SetStaticDefaults()
{
this.SetUpBed();
LocalizedText name = CreateMapEntryName();
// name.SetDefault("Bed");
AddMapEntry(new Color(191, 142, 111), name);
TileID.Sets.DisableSmartCursor[Type] = true;
AdjTiles = new int[] { TileID.Beds };
}
public override void SetStaticDefaults() => this.SetUpBed();
public override bool CreateDust(int i, int j, ref int type)
{
+1 -5
View File
@@ -11,11 +11,7 @@ namespace CalamityMod.Tiles.FurnitureAcidwood
{
public class AcidwoodBenchTile : ModTile
{
public override void SetStaticDefaults()
{
this.SetUpSofa();
AddMapEntry(new Color(191, 142, 111), Language.GetText("Bench"));
}
public override void SetStaticDefaults() => this.SetUpSofa(false, true);
public override bool CreateDust(int i, int j, ref int type)
{
@@ -10,15 +10,7 @@ namespace CalamityMod.Tiles.FurnitureAcidwood
{
public class AcidwoodBookcaseTile : ModTile
{
public override void SetStaticDefaults()
{
this.SetUpBookcase();
LocalizedText name = CreateMapEntryName();
// name.SetDefault("Bookcase");
AddMapEntry(new Color(191, 142, 111), name);
AnimationFrameHeight = 54;
AdjTiles = new int[] { TileID.Bookcases };
}
public override void SetStaticDefaults() => this.SetUpBookcase();
public override bool CreateDust(int i, int j, ref int type)
{
+1 -8
View File
@@ -11,14 +11,7 @@ namespace CalamityMod.Tiles.FurnitureAcidwood
{
public class AcidwoodClockTile : ModTile
{
public override void SetStaticDefaults()
{
this.SetUpClock();
LocalizedText name = CreateMapEntryName();
// name.SetDefault("Grandfather Clock");
AddMapEntry(new Color(191, 142, 111), name);
AdjTiles = new int[] { TileID.GrandfatherClocks };
}
public override void SetStaticDefaults() => this.SetUpClock();
public override bool HasSmartInteract(int i, int j, SmartInteractScanSettings settings) => true;
+6 -19
View File
@@ -14,10 +14,7 @@ namespace CalamityMod.Tiles.FurnitureAcidwood
public override void SetStaticDefaults()
{
this.SetUpDresser();
LocalizedText name = CreateMapEntryName();
AddMapEntry(new Color(191, 142, 111), name);
TileID.Sets.DisableSmartCursor[Type] = true;
AdjTiles = new int[] { TileID.Dressers };
AddMapEntry(new Color(191, 142, 111), CalamityUtils.GetItemName<AcidwoodDresser>(), CalamityUtils.GetMapChestName);
}
public override LocalizedText DefaultContainerName(int frameX, int frameY) => CreateMapEntryName();
@@ -27,23 +24,13 @@ namespace CalamityMod.Tiles.FurnitureAcidwood
Dust.NewDust(new Vector2(i, j) * 16f, 16, 16, 7, 0f, 0f, 1, new Color(255, 255, 255), 1f);
return false;
}
public override bool HasSmartInteract(int i, int j, SmartInteractScanSettings settings) => true;
public override void NumDust(int i, int j, bool fail, ref int num) => num = fail ? 1 : 3;
public override bool RightClick(int i, int j) => CalamityUtils.DresserRightClick();
public override void MouseOverFar(int i, int j) => CalamityUtils.DresserMouseFar<AcidwoodDresser>();
public override LocalizedText DefaultContainerName(int frameX, int frameY) => CalamityUtils.GetItemName<AcidwoodDresser>();
public override void MouseOver(int i, int j) => CalamityUtils.DresserMouseOver<AcidwoodDresser>();
public override void NumDust(int i, int j, bool fail, ref int num)
{
num = fail ? 1 : 3;
}
public override void KillMultiTile(int i, int j, int frameX, int frameY)
{
Chest.DestroyChest(i, j);
}
public override void MouseOverFar(int i, int j) => CalamityUtils.DresserMouseFar<AcidwoodDresser>();
public override void KillMultiTile(int i, int j, int frameX, int frameY) => Chest.DestroyChest(i, j);
public override bool RightClick(int i, int j) => CalamityUtils.DresserRightClick();
}
}
+1 -7
View File
@@ -8,13 +8,7 @@ namespace CalamityMod.Tiles.FurnitureAcidwood
{
public class AcidwoodPianoTile : ModTile
{
public override void SetStaticDefaults()
{
this.SetUpPiano();
LocalizedText name = CreateMapEntryName();
// name.SetDefault("Piano");
AddMapEntry(new Color(191, 142, 111), name);
}
public override void SetStaticDefaults() => this.SetUpPiano();
public override bool CreateDust(int i, int j, ref int type)
{
@@ -8,14 +8,7 @@ namespace CalamityMod.Tiles.FurnitureAcidwood
{
public class AcidwoodPlatformTile : ModTile
{
public override void SetStaticDefaults()
{
this.SetUpPlatform();
AddMapEntry(new Color(218, 169, 97));
ItemDrop = ModContent.ItemType<AcidwoodPlatform>();
TileID.Sets.DisableSmartCursor[Type] = true;
AdjTiles = new int[] { TileID.Platforms };
}
public override void SetStaticDefaults() => this.SetUpPlatform();
public override bool CreateDust(int i, int j, ref int type)
{
+1 -6
View File
@@ -10,12 +10,7 @@ namespace CalamityMod.Tiles.FurnitureAcidwood
{
public class AcidwoodSinkTile : ModTile
{
public override void SetStaticDefaults()
{
this.SetUpSink();
AddMapEntry(new Color(191, 142, 111), Language.GetText("MapObject.Sink"));
AdjTiles = new int[] { TileID.Sinks };
}
public override void SetStaticDefaults() => this.SetUpSink();
public override bool CreateDust(int i, int j, ref int type)
{
+1 -6
View File
@@ -10,12 +10,7 @@ namespace CalamityMod.Tiles.FurnitureAcidwood
{
public class AcidwoodTableTile : ModTile
{
public override void SetStaticDefaults()
{
this.SetUpTable();
AddMapEntry(new Color(191, 142, 111), Language.GetText("MapObject.Table"));
AdjTiles = new int[] { TileID.Tables };
}
public override void SetStaticDefaults() => this.SetUpTable();
public override bool CreateDust(int i, int j, ref int type)
{
@@ -11,15 +11,7 @@ namespace CalamityMod.Tiles.FurnitureAcidwood
[LegacyName("AcidwoodWorkbenchTile")]
public class AcidwoodWorkBenchTile : ModTile
{
public override void SetStaticDefaults()
{
this.SetUpWorkBench();
LocalizedText name = CreateMapEntryName();
// name.SetDefault("Work Bench");
AddMapEntry(new Color(191, 142, 111), name);
TileID.Sets.DisableSmartCursor[Type] = true;
AdjTiles = new int[] { TileID.WorkBenches };
}
public override void SetStaticDefaults() => this.SetUpWorkBench();
public override bool CreateDust(int i, int j, ref int type)
{
+1 -8
View File
@@ -11,14 +11,7 @@ namespace CalamityMod.Tiles.FurnitureAncient
{
public class AncientBed : ModTile
{
public override void SetStaticDefaults()
{
this.SetUpBed(true);
LocalizedText name = CreateMapEntryName();
// name.SetDefault("Bed");
AddMapEntry(new Color(191, 142, 111), name);
AdjTiles = new int[] { TileID.Beds };
}
public override void SetStaticDefaults() => this.SetUpBed(true);
public override bool CreateDust(int i, int j, ref int type)
{
+1 -9
View File
@@ -9,15 +9,7 @@ namespace CalamityMod.Tiles.FurnitureAncient
{
public class AncientBookcase : ModTile
{
public override void SetStaticDefaults()
{
this.SetUpBookcase(true);
LocalizedText name = CreateMapEntryName();
// name.SetDefault("Bookcase");
AddMapEntry(new Color(191, 142, 111), name);
AnimationFrameHeight = 54;
AdjTiles = new int[] { TileID.Bookcases };
}
public override void SetStaticDefaults() => this.SetUpBookcase(true);
public override bool CreateDust(int i, int j, ref int type)
{
+1 -6
View File
@@ -11,12 +11,7 @@ namespace CalamityMod.Tiles.FurnitureAncient
{
public class AncientChair : ModTile
{
public override void SetStaticDefaults()
{
this.SetUpChair(true);
AddMapEntry(new Color(191, 142, 111), Language.GetText("MapObject.Chair"));
AdjTiles = new int[] { TileID.Chairs };
}
public override void SetStaticDefaults() => this.SetUpChair(true);
public override bool CreateDust(int i, int j, ref int type)
{
+8 -32
View File
@@ -13,46 +13,22 @@ namespace CalamityMod.Tiles.FurnitureAncient
public override void SetStaticDefaults()
{
this.SetUpDresser();
LocalizedText name = CreateMapEntryName();
AddMapEntry(new Color(191, 142, 111), name);
TileID.Sets.DisableSmartCursor[Type] = true;
AdjTiles = new int[] { TileID.Dressers };
AddMapEntry(new Color(191, 142, 111), CalamityUtils.GetItemName<Items.Placeables.FurnitureAncient.AncientDresser>(), CalamityUtils.GetMapChestName);
}
public override LocalizedText DefaultContainerName(int frameX, int frameY) => CreateMapEntryName();
public override bool CreateDust(int i, int j, ref int type)
{
Dust.NewDust(new Vector2(i, j) * 16f, 16, 16, 60, 0f, 0f, 1, new Color(255, 255, 255), 1f);
Dust.NewDust(new Vector2(i, j) * 16f, 16, 16, 1, 0f, 0f, 1, new Color(100, 100, 100), 1f);
return false;
}
public override bool HasSmartInteract(int i, int j, SmartInteractScanSettings settings) => true;
public override void NumDust(int i, int j, bool fail, ref int num) => num = fail ? 1 : 3;
public override bool RightClick(int i, int j)
{
return CalamityUtils.DresserRightClick();
}
public override void MouseOverFar(int i, int j)
{
CalamityUtils.DresserMouseFar<Items.Placeables.FurnitureAncient.AncientDresser>();
}
public override void MouseOver(int i, int j)
{
CalamityUtils.DresserMouseOver<Items.Placeables.FurnitureAncient.AncientDresser>();
}
public override void NumDust(int i, int j, bool fail, ref int num)
{
num = fail ? 1 : 3;
}
public override void KillMultiTile(int i, int j, int frameX, int frameY)
{
Chest.DestroyChest(i, j);
}
public override LocalizedText DefaultContainerName(int frameX, int frameY) => CalamityUtils.GetItemName<Items.Placeables.FurnitureAncient.AncientDresser>();
public override void MouseOver(int i, int j) => CalamityUtils.DresserMouseOver<Items.Placeables.FurnitureAncient.AncientDresser>();
public override void MouseOverFar(int i, int j) => CalamityUtils.DresserMouseFar<Items.Placeables.FurnitureAncient.AncientDresser>();
public override void KillMultiTile(int i, int j, int frameX, int frameY) => Chest.DestroyChest(i, j);
public override bool RightClick(int i, int j) => CalamityUtils.DresserRightClick();
}
}
}
+1 -8
View File
@@ -10,15 +10,8 @@ namespace CalamityMod.Tiles.FurnitureAncient
{
public class AncientMonolith : ModTile
{
public override void SetStaticDefaults()
{
this.SetUpClock(true);
LocalizedText name = CreateMapEntryName();
// name.SetDefault("Ancient Monolith");
AddMapEntry(new Color(191, 142, 111), name);
AdjTiles = new int[] { TileID.GrandfatherClocks };
}
int animationFrameWidth = 36;
public override void SetStaticDefaults() => this.SetUpClock(true);
public override bool HasSmartInteract(int i, int j, SmartInteractScanSettings settings) => true;
+1 -5
View File
@@ -8,11 +8,7 @@ namespace CalamityMod.Tiles.FurnitureAncient
{
public class AncientSink : ModTile
{
public override void SetStaticDefaults()
{
this.SetUpSink(true, false, true);
AddMapEntry(new Color(191, 142, 111), Language.GetText("MapObject.Sink"));
}
public override void SetStaticDefaults() => this.SetUpSink(true, false, true);
public override bool CreateDust(int i, int j, ref int type)
{
+1 -5
View File
@@ -10,11 +10,7 @@ namespace CalamityMod.Tiles.FurnitureAncient
{
public class AncientSofa : ModTile
{
public override void SetStaticDefaults()
{
this.SetUpSofa(true);
AddMapEntry(new Color(191, 142, 111), Language.GetText("Bench"));
}
public override void SetStaticDefaults() => this.SetUpSofa(true);
public override bool CreateDust(int i, int j, ref int type)
{
+1 -6
View File
@@ -9,12 +9,7 @@ namespace CalamityMod.Tiles.FurnitureAncient
{
public class AncientTable : ModTile
{
public override void SetStaticDefaults()
{
this.SetUpTable(true);
AddMapEntry(new Color(191, 142, 111), Language.GetText("MapObject.Table"));
AdjTiles = new int[] { TileID.Tables };
}
public override void SetStaticDefaults() => this.SetUpTable(true);
public override bool CreateDust(int i, int j, ref int type)
{
+1 -9
View File
@@ -10,15 +10,7 @@ namespace CalamityMod.Tiles.FurnitureAncient
[LegacyName("AncientWorkbench")]
public class AncientWorkBench : ModTile
{
public override void SetStaticDefaults()
{
this.SetUpWorkBench(true);
LocalizedText name = CreateMapEntryName();
// name.SetDefault("Work Bench");
AddMapEntry(new Color(191, 142, 111), name);
TileID.Sets.DisableSmartCursor[Type] = true;
AdjTiles = new int[] { TileID.WorkBenches };
}
public override void SetStaticDefaults() => this.SetUpWorkBench(true);
public override bool CreateDust(int i, int j, ref int type)
{
+1 -8
View File
@@ -10,14 +10,7 @@ namespace CalamityMod.Tiles.FurnitureAshen
{
public class AshenBed : ModTile
{
public override void SetStaticDefaults()
{
this.SetUpBed(true);
LocalizedText name = CreateMapEntryName();
// name.SetDefault("Bed");
AddMapEntry(new Color(191, 142, 111), name);
AdjTiles = new int[] { TileID.Beds };
}
public override void SetStaticDefaults() => this.SetUpBed(true);
public override bool CreateDust(int i, int j, ref int type)
{
+1 -9
View File
@@ -9,15 +9,7 @@ namespace CalamityMod.Tiles.FurnitureAshen
{
public class AshenBookcase : ModTile
{
public override void SetStaticDefaults()
{
this.SetUpBookcase(true);
LocalizedText name = CreateMapEntryName();
// name.SetDefault("Bookcase");
AddMapEntry(new Color(191, 142, 111), name);
AnimationFrameHeight = 72;
AdjTiles = new int[] { TileID.Bookcases };
}
public override void SetStaticDefaults() => this.SetUpBookcase(true);
public override bool CreateDust(int i, int j, ref int type)
{
+1 -6
View File
@@ -11,12 +11,7 @@ namespace CalamityMod.Tiles.FurnitureAshen
{
public class AshenChair : ModTile
{
public override void SetStaticDefaults()
{
this.SetUpChair(true);
AddMapEntry(new Color(191, 142, 111), Language.GetText("MapObject.Chair"));
AdjTiles = new int[] { TileID.Chairs };
}
public override void SetStaticDefaults() => this.SetUpChair(true);
public override bool CreateDust(int i, int j, ref int type)
{
+8 -33
View File
@@ -13,47 +13,22 @@ namespace CalamityMod.Tiles.FurnitureAshen
public override void SetStaticDefaults()
{
this.SetUpDresser();
Main.tileLavaDeath[Type] = false;
LocalizedText name = CreateMapEntryName();
AddMapEntry(new Color(191, 142, 111), name);
TileID.Sets.DisableSmartCursor[Type] = true;
AdjTiles = new int[] { TileID.Dressers };
AddMapEntry(new Color(191, 142, 111), CalamityUtils.GetItemName<Items.Placeables.FurnitureAshen.AshenDresser>(), CalamityUtils.GetMapChestName);
}
public override LocalizedText DefaultContainerName(int frameX, int frameY) => CreateMapEntryName();
public override bool CreateDust(int i, int j, ref int type)
{
Dust.NewDust(new Vector2(i, j) * 16f, 16, 16, 60, 0f, 0f, 1, new Color(255, 255, 255), 1f);
Dust.NewDust(new Vector2(i, j) * 16f, 16, 16, 1, 0f, 0f, 1, new Color(100, 100, 100), 1f);
return false;
}
public override bool HasSmartInteract(int i, int j, SmartInteractScanSettings settings) => true;
public override void NumDust(int i, int j, bool fail, ref int num) => num = fail ? 1 : 3;
public override bool RightClick(int i, int j)
{
return CalamityUtils.DresserRightClick();
}
public override void MouseOverFar(int i, int j)
{
CalamityUtils.DresserMouseFar<Items.Placeables.FurnitureAshen.AshenDresser>();
}
public override void MouseOver(int i, int j)
{
CalamityUtils.DresserMouseOver<Items.Placeables.FurnitureAshen.AshenDresser>();
}
public override void NumDust(int i, int j, bool fail, ref int num)
{
num = fail ? 1 : 3;
}
public override void KillMultiTile(int i, int j, int frameX, int frameY)
{
Chest.DestroyChest(i, j);
}
public override LocalizedText DefaultContainerName(int frameX, int frameY) => CalamityUtils.GetItemName<Items.Placeables.FurnitureAshen.AshenDresser>();
public override void MouseOver(int i, int j) => CalamityUtils.DresserMouseOver<Items.Placeables.FurnitureAshen.AshenDresser>();
public override void MouseOverFar(int i, int j) => CalamityUtils.DresserMouseFar<Items.Placeables.FurnitureAshen.AshenDresser>();
public override void KillMultiTile(int i, int j, int frameX, int frameY) => Chest.DestroyChest(i, j);
public override bool RightClick(int i, int j) => CalamityUtils.DresserRightClick();
}
}
}
+2 -9
View File
@@ -12,15 +12,8 @@ namespace CalamityMod.Tiles.FurnitureAshen
{
public class AshenMonolith : ModTile
{
public override void SetStaticDefaults()
{
this.SetUpClock(true);
LocalizedText name = CreateMapEntryName();
AddMapEntry(new Color(191, 142, 111), name);
// name.SetDefault("Ashen Monolith");
AdjTiles = new int[] { TileID.GrandfatherClocks };
}
int animationFrameWidth = 36;
public int animationFrameWidth = 36;
public override void SetStaticDefaults() => this.SetUpClock(true);
public override bool HasSmartInteract(int i, int j, SmartInteractScanSettings settings) => true;
+1 -8
View File
@@ -7,14 +7,7 @@ namespace CalamityMod.Tiles.FurnitureAshen
{
public class AshenPlatform : ModTile
{
public override void SetStaticDefaults()
{
this.SetUpPlatform(true);
AddMapEntry(new Color(191, 142, 111));
ItemDrop = ModContent.ItemType<Items.Placeables.FurnitureAshen.AshenPlatform>();
TileID.Sets.DisableSmartCursor[Type] = true;
AdjTiles = new int[] { TileID.Platforms };
}
public override void SetStaticDefaults() => this.SetUpPlatform(true);
public override bool CreateDust(int i, int j, ref int type)
{
+1 -5
View File
@@ -8,11 +8,7 @@ namespace CalamityMod.Tiles.FurnitureAshen
{
public class AshenSink : ModTile
{
public override void SetStaticDefaults()
{
this.SetUpSink(true, false, true);
AddMapEntry(new Color(191, 142, 111), Language.GetText("MapObject.Sink"));
}
public override void SetStaticDefaults() => this.SetUpSink(true, false, true);
public override bool CreateDust(int i, int j, ref int type)
{
+1 -5
View File
@@ -10,11 +10,7 @@ namespace CalamityMod.Tiles.FurnitureAshen
{
public class AshenSofa : ModTile
{
public override void SetStaticDefaults()
{
this.SetUpSofa(true);
AddMapEntry(new Color(191, 142, 111), Language.GetText("Bench"));
}
public override void SetStaticDefaults() => this.SetUpSofa(true);
public override bool CreateDust(int i, int j, ref int type)
{
+1 -6
View File
@@ -9,12 +9,7 @@ namespace CalamityMod.Tiles.FurnitureAshen
{
public class AshenTable : ModTile
{
public override void SetStaticDefaults()
{
this.SetUpTable(true);
AddMapEntry(new Color(191, 142, 111), Language.GetText("MapObject.Table"));
AdjTiles = new int[] { TileID.Tables };
}
public override void SetStaticDefaults() => this.SetUpTable(true);
public override bool CreateDust(int i, int j, ref int type)
{
+1 -9
View File
@@ -10,15 +10,7 @@ namespace CalamityMod.Tiles.FurnitureAshen
[LegacyName("AshenWorkbench")]
public class AshenWorkBench : ModTile
{
public override void SetStaticDefaults()
{
this.SetUpWorkBench(true);
LocalizedText name = CreateMapEntryName();
// name.SetDefault("Work Bench");
AddMapEntry(new Color(191, 142, 111), name);
TileID.Sets.DisableSmartCursor[Type] = true;
AdjTiles = new int[] { TileID.WorkBenches };
}
public override void SetStaticDefaults() => this.SetUpWorkBench(true);
public override bool CreateDust(int i, int j, ref int type)
{
+1 -8
View File
@@ -11,14 +11,7 @@ namespace CalamityMod.Tiles.FurnitureBotanic
{
public class BotanicBed : ModTile
{
public override void SetStaticDefaults()
{
this.SetUpBed(true);
LocalizedText name = CreateMapEntryName();
// name.SetDefault("Bed");
AddMapEntry(new Color(191, 142, 111), name);
AdjTiles = new int[] { TileID.Beds };
}
public override void SetStaticDefaults() => this.SetUpBed(true);
public override bool CreateDust(int i, int j, ref int type)
{
+1 -5
View File
@@ -11,11 +11,7 @@ namespace CalamityMod.Tiles.FurnitureBotanic
{
public class BotanicBench : ModTile
{
public override void SetStaticDefaults()
{
this.SetUpSofa(true);
AddMapEntry(new Color(191, 142, 111), Language.GetText("Bench"));
}
public override void SetStaticDefaults() => this.SetUpSofa(true, true);
public override bool CreateDust(int i, int j, ref int type)
{
+1 -9
View File
@@ -10,15 +10,7 @@ namespace CalamityMod.Tiles.FurnitureBotanic
{
public class BotanicBookcase : ModTile
{
public override void SetStaticDefaults()
{
this.SetUpBookcase(true);
LocalizedText name = CreateMapEntryName();
// name.SetDefault("Bookcase");
AddMapEntry(new Color(191, 142, 111), name);
AnimationFrameHeight = 54;
AdjTiles = new int[] { TileID.Bookcases };
}
public override void SetStaticDefaults() => this.SetUpBookcase(true);
public override bool CreateDust(int i, int j, ref int type)
{
+1 -6
View File
@@ -12,12 +12,7 @@ namespace CalamityMod.Tiles.FurnitureBotanic
{
public class BotanicChair : ModTile
{
public override void SetStaticDefaults()
{
this.SetUpChair(true);
AddMapEntry(new Color(191, 142, 111), Language.GetText("MapObject.Chair"));
AdjTiles = new int[] { TileID.Chairs };
}
public override void SetStaticDefaults() => this.SetUpChair(true);
public override bool CreateDust(int i, int j, ref int type)
{
+1 -8
View File
@@ -11,14 +11,7 @@ namespace CalamityMod.Tiles.FurnitureBotanic
{
public class BotanicClock : ModTile
{
public override void SetStaticDefaults()
{
this.SetUpClock(true);
LocalizedText name = CreateMapEntryName();
// name.SetDefault("Grandfather Clock");
AddMapEntry(new Color(191, 142, 111), name);
AdjTiles = new int[] { TileID.GrandfatherClocks };
}
public override void SetStaticDefaults() => this.SetUpClock(true);
public override bool HasSmartInteract(int i, int j, SmartInteractScanSettings settings) => true;
+7 -31
View File
@@ -14,46 +14,22 @@ namespace CalamityMod.Tiles.FurnitureBotanic
public override void SetStaticDefaults()
{
this.SetUpDresser();
LocalizedText name = CreateMapEntryName();
AddMapEntry(new Color(191, 142, 111), name);
TileID.Sets.DisableSmartCursor[Type] = true;
AdjTiles = new int[] { TileID.Dressers };
AddMapEntry(new Color(191, 142, 111), CalamityUtils.GetItemName<Items.Placeables.FurnitureBotanic.BotanicDresser>(), CalamityUtils.GetMapChestName);
}
public override LocalizedText DefaultContainerName(int frameX, int frameY) => CreateMapEntryName();
public override bool CreateDust(int i, int j, ref int type)
{
Dust.NewDust(new Vector2(i, j) * 16f, 16, 16, ModContent.DustType<BloomTileGold>(), 0f, 0f, 1, new Color(255, 255, 255), 1f);
Dust.NewDust(new Vector2(i, j) * 16f, 16, 16, ModContent.DustType<BloomTileLeaves>(), 0f, 0f, 1, new Color(255, 255, 255), 1f);
return false;
}
public override bool HasSmartInteract(int i, int j, SmartInteractScanSettings settings) => true;
public override void NumDust(int i, int j, bool fail, ref int num) => num = fail ? 1 : 3;
public override bool RightClick(int i, int j)
{
return CalamityUtils.DresserRightClick();
}
public override void MouseOverFar(int i, int j)
{
CalamityUtils.DresserMouseFar<Items.Placeables.FurnitureBotanic.BotanicDresser>();
}
public override void MouseOver(int i, int j)
{
CalamityUtils.DresserMouseOver<Items.Placeables.FurnitureBotanic.BotanicDresser>();
}
public override void NumDust(int i, int j, bool fail, ref int num)
{
num = fail ? 1 : 3;
}
public override void KillMultiTile(int i, int j, int frameX, int frameY)
{
Chest.DestroyChest(i, j);
}
public override LocalizedText DefaultContainerName(int frameX, int frameY) => CalamityUtils.GetItemName<Items.Placeables.FurnitureBotanic.BotanicDresser>();
public override void MouseOver(int i, int j) => CalamityUtils.DresserMouseOver<Items.Placeables.FurnitureBotanic.BotanicDresser>();
public override void MouseOverFar(int i, int j) => CalamityUtils.DresserMouseFar<Items.Placeables.FurnitureBotanic.BotanicDresser>();
public override void KillMultiTile(int i, int j, int frameX, int frameY) => Chest.DestroyChest(i, j);
public override bool RightClick(int i, int j) => CalamityUtils.DresserRightClick();
}
}
+1 -7
View File
@@ -8,13 +8,7 @@ namespace CalamityMod.Tiles.FurnitureBotanic
{
public class BotanicPiano : ModTile
{
public override void SetStaticDefaults()
{
this.SetUpPiano(true);
LocalizedText name = CreateMapEntryName();
// name.SetDefault("Piano");
AddMapEntry(new Color(191, 142, 111), name);
}
public override void SetStaticDefaults() => this.SetUpPiano(true);
public override bool CreateDust(int i, int j, ref int type)
{
+1 -8
View File
@@ -8,14 +8,7 @@ namespace CalamityMod.Tiles.FurnitureBotanic
{
public class BotanicPlatform : ModTile
{
public override void SetStaticDefaults()
{
this.SetUpPlatform(true);
AddMapEntry(new Color(191, 142, 111));
ItemDrop = ModContent.ItemType<Items.Placeables.FurnitureBotanic.BotanicPlatform>();
TileID.Sets.DisableSmartCursor[Type] = true;
AdjTiles = new int[] { TileID.Platforms };
}
public override void SetStaticDefaults() => this.SetUpPlatform(true);
public override bool CreateDust(int i, int j, ref int type)
{
+1 -5
View File
@@ -10,11 +10,7 @@ namespace CalamityMod.Tiles.FurnitureBotanic
{
public class BotanicSink : ModTile
{
public override void SetStaticDefaults()
{
this.SetUpSink(true, false, false, true);
AddMapEntry(new Color(191, 142, 111), Language.GetText("MapObject.Sink"));
}
public override void SetStaticDefaults() => this.SetUpSink(true, false, false, true);
public override bool CreateDust(int i, int j, ref int type)
{
+1 -6
View File
@@ -10,12 +10,7 @@ namespace CalamityMod.Tiles.FurnitureBotanic
{
public class BotanicTable : ModTile
{
public override void SetStaticDefaults()
{
this.SetUpTable(true);
AddMapEntry(new Color(191, 142, 111), Language.GetText("MapObject.Table"));
AdjTiles = new int[] { TileID.Tables };
}
public override void SetStaticDefaults() => this.SetUpTable(true);
public override bool CreateDust(int i, int j, ref int type)
{
+1 -9
View File
@@ -10,15 +10,7 @@ namespace CalamityMod.Tiles.FurnitureBotanic
{
public class BotanicWorkBench : ModTile
{
public override void SetStaticDefaults()
{
this.SetUpWorkBench(true);
LocalizedText name = CreateMapEntryName();
// name.SetDefault("Work Bench");
AddMapEntry(new Color(191, 142, 111), name);
TileID.Sets.DisableSmartCursor[Type] = true;
AdjTiles = new int[] { TileID.WorkBenches };
}
public override void SetStaticDefaults() => this.SetUpWorkBench(true);
public override bool CreateDust(int i, int j, ref int type)
{
+1 -8
View File
@@ -10,14 +10,7 @@ namespace CalamityMod.Tiles.FurnitureCosmilite
{
public class CosmiliteBed : ModTile
{
public override void SetStaticDefaults()
{
this.SetUpBed(true);
LocalizedText name = CreateMapEntryName();
// name.SetDefault("Bed");
AddMapEntry(new Color(191, 142, 111), name);
AdjTiles = new int[] { TileID.Beds };
}
public override void SetStaticDefaults() => this.SetUpBed(true);
public override bool CreateDust(int i, int j, ref int type)
{
Loaded 100 of 241 files, more files were not shown because too many files have changed in this diff. Show more