Tile fixes and adjustments
Some resprites too
No files matched your search
@@ -1567,66 +1567,66 @@ namespace CalamityMod
|
||||
calamity.TileType("AshenTable"),
|
||||
calamity.TileType("AshenWorkbench"),
|
||||
calamity.TileType("BotanicBathtub"),
|
||||
calamity.TileType("CosmiliteBath"),
|
||||
calamity.TileType("EutrophicBathtub"),
|
||||
calamity.TileType("OccultBathtub"),
|
||||
calamity.TileType("PlaguedPlateBathtub"),
|
||||
calamity.TileType("ProfanedBath"),
|
||||
calamity.TileType("SilvaBathtub"),
|
||||
calamity.TileType("StatigelBath"),
|
||||
calamity.TileType("StratusBathtub"),
|
||||
calamity.TileType("VoidBath"),
|
||||
calamity.TileType("VoidBookcase"),
|
||||
calamity.TileType("BotanicBookcase"),
|
||||
calamity.TileType("BotanicDresser"),
|
||||
calamity.TileType("BotanicPiano"),
|
||||
calamity.TileType("BotanicTable"),
|
||||
calamity.TileType("BotanicWorkBench"),
|
||||
calamity.TileType("CosmiliteBath"),
|
||||
calamity.TileType("CosmiliteBookcase"),
|
||||
calamity.TileType("CosmiliteDresser"),
|
||||
calamity.TileType("CosmilitePiano"),
|
||||
calamity.TileType("CosmiliteTable"),
|
||||
calamity.TileType("CosmiliteWorkbench"),
|
||||
calamity.TileType("EutrophicBathtub"),
|
||||
calamity.TileType("EutrophicBookcase"),
|
||||
calamity.TileType("EutrophicDresser"),
|
||||
calamity.TileType("EutrophicPiano"),
|
||||
calamity.TileType("EutrophicTable"),
|
||||
calamity.TileType("EutrophicWorkBench"),
|
||||
calamity.TileType("OccultBathtub"),
|
||||
calamity.TileType("OccultBookcase"),
|
||||
calamity.TileType("OccultDresser"),
|
||||
calamity.TileType("OccultPiano"),
|
||||
calamity.TileType("OccultTable"),
|
||||
calamity.TileType("OccultWorkBench"),
|
||||
calamity.TileType("PlaguedPlateBathtub"),
|
||||
calamity.TileType("PlaguedPlateBookcase"),
|
||||
calamity.TileType("PlaguedPlateDresser"),
|
||||
calamity.TileType("PlaguedPlatePiano"),
|
||||
calamity.TileType("PlaguedPlateTable"),
|
||||
calamity.TileType("PlaguedPlateWorkbench"),
|
||||
calamity.TileType("ProfanedBath"),
|
||||
calamity.TileType("ProfanedBookcase"),
|
||||
calamity.TileType("ProfanedDresser"),
|
||||
calamity.TileType("ProfanedPiano"),
|
||||
calamity.TileType("ProfanedTable"),
|
||||
calamity.TileType("ProfanedWorkbench"),
|
||||
calamity.TileType("SilvaBathtub"),
|
||||
calamity.TileType("SilvaBookcase"),
|
||||
calamity.TileType("SilvaDresser"),
|
||||
calamity.TileType("SilvaPiano"),
|
||||
calamity.TileType("SilvaTable"),
|
||||
calamity.TileType("SilvaWorkBench"),
|
||||
calamity.TileType("StatigelBath"),
|
||||
calamity.TileType("StatigelBookcase"),
|
||||
calamity.TileType("StatigelDresser"),
|
||||
calamity.TileType("StatigelPiano"),
|
||||
calamity.TileType("StatigelTable"),
|
||||
calamity.TileType("StatigelWorkbench"),
|
||||
calamity.TileType("StratusBathtub"),
|
||||
calamity.TileType("StratusBookcase"),
|
||||
calamity.TileType("StatigelBookcase"),
|
||||
calamity.TileType("SilvaBookcase"),
|
||||
calamity.TileType("ProfanedBookcase"),
|
||||
calamity.TileType("PlaguedPlateBookcase"),
|
||||
calamity.TileType("OccultBookcase"),
|
||||
calamity.TileType("EutrophicBookcase"),
|
||||
calamity.TileType("CosmiliteBookcase"),
|
||||
calamity.TileType("BotanicBookcase"),
|
||||
calamity.TileType("VoidDresser"),
|
||||
calamity.TileType("StratusDresser"),
|
||||
calamity.TileType("StatigelDresser"),
|
||||
calamity.TileType("SilvaDresser"),
|
||||
calamity.TileType("ProfanedDresser"),
|
||||
calamity.TileType("PlaguedPlateDresser"),
|
||||
calamity.TileType("OccultDresser"),
|
||||
calamity.TileType("EutrophicDresser"),
|
||||
calamity.TileType("CosmiliteDresser"),
|
||||
calamity.TileType("BotanicDresser"),
|
||||
calamity.TileType("VoidPiano"),
|
||||
calamity.TileType("StratusPiano"),
|
||||
calamity.TileType("StatigelPiano"),
|
||||
calamity.TileType("SilvaPiano"),
|
||||
calamity.TileType("ProfanedPiano"),
|
||||
calamity.TileType("PlaguedPlatePiano"),
|
||||
calamity.TileType("OccultPiano"),
|
||||
calamity.TileType("EutrophicPiano"),
|
||||
calamity.TileType("CosmilitePiano"),
|
||||
calamity.TileType("BotanicPiano"),
|
||||
calamity.TileType("VoidTable"),
|
||||
calamity.TileType("StratusTable"),
|
||||
calamity.TileType("StatigelTable"),
|
||||
calamity.TileType("SilvaTable"),
|
||||
calamity.TileType("ProfanedTable"),
|
||||
calamity.TileType("PlaguedPlateTable"),
|
||||
calamity.TileType("OccultTable"),
|
||||
calamity.TileType("EutrophicTable"),
|
||||
calamity.TileType("CosmiliteTable"),
|
||||
calamity.TileType("BotanicTable"),
|
||||
calamity.TileType("VoidWorkbench"),
|
||||
calamity.TileType("StratusWorkbench"),
|
||||
calamity.TileType("StatigelWorkbench"),
|
||||
calamity.TileType("SilvaWorkBench"),
|
||||
calamity.TileType("ProfanedWorkbench"),
|
||||
calamity.TileType("PlaguedPlateWorkbench"),
|
||||
calamity.TileType("OccultWorkbench"),
|
||||
calamity.TileType("EutrophicWorkBench"),
|
||||
calamity.TileType("CosmiliteWorkbench"),
|
||||
calamity.TileType("BotanicWorkBench")
|
||||
};
|
||||
calamity.TileType("VoidBath"),
|
||||
calamity.TileType("VoidBookcase"),
|
||||
calamity.TileType("VoidDresser"),
|
||||
calamity.TileType("VoidPiano"),
|
||||
calamity.TileType("VoidTable"),
|
||||
calamity.TileType("VoidWorkbench")
|
||||
};
|
||||
|
||||
chairList = new List<int>()
|
||||
{
|
||||
@@ -1639,36 +1639,37 @@ namespace CalamityMod
|
||||
calamity.TileType("AshenBed"),
|
||||
calamity.TileType("AshenChair"),
|
||||
calamity.TileType("AshenSofa"),
|
||||
calamity.TileType("StratusBed"),
|
||||
calamity.TileType("VoidBed"),
|
||||
calamity.TileType("StatigelBed"),
|
||||
calamity.TileType("SilvaBed"),
|
||||
calamity.TileType("ProfanedBed"),
|
||||
calamity.TileType("PlaguedPlateBed"),
|
||||
calamity.TileType("OccultBed"),
|
||||
calamity.TileType("EutrophicBed"),
|
||||
calamity.TileType("CosmiliteBed"),
|
||||
calamity.TileType("VoidChair"),
|
||||
calamity.TileType("StatusChair"),
|
||||
calamity.TileType("StatigelChair"),
|
||||
calamity.TileType("SilvaChair"),
|
||||
calamity.TileType("ProfanedChair"),
|
||||
calamity.TileType("PlaguedPlateChair"),
|
||||
calamity.TileType("OccultChair"),
|
||||
calamity.TileType("EutrophicChair"),
|
||||
calamity.TileType("CosmiliteChair"),
|
||||
calamity.TileType("BotanicChair"),
|
||||
calamity.TileType("VoidSofa"),
|
||||
calamity.TileType("StatusSofa"),
|
||||
calamity.TileType("StatigelSofa"),
|
||||
calamity.TileType("PlaguedPlateSofa"),
|
||||
calamity.TileType("OccultSofa"),
|
||||
calamity.TileType("CosmiliteSofa"),
|
||||
calamity.TileType("SilvaBench"),
|
||||
calamity.TileType("ProfanedBench"),
|
||||
calamity.TileType("EutrophicBench"),
|
||||
calamity.TileType("BotanicBench")
|
||||
};
|
||||
calamity.TileType("BotanicBed"),
|
||||
calamity.TileType("BotanicBench"),
|
||||
calamity.TileType("BotanicChair"),
|
||||
calamity.TileType("CosmiliteBed"),
|
||||
calamity.TileType("CosmiliteChair"),
|
||||
calamity.TileType("CosmiliteSofa"),
|
||||
calamity.TileType("EutrophicBed"),
|
||||
calamity.TileType("EutrophicBench"),
|
||||
calamity.TileType("EutrophicChair"),
|
||||
calamity.TileType("OccultBed"),
|
||||
calamity.TileType("OccultChair"),
|
||||
calamity.TileType("OccultSofa"),
|
||||
calamity.TileType("PlaguedPlateBed"),
|
||||
calamity.TileType("PlaguedPlateChair"),
|
||||
calamity.TileType("PlaguedPlateSofa"),
|
||||
calamity.TileType("ProfanedBed"),
|
||||
calamity.TileType("ProfanedChair"),
|
||||
calamity.TileType("ProfanedBench"),
|
||||
calamity.TileType("SilvaBed"),
|
||||
calamity.TileType("SilvaChair"),
|
||||
calamity.TileType("SilvaBench"),
|
||||
calamity.TileType("StatigelBed"),
|
||||
calamity.TileType("StatigelChair"),
|
||||
calamity.TileType("StatigelSofa"),
|
||||
calamity.TileType("StratusBed"),
|
||||
calamity.TileType("StratusChair"),
|
||||
calamity.TileType("StratusSofa"),
|
||||
calamity.TileType("VoidBed"),
|
||||
calamity.TileType("VoidChair"),
|
||||
calamity.TileType("VoidSofa")
|
||||
};
|
||||
|
||||
lightList = new List<int>()
|
||||
{
|
||||
@@ -1680,6 +1681,7 @@ namespace CalamityMod
|
||||
calamity.TileType("TranquilityCandle"),
|
||||
calamity.TileType("YellowCandle"),
|
||||
calamity.TileType("SeaPrismCrystals"),
|
||||
|
||||
calamity.TileType("AbyssCandelabra"),
|
||||
calamity.TileType("AbyssCandle"),
|
||||
calamity.TileType("AbyssChandelier"),
|
||||
@@ -1697,103 +1699,102 @@ namespace CalamityMod
|
||||
calamity.TileType("AshenCandle"),
|
||||
calamity.TileType("AshenCandelabra"),
|
||||
calamity.TileType("AshenLamp"),
|
||||
calamity.TileType("AshenLantern"),
|
||||
calamity.TileType("PlaguedPlateBasin"),
|
||||
calamity.TileType("ProfanedBasin"),
|
||||
calamity.TileType("SilvaBasin"),
|
||||
calamity.TileType("CosmiliteBasin"),
|
||||
calamity.TileType("VoidChandelier"),
|
||||
calamity.TileType("StratusChandelier"),
|
||||
calamity.TileType("StatigelChandelier"),
|
||||
calamity.TileType("SilvaChandelier"),
|
||||
calamity.TileType("ProfanedChandelier"),
|
||||
calamity.TileType("PlaguedPlateChandelier"),
|
||||
calamity.TileType("OccultChandelier"),
|
||||
calamity.TileType("EutrophicChandelier"),
|
||||
calamity.TileType("CosmiliteChandelier"),
|
||||
calamity.TileType("BotanicChandelier"),
|
||||
calamity.TileType("VoidCandle"),
|
||||
calamity.TileType("StratusCandle"),
|
||||
calamity.TileType("AshenLantern"),
|
||||
calamity.TileType("BotanicCandle"),
|
||||
calamity.TileType("BotanicCandelabra"),
|
||||
calamity.TileType("BotanicChandelier"),
|
||||
calamity.TileType("BotanicLamp"),
|
||||
calamity.TileType("BotanicLantern"),
|
||||
calamity.TileType("CosmiliteCandle"),
|
||||
calamity.TileType("CosmiliteCandelabra"),
|
||||
calamity.TileType("CosmiliteChandelier"),
|
||||
calamity.TileType("CosmiliteLamp"),
|
||||
calamity.TileType("CosmiliteLantern"),
|
||||
calamity.TileType("CosmiliteSconce"),
|
||||
calamity.TileType("EutrophicCandle"),
|
||||
calamity.TileType("EutrophicCandelabra"),
|
||||
calamity.TileType("EutrophicChandelier"),
|
||||
calamity.TileType("EutrophicLamp"),
|
||||
calamity.TileType("EutrophicLantern"),
|
||||
calamity.TileType("PlaguedPlateBasin"),
|
||||
calamity.TileType("PlaguedPlateCandle"),
|
||||
calamity.TileType("PlaguedPlateCandelabra"),
|
||||
calamity.TileType("PlaguedPlateChandelier"),
|
||||
calamity.TileType("PlaguedPlateLamp"),
|
||||
calamity.TileType("PlaguedPlateLantern"),
|
||||
calamity.TileType("OccultCandle"),
|
||||
calamity.TileType("OccultCandelabra"),
|
||||
calamity.TileType("OccultChandelier"),
|
||||
calamity.TileType("OccultLamp"),
|
||||
calamity.TileType("OccultLantern"),
|
||||
calamity.TileType("ProfanedBasin"),
|
||||
calamity.TileType("ProfanedCandle"),
|
||||
calamity.TileType("ProfanedCandelabra"),
|
||||
calamity.TileType("ProfanedChandelier"),
|
||||
calamity.TileType("ProfanedLamp"),
|
||||
calamity.TileType("ProfanedLantern"),
|
||||
calamity.TileType("SilvaBasin"),
|
||||
calamity.TileType("SilvaCandle"),
|
||||
calamity.TileType("SilvaCandelabra"),
|
||||
calamity.TileType("SilvaChandelier"),
|
||||
calamity.TileType("SilvaLamp"),
|
||||
calamity.TileType("SilvaLantern"),
|
||||
calamity.TileType("StatigelChandelier"),
|
||||
calamity.TileType("StatigelCandle"),
|
||||
calamity.TileType("SilvaCandle"),
|
||||
calamity.TileType("ProfanedCandle"),
|
||||
calamity.TileType("PlaguedPlateCandle"),
|
||||
calamity.TileType("OccultCandle"),
|
||||
calamity.TileType("EutrophicCandle"),
|
||||
calamity.TileType("CosmiliteCandle"),
|
||||
calamity.TileType("BotanicCandle"),
|
||||
calamity.TileType("VoidCandelabra"),
|
||||
calamity.TileType("StratusCandelabra"),
|
||||
calamity.TileType("StatigelCandelabra"),
|
||||
calamity.TileType("SilvaCandelabra"),
|
||||
calamity.TileType("ProfanedCandelabra"),
|
||||
calamity.TileType("PlaguedPlateCandelabra"),
|
||||
calamity.TileType("OccultCandelabra"),
|
||||
calamity.TileType("EutrophicCandelabra"),
|
||||
calamity.TileType("CosmiliteCandelabra"),
|
||||
calamity.TileType("BotanicCandelabra"),
|
||||
calamity.TileType("VoidLamp"),
|
||||
calamity.TileType("StratusLamp"),
|
||||
calamity.TileType("StatigelLamp"),
|
||||
calamity.TileType("SilvaLamp"),
|
||||
calamity.TileType("ProfanedLamp"),
|
||||
calamity.TileType("PlaguedPlateLamp"),
|
||||
calamity.TileType("OccultLamp"),
|
||||
calamity.TileType("EutrophicLamp"),
|
||||
calamity.TileType("CosmiliteLamp"),
|
||||
calamity.TileType("BotanicLamp"),
|
||||
calamity.TileType("VoidLantern"),
|
||||
calamity.TileType("StratusLantern"),
|
||||
calamity.TileType("StatigelLantern"),
|
||||
calamity.TileType("SilvaLantern"),
|
||||
calamity.TileType("ProfanedLantern"),
|
||||
calamity.TileType("PlaguedPlateLantern"),
|
||||
calamity.TileType("OccultLantern"),
|
||||
calamity.TileType("EutrophicLantern"),
|
||||
calamity.TileType("CosmiliteLantern"),
|
||||
calamity.TileType("BotanicLantern"),
|
||||
calamity.TileType("CosmiliteSconce")
|
||||
};
|
||||
calamity.TileType("StratusCandle"),
|
||||
calamity.TileType("StratusCandelabra"),
|
||||
calamity.TileType("StratusChandelier"),
|
||||
calamity.TileType("StratusLantern"),
|
||||
calamity.TileType("StratusLamp"),
|
||||
calamity.TileType("VoidCandle"),
|
||||
calamity.TileType("VoidCandelabra"),
|
||||
calamity.TileType("VoidChandelier"),
|
||||
calamity.TileType("VoidLamp"),
|
||||
calamity.TileType("VoidLantern")
|
||||
};
|
||||
|
||||
doorList = new List<int>()
|
||||
{
|
||||
calamity.TileType("SmoothVoidstonePlatform"),
|
||||
{
|
||||
calamity.TileType("AbyssDoorOpen"),
|
||||
calamity.TileType("AbyssDoorClosed"),
|
||||
calamity.TileType("AncientDoorOpen"),
|
||||
calamity.TileType("AncientDoorClosed"),
|
||||
calamity.TileType("AshenDoorClosed"),
|
||||
calamity.TileType("AshenDoorOpen"),
|
||||
calamity.TileType("AshenPlatform"),
|
||||
calamity.TileType("BotanicDoorOpen"),
|
||||
calamity.TileType("BotanicDoorClosed"),
|
||||
calamity.TileType("BotanicPlatform"),
|
||||
calamity.TileType("CosmiliteDoorOpen"),
|
||||
calamity.TileType("CosmiliteDoorClosed"),
|
||||
calamity.TileType("CosmilitePlatform"),
|
||||
calamity.TileType("EutrophicDoorOpen"),
|
||||
calamity.TileType("EutrophicDoorClosed"),
|
||||
calamity.TileType("EutrophicPlatform"),
|
||||
calamity.TileType("OccultDoorOpen"),
|
||||
calamity.TileType("OccultDoorClosed"),
|
||||
calamity.TileType("OccultPlatform"),
|
||||
calamity.TileType("PlaguedPlateDoorOpen"),
|
||||
calamity.TileType("PlaguedPlateDoorClosed"),
|
||||
calamity.TileType("PlaguedPlatePlatform"),
|
||||
calamity.TileType("ProfanedDoorOpen"),
|
||||
calamity.TileType("ProfanedDoorClosed"),
|
||||
calamity.TileType("ProfanedPlatform"),
|
||||
calamity.TileType("SilvaDoorOpen"),
|
||||
calamity.TileType("SilvaDoorClosed"),
|
||||
calamity.TileType("SilvaPlatform"),
|
||||
calamity.TileType("SmoothAbyssGravelPlatform"),
|
||||
calamity.TileType("SmoothVoidstonePlatform"),
|
||||
calamity.TileType("StratusDoorOpen"),
|
||||
calamity.TileType("StratusDoorClosed"),
|
||||
calamity.TileType("StatigelPlatform"),
|
||||
calamity.TileType("StratusPlatform"),
|
||||
calamity.TileType("StatigelPlatform"),
|
||||
calamity.TileType("SilvaPlatform"),
|
||||
calamity.TileType("ProfanedPlatform"),
|
||||
calamity.TileType("PlaguedPlatePlatform"),
|
||||
calamity.TileType("OccultPlatform"),
|
||||
calamity.TileType("EutrophicPlatform"),
|
||||
calamity.TileType("CosmilitePlatform"),
|
||||
calamity.TileType("BotanicPlatform"),
|
||||
calamity.TileType("AshenPlatform"),
|
||||
calamity.TileType("SmoothAbyssGravelPlatform"),
|
||||
calamity.TileType("VoidDoorOpen"),
|
||||
calamity.TileType("VoidDoorClosed"),
|
||||
calamity.TileType("StratusDoorOpen"),
|
||||
calamity.TileType("StratusDoorClosed"),
|
||||
calamity.TileType("SilvaDoorOpen"),
|
||||
calamity.TileType("SilvaDoorClosed"),
|
||||
calamity.TileType("ProfanedDoorOpen"),
|
||||
calamity.TileType("ProfanedDoorClosed"),
|
||||
calamity.TileType("PlaguedPlateDoorOpen"),
|
||||
calamity.TileType("PlaguedPlateDoorClosed"),
|
||||
calamity.TileType("OccultDoorOpen"),
|
||||
calamity.TileType("OccultDoorClosed"),
|
||||
calamity.TileType("EutrophicDoorOpen"),
|
||||
calamity.TileType("EutrophicDoorClosed"),
|
||||
calamity.TileType("CosmiliteDoorOpen"),
|
||||
calamity.TileType("CosmiliteDoorClosed"),
|
||||
calamity.TileType("BotanicDoorOpen"),
|
||||
calamity.TileType("BotanicDoorClosed"),
|
||||
calamity.TileType("AshenDoorClosed"),
|
||||
calamity.TileType("AshenDoorOpen"),
|
||||
calamity.TileType("AncientDoorOpen"),
|
||||
calamity.TileType("AncientDoorClosed"),
|
||||
calamity.TileType("AbyssDoorOpen"),
|
||||
calamity.TileType("AbyssDoorClosed")
|
||||
};
|
||||
calamity.TileType("VoidDoorOpen"),
|
||||
calamity.TileType("VoidDoorClosed")
|
||||
};
|
||||
|
||||
zombieList = new List<int>()
|
||||
{
|
||||
|
||||
@@ -1,31 +0,0 @@
|
||||
using Terraria.ID;
|
||||
using Terraria.ModLoader;
|
||||
|
||||
namespace CalamityMod.Items
|
||||
{
|
||||
public class AshenKey : ModItem
|
||||
{
|
||||
public override void SetStaticDefaults()
|
||||
{
|
||||
Tooltip.SetDefault("Used in crafting to lock/unlock ashen chests");
|
||||
}
|
||||
|
||||
public override void SetDefaults()
|
||||
{
|
||||
item.width = 20;
|
||||
item.height = 20;
|
||||
item.maxStack = 99;
|
||||
item.value = 100;
|
||||
item.rare = 1;
|
||||
}
|
||||
|
||||
public override void AddRecipes()
|
||||
{
|
||||
ModRecipe recipe = new ModRecipe(mod);
|
||||
recipe.AddIngredient(ItemID.GoldenKey);
|
||||
recipe.SetResult(this, 1);
|
||||
recipe.AddTile(18);
|
||||
recipe.AddRecipe();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Before Width: | Height: | Size: 410 B |
@@ -7,7 +7,7 @@ namespace CalamityMod.Items
|
||||
{
|
||||
public override void SetStaticDefaults()
|
||||
{
|
||||
Tooltip.SetDefault("Grants access to Locked Ashen Chests");
|
||||
Tooltip.SetDefault("Opens locked ashen chests");
|
||||
}
|
||||
|
||||
public override void SetDefaults()
|
||||
@@ -18,14 +18,5 @@ namespace CalamityMod.Items
|
||||
item.value = 100;
|
||||
item.rare = 1;
|
||||
}
|
||||
|
||||
public override void AddRecipes()
|
||||
{
|
||||
ModRecipe recipe = new ModRecipe(mod);
|
||||
recipe.AddIngredient(ItemID.ShadowKey);
|
||||
recipe.SetResult(this, 1);
|
||||
recipe.AddTile(18);
|
||||
recipe.AddRecipe();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Before Width: | Height: | Size: 258 B After Width: | Height: | Size: 271 B |
|
Before Width: | Height: | Size: 504 B After Width: | Height: | Size: 517 B |
|
Before Width: | Height: | Size: 232 B After Width: | Height: | Size: 236 B |
|
Before Width: | Height: | Size: 406 B After Width: | Height: | Size: 389 B |
|
Before Width: | Height: | Size: 242 B After Width: | Height: | Size: 233 B |
@@ -34,13 +34,6 @@ namespace CalamityMod.Items.Placeables.FurnitureAshen
|
||||
recipe.SetResult(this, 1);
|
||||
recipe.AddTile(null, "AshenAltar");
|
||||
recipe.AddRecipe();
|
||||
recipe = new ModRecipe(mod);
|
||||
recipe.AddIngredient(mod.GetItem("LockedAshenChest"), 1);
|
||||
recipe.AddIngredient(mod.GetItem("AshenKey"), 1);
|
||||
recipe.anyIronBar = true;
|
||||
recipe.SetResult(this, 1);
|
||||
recipe.AddTile(null, "AshenAltar");
|
||||
recipe.AddRecipe();
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -1,47 +0,0 @@
|
||||
using Terraria.ID;
|
||||
using Terraria.ModLoader;
|
||||
|
||||
namespace CalamityMod.Items.Placeables.FurnitureAshen
|
||||
{
|
||||
public class LockedAshenChest : ModItem
|
||||
{
|
||||
public override void SetStaticDefaults()
|
||||
{
|
||||
}
|
||||
|
||||
public override void SetDefaults()
|
||||
{
|
||||
item.width = 26;
|
||||
item.height = 22;
|
||||
item.maxStack = 99;
|
||||
item.useTurn = true;
|
||||
item.autoReuse = true;
|
||||
item.useAnimation = 15;
|
||||
item.useTime = 10;
|
||||
item.useStyle = 1;
|
||||
item.consumable = true;
|
||||
item.rare = 3;
|
||||
item.value = 0;
|
||||
item.createTile = mod.TileType("AshenChestLocked");
|
||||
}
|
||||
|
||||
public override void AddRecipes()
|
||||
{
|
||||
ModRecipe recipe = new ModRecipe(mod);
|
||||
recipe.AddIngredient(null, "SmoothBrimstoneSlag", 8);
|
||||
recipe.AddIngredient(ItemID.IronBar, 2);
|
||||
recipe.AddIngredient(mod.GetItem("AshenKey"), 1);
|
||||
recipe.anyIronBar = true;
|
||||
recipe.SetResult(this, 1);
|
||||
recipe.AddTile(null, "AshenAltar");
|
||||
recipe.AddRecipe();
|
||||
recipe = new ModRecipe(mod);
|
||||
recipe.AddIngredient(mod.GetItem("AshenChest"), 1);
|
||||
recipe.AddIngredient(mod.GetItem("AshenKey"), 1);
|
||||
recipe.anyIronBar = true;
|
||||
recipe.SetResult(this, 1);
|
||||
recipe.AddTile(null, "AshenAltar");
|
||||
recipe.AddRecipe();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Before Width: | Height: | Size: 503 B |
|
Before Width: | Height: | Size: 326 B After Width: | Height: | Size: 417 B |
|
Before Width: | Height: | Size: 329 B After Width: | Height: | Size: 441 B |
|
Before Width: | Height: | Size: 374 B After Width: | Height: | Size: 549 B |
|
Before Width: | Height: | Size: 385 B After Width: | Height: | Size: 618 B |
|
Before Width: | Height: | Size: 321 B After Width: | Height: | Size: 489 B |
|
Before Width: | Height: | Size: 274 B After Width: | Height: | Size: 285 B |
|
Before Width: | Height: | Size: 296 B After Width: | Height: | Size: 330 B |
|
Before Width: | Height: | Size: 378 B After Width: | Height: | Size: 594 B |
|
Before Width: | Height: | Size: 439 B After Width: | Height: | Size: 534 B |
|
Before Width: | Height: | Size: 372 B After Width: | Height: | Size: 513 B |
|
Before Width: | Height: | Size: 351 B After Width: | Height: | Size: 615 B |
|
Before Width: | Height: | Size: 495 B After Width: | Height: | Size: 591 B |
|
Before Width: | Height: | Size: 341 B After Width: | Height: | Size: 423 B |
|
Before Width: | Height: | Size: 271 B After Width: | Height: | Size: 390 B |
|
Before Width: | Height: | Size: 369 B After Width: | Height: | Size: 723 B |
|
Before Width: | Height: | Size: 404 B After Width: | Height: | Size: 573 B |
|
Before Width: | Height: | Size: 355 B After Width: | Height: | Size: 435 B |
|
Before Width: | Height: | Size: 300 B After Width: | Height: | Size: 381 B |
|
Before Width: | Height: | Size: 213 B After Width: | Height: | Size: 368 B |
|
Before Width: | Height: | Size: 351 B After Width: | Height: | Size: 589 B |
@@ -1,6 +1,7 @@
|
||||
using Microsoft.Xna.Framework;
|
||||
using Terraria;
|
||||
using Terraria.ModLoader;
|
||||
using CalamityMod.Utilities;
|
||||
|
||||
namespace CalamityMod.Tiles
|
||||
{
|
||||
@@ -9,8 +10,12 @@ namespace CalamityMod.Tiles
|
||||
public override void SetDefaults()
|
||||
{
|
||||
Main.tileSolid[Type] = true;
|
||||
Main.tileMergeDirt[Type] = true;
|
||||
Main.tileBlockLight[Type] = true;
|
||||
Main.tileMergeDirt[Type] = true;
|
||||
|
||||
TileMerge.MergeGeneralTiles(Type);
|
||||
TileMerge.MergeAbyssTiles(Type);
|
||||
|
||||
drop = mod.ItemType("AbyssGravel");
|
||||
AddMapEntry(new Color(0, 0, 0));
|
||||
mineResist = 10f;
|
||||
|
||||
|
Before Width: | Height: | Size: 7.9 KiB After Width: | Height: | Size: 25 KiB |
@@ -1,7 +1,7 @@
|
||||
using Microsoft.Xna.Framework;
|
||||
using Terraria;
|
||||
using Terraria.ModLoader;
|
||||
using Terraria.ID;
|
||||
using CalamityMod.Utilities;
|
||||
|
||||
namespace CalamityMod.Tiles
|
||||
{
|
||||
@@ -12,7 +12,6 @@ namespace CalamityMod.Tiles
|
||||
Main.tileSolid[Type] = true;
|
||||
Main.tileMergeDirt[Type] = false;
|
||||
Main.tileBlockLight[Type] = true;
|
||||
TileID.Sets.NeedsGrassFraming[Type] = true;
|
||||
soundType = 21;
|
||||
minPick = 50;
|
||||
drop = mod.ItemType("AerialiteBrick");
|
||||
@@ -25,5 +24,10 @@ namespace CalamityMod.Tiles
|
||||
Dust.NewDust(new Vector2(i, j) * 16f, 16, 16, 10, 0f, 0f, 1, new Color(255, 255, 255), 1f);
|
||||
return false;
|
||||
}
|
||||
|
||||
public override bool TileFrame(int i, int j, ref bool resetFrame, ref bool noBreak)
|
||||
{
|
||||
return CustomTileFraming.BetterGemsparkFraming(i, j, resetFrame);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Before Width: | Height: | Size: 16 KiB After Width: | Height: | Size: 6.9 KiB |
@@ -1,6 +1,7 @@
|
||||
using Microsoft.Xna.Framework;
|
||||
using Terraria;
|
||||
using Terraria.ModLoader;
|
||||
using CalamityMod.Utilities;
|
||||
|
||||
namespace CalamityMod.Tiles
|
||||
{
|
||||
@@ -12,7 +13,10 @@ namespace CalamityMod.Tiles
|
||||
Main.tileSolid[Type] = true;
|
||||
Main.tileMergeDirt[Type] = true;
|
||||
Main.tileBlockLight[Type] = true;
|
||||
dustType = mod.DustType("AHSparkle");
|
||||
|
||||
TileMerge.MergeGeneralTiles(Type);
|
||||
|
||||
dustType = mod.DustType("AHSparkle");
|
||||
drop = mod.ItemType("AerialiteOre");
|
||||
ModTranslation name = CreateMapEntryName();
|
||||
name.SetDefault("Aerialite Ore");
|
||||
|
||||
@@ -1,6 +1,5 @@
|
||||
using Microsoft.Xna.Framework;
|
||||
using Terraria;
|
||||
using Terraria.ID;
|
||||
using Terraria.ModLoader;
|
||||
|
||||
namespace CalamityMod.Tiles
|
||||
@@ -34,7 +33,7 @@ namespace CalamityMod.Tiles
|
||||
if (!NPC.AnyNPCs(mod.NPCType("SupremeCalamitas")))
|
||||
{
|
||||
WorldGen.KillTile(i, j, false, false, false);
|
||||
if (!Main.tile[i, j].active() && Main.netMode != NetmodeID.SinglePlayer)
|
||||
if (!Main.tile[i, j].active() && Main.netMode != 0)
|
||||
{
|
||||
NetMessage.SendData(17, -1, -1, null, 0, (float)i, (float)j, 0f, 0, 0, 0);
|
||||
}
|
||||
|
||||
|
Before Width: | Height: | Size: 10 KiB After Width: | Height: | Size: 9.3 KiB |
@@ -12,8 +12,10 @@ namespace CalamityMod.Tiles.Astral
|
||||
{
|
||||
Main.tileSolid[Type] = true;
|
||||
Main.tileBlockLight[Type] = true;
|
||||
Main.tileMerge[Type][mod.TileType("AstralGrass")] = true;
|
||||
Main.tileMerge[TileID.Dirt][Type] = true;
|
||||
|
||||
TileMerge.MergeGeneralTiles(Type);
|
||||
TileMerge.MergeAstralTiles(Type);
|
||||
TileMerge.MergeOreTiles(Type);
|
||||
|
||||
dustType = mod.DustType("AstralBasic");
|
||||
drop = mod.ItemType("AstralDirt");
|
||||
@@ -26,63 +28,18 @@ namespace CalamityMod.Tiles.Astral
|
||||
|
||||
public override bool TileFrame(int i, int j, ref bool resetFrame, ref bool noBreak)
|
||||
{
|
||||
bool forceSameUp = false;
|
||||
bool forceSameDown = false;
|
||||
bool forceSameLeft = false;
|
||||
bool forceSameRight = false;
|
||||
|
||||
Tile up = Main.tile[i, j - 1];
|
||||
Tile down = Main.tile[i, j + 1];
|
||||
Tile left = Main.tile[i - 1, j];
|
||||
Tile right = Main.tile[i + 1, j];
|
||||
|
||||
bool tmp;
|
||||
|
||||
if (up.active() && CustomTileFraming.tileMergeAstralDirt[up.type])
|
||||
{
|
||||
bool mergedDown;
|
||||
CustomTileFraming.FrameTileForCustomMerge(i, j - 1, up.type, Type, out tmp, out tmp, out tmp, out mergedDown, false, false, false, false, false);
|
||||
if (mergedDown)
|
||||
{
|
||||
forceSameUp = true;
|
||||
}
|
||||
}
|
||||
if (left.active() && CustomTileFraming.tileMergeAstralDirt[left.type])
|
||||
{
|
||||
bool mergedRight;
|
||||
CustomTileFraming.FrameTileForCustomMerge(i - 1, j, left.type, Type, out tmp, out tmp, out mergedRight, out tmp, false, false, false, false, false);
|
||||
if (mergedRight)
|
||||
{
|
||||
forceSameLeft = true;
|
||||
}
|
||||
}
|
||||
if (right.active() && CustomTileFraming.tileMergeAstralDirt[right.type])
|
||||
{
|
||||
bool mergedLeft;
|
||||
CustomTileFraming.FrameTileForCustomMerge(i + 1, j, right.type, Type, out tmp, out mergedLeft, out tmp, out tmp, false, false, false, false, false);
|
||||
if (mergedLeft)
|
||||
{
|
||||
forceSameRight = true;
|
||||
}
|
||||
}
|
||||
if (down.active() && CustomTileFraming.tileMergeAstralDirt[down.type])
|
||||
{
|
||||
bool mergedUp;
|
||||
CustomTileFraming.FrameTileForCustomMerge(i, j + 1, down.type, Type, out mergedUp, out tmp, out tmp, out tmp, false, false, false, false, false);
|
||||
if (mergedUp)
|
||||
{
|
||||
forceSameDown = true;
|
||||
}
|
||||
}
|
||||
|
||||
CustomTileFraming.FrameTileForCustomMerge(i, j, Type, TileID.Dirt, forceSameDown, forceSameUp, forceSameLeft, forceSameRight);
|
||||
|
||||
CustomTileFraming.FrameTileForCustomMergeFrom(i, j, Type);
|
||||
return false;
|
||||
}
|
||||
|
||||
public override void RandomUpdate(int i, int j)
|
||||
{
|
||||
if (WorldGen.genRand.Next(3) == 0)
|
||||
//Make sure that astral grass only spreads to adjacent tiles, as opposed to appearing out of thin air
|
||||
Tile up = Main.tile[i, j - 1];
|
||||
Tile down = Main.tile[i, j + 1];
|
||||
Tile left = Main.tile[i - 1, j];
|
||||
Tile right = Main.tile[i + 1, j];
|
||||
if (WorldGen.genRand.Next(3) == 0 && (up.type == mod.TileType("AstralGrass") || down.type == mod.TileType("AstralGrass") || left.type == mod.TileType("AstralGrass") || right.type == mod.TileType("AstralGrass")))
|
||||
{
|
||||
WorldGen.SpreadGrass(i, j, Type, mod.TileType("AstralGrass"), false);
|
||||
}
|
||||
|
||||
|
Before Width: | Height: | Size: 7.0 KiB After Width: | Height: | Size: 17 KiB |
@@ -2,6 +2,7 @@ using Microsoft.Xna.Framework;
|
||||
using Terraria;
|
||||
using Terraria.ID;
|
||||
using Terraria.ModLoader;
|
||||
using CalamityMod.Utilities;
|
||||
|
||||
namespace CalamityMod.Tiles.Astral
|
||||
{
|
||||
@@ -13,12 +14,14 @@ namespace CalamityMod.Tiles.Astral
|
||||
Main.tileBlockLight[Type] = true;
|
||||
Main.tileBrick[Type] = true;
|
||||
|
||||
TileMerge.MergeGeneralTiles(Type);
|
||||
TileMerge.MergeAstralTiles(Type);
|
||||
TileMerge.MergeOreTiles(Type);
|
||||
|
||||
dustType = mod.DustType("AstralBasic");
|
||||
drop = mod.ItemType("AstralDirt");
|
||||
|
||||
SetModTree(new AstralTree());
|
||||
|
||||
AddMapEntry(new Color(133, 109, 140));
|
||||
AddMapEntry(new Color(133, 109, 140));
|
||||
|
||||
TileID.Sets.Grass[Type] = true;
|
||||
TileID.Sets.Conversion.Grass[Type] = true;
|
||||
@@ -26,6 +29,8 @@ namespace CalamityMod.Tiles.Astral
|
||||
//Grass framing (<3 terraria devs)
|
||||
TileID.Sets.NeedsGrassFraming[Type] = true;
|
||||
TileID.Sets.NeedsGrassFramingDirt[Type] = mod.TileType("AstralDirt");
|
||||
|
||||
SetModTree(new AstralTree());
|
||||
}
|
||||
|
||||
public override void NumDust(int i, int j, bool fail, ref int Type)
|
||||
@@ -40,5 +45,11 @@ namespace CalamityMod.Tiles.Astral
|
||||
Main.tile[i, j].type = (ushort)mod.TileType("AstralDirt");
|
||||
}
|
||||
}
|
||||
|
||||
public override int SaplingGrowthType(ref int style)
|
||||
{
|
||||
style = 0;
|
||||
return mod.TileType("AstralTreeSapling");
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Before Width: | Height: | Size: 31 KiB After Width: | Height: | Size: 37 KiB |
@@ -1,17 +1,26 @@
|
||||
using Microsoft.Xna.Framework;
|
||||
using Microsoft.Xna.Framework.Graphics;
|
||||
using Terraria;
|
||||
using Terraria.ID;
|
||||
using Terraria.ModLoader;
|
||||
using CalamityMod.Utilities;
|
||||
|
||||
namespace CalamityMod.Tiles
|
||||
namespace CalamityMod.Tiles.Astral
|
||||
{
|
||||
public class AstralMonolith : ModTile
|
||||
{
|
||||
public override void SetDefaults()
|
||||
{
|
||||
Main.tileSolid[Type] = true;
|
||||
Main.tileMergeDirt[Type] = true;
|
||||
Main.tileBlockLight[Type] = true;
|
||||
|
||||
TileMerge.MergeGeneralTiles(Type);
|
||||
TileMerge.MergeAstralTiles(Type);
|
||||
TileMerge.MergeTile(Type, TileID.LeafBlock);
|
||||
TileMerge.MergeTile(Type, TileID.LivingMahoganyLeaves);
|
||||
TileMerge.MergeTile(Type, TileID.LivingWood);
|
||||
TileMerge.MergeTile(Type, TileID.LivingMahogany);
|
||||
|
||||
drop = mod.ItemType("AstralMonolith");
|
||||
AddMapEntry(new Color(45, 36, 63));
|
||||
animationFrameHeight = 270;
|
||||
@@ -42,10 +51,10 @@ namespace CalamityMod.Tiles
|
||||
yOffset = yOffset * 270;
|
||||
xPos += xOffset;
|
||||
yPos += yOffset;
|
||||
Texture2D glowmask = mod.GetTexture("Tiles/AstralMonolith_Glowmask");
|
||||
Texture2D glowmask = mod.GetTexture("Tiles/Astral/AstralMonolith_Glowmask");
|
||||
Vector2 zero = Main.drawToScreen ? Vector2.Zero : new Vector2(Main.offScreenRange);
|
||||
Vector2 drawOffset = new Vector2(i * 16 - Main.screenPosition.X, j * 16 - Main.screenPosition.Y) + zero;
|
||||
Color drawColour = new Color(50, 50, 50, 50);
|
||||
Color drawColour = GetDrawColour (i, j, new Color(50, 50, 50, 50));
|
||||
Tile trackTile = Main.tile[i, j];
|
||||
Texture2D texture3 = glowmask;
|
||||
double num6 = Main.time * 0.08;
|
||||
@@ -58,5 +67,24 @@ namespace CalamityMod.Tiles
|
||||
Main.spriteBatch.Draw(texture3, drawOffset + new Vector2(0f, 8f), new Rectangle?(new Rectangle(xPos, yPos, 18, 8)), drawColour, 0.0f, Vector2.Zero, 1f, SpriteEffects.None, 0.0f);
|
||||
}
|
||||
}
|
||||
|
||||
public override bool TileFrame(int i, int j, ref bool resetFrame, ref bool noBreak)
|
||||
{
|
||||
CustomTileFraming.FrameTileForCustomMerge(i, j, Type, mod.TileType("AstralDirt"), false, false, false, false, resetFrame);
|
||||
return false;
|
||||
}
|
||||
|
||||
private Color GetDrawColour(int i, int j, Color colour)
|
||||
{
|
||||
int colType = Main.tile[i, j].color();
|
||||
Color paintCol = WorldGen.paintColor(colType);
|
||||
if (colType >= 13 && colType <= 24)
|
||||
{
|
||||
colour.R = (byte)((paintCol.R / 255f) * colour.R);
|
||||
colour.G = (byte)((paintCol.G / 255f) * colour.G);
|
||||
colour.B = (byte)((paintCol.B / 255f) * colour.B);
|
||||
}
|
||||
return colour;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
After Width: | Height: | Size: 227 KiB |
|
Before Width: | Height: | Size: 118 KiB After Width: | Height: | Size: 118 KiB |
@@ -19,6 +19,9 @@ namespace CalamityMod.Tiles.Astral
|
||||
Main.tileSpelunker[Type] = true;
|
||||
Main.tileShine2[Type] = true;
|
||||
|
||||
TileMerge.MergeGeneralTiles(Type);
|
||||
TileMerge.MergeAstralTiles(Type);
|
||||
|
||||
minPick = 200;
|
||||
dustType = 173;
|
||||
drop = mod.ItemType("AstralOre");
|
||||
@@ -67,6 +70,12 @@ namespace CalamityMod.Tiles.Astral
|
||||
Lighting.AddLight(new Vector2(i * 16 + 8f, j * 16 + 8f), r * strength, g * strength, b * strength);
|
||||
}
|
||||
|
||||
public override void FloorVisuals(Player player)
|
||||
{
|
||||
player.AddBuff(mod.BuffType("AstralInfectionDebuff"), 1);
|
||||
base.FloorVisuals(player);
|
||||
}
|
||||
|
||||
public override bool TileFrame(int i, int j, ref bool resetFrame, ref bool noBreak)
|
||||
{
|
||||
CustomTileFraming.FrameTileForCustomMerge(i, j, Type, mod.TileType("AstralDirt"), false, false, false, false, resetFrame);
|
||||
|
||||
|
Before Width: | Height: | Size: 6.6 KiB After Width: | Height: | Size: 15 KiB |
@@ -14,6 +14,10 @@ namespace CalamityMod.Tiles.Astral
|
||||
Main.tileBlockLight[Type] = true;
|
||||
Main.tileBrick[Type] = true;
|
||||
|
||||
TileMerge.MergeGeneralTiles(Type);
|
||||
TileMerge.MergeAstralTiles(Type);
|
||||
TileMerge.MergeOreTiles(Type);
|
||||
|
||||
dustType = mod.DustType("AstralBasic");
|
||||
drop = mod.ItemType("AstralStone");
|
||||
|
||||
|
||||
|
Before Width: | Height: | Size: 7.2 KiB After Width: | Height: | Size: 15 KiB |
@@ -1,5 +1,4 @@
|
||||
|
||||
using Terraria.ModLoader;
|
||||
using Terraria.ModLoader;
|
||||
using Microsoft.Xna.Framework.Graphics;
|
||||
|
||||
namespace CalamityMod.Tiles
|
||||
|
||||
@@ -24,10 +24,10 @@ namespace CalamityMod.Tiles.Astral
|
||||
TileObjectData.newTile.Origin = new Point16(0, 1);
|
||||
TileObjectData.newTile.AnchorBottom = new AnchorData(AnchorType.SolidTile, TileObjectData.newTile.Width, 0);
|
||||
TileObjectData.newTile.UsesCustomCanPlace = true;
|
||||
TileObjectData.newTile.CoordinateHeights = new int[] { 16, 18 };
|
||||
TileObjectData.newTile.CoordinateHeights = new[] { 16, 18 };
|
||||
TileObjectData.newTile.CoordinateWidth = 16;
|
||||
TileObjectData.newTile.CoordinatePadding = 2;
|
||||
TileObjectData.newTile.AnchorValidTiles = new int[] { mod.TileType("AstralGrass") };
|
||||
TileObjectData.newTile.AnchorValidTiles = new[] { mod.TileType("AstralGrass") };
|
||||
TileObjectData.newTile.StyleHorizontal = true;
|
||||
TileObjectData.newTile.DrawFlipHorizontal = true;
|
||||
TileObjectData.newTile.WaterPlacement = LiquidPlacement.NotAllowed;
|
||||
|
||||
|
Before Width: | Height: | Size: 683 B After Width: | Height: | Size: 723 B |
@@ -1,6 +1,4 @@
|
||||
|
||||
using Microsoft.Xna.Framework;
|
||||
|
||||
using Microsoft.Xna.Framework;
|
||||
using Terraria.ModLoader;
|
||||
using Terraria;
|
||||
using Terraria.ObjectData;
|
||||
|
||||
@@ -2,24 +2,24 @@ using Microsoft.Xna.Framework;
|
||||
using Microsoft.Xna.Framework.Graphics;
|
||||
using Terraria;
|
||||
using Terraria.ModLoader;
|
||||
using Terraria.ID;
|
||||
using CalamityMod.Utilities;
|
||||
|
||||
namespace CalamityMod.Tiles
|
||||
{
|
||||
public class AstralBrick : ModTile
|
||||
{
|
||||
public override void SetDefaults()
|
||||
{
|
||||
private const short subsheetWidth = 324;
|
||||
private const short subsheetHeight = 90;
|
||||
|
||||
public override void SetDefaults()
|
||||
{
|
||||
Main.tileSolid[Type] = true;
|
||||
Main.tileMergeDirt[Type] = false;
|
||||
Main.tileBlockLight[Type] = true;
|
||||
TileID.Sets.NeedsGrassFraming[Type] = true;
|
||||
soundType = 21;
|
||||
minPick = 150;
|
||||
drop = mod.ItemType("AstralBrick");
|
||||
AddMapEntry(new Color(128, 128, 158));
|
||||
}
|
||||
int animationFrameWidth = 288;
|
||||
|
||||
public override bool CreateDust(int i, int j, ref int type)
|
||||
{
|
||||
@@ -27,83 +27,33 @@ namespace CalamityMod.Tiles
|
||||
return false;
|
||||
}
|
||||
|
||||
public override bool TileFrame(int i, int j, ref bool resetFrame, ref bool noBreak)
|
||||
{
|
||||
return CustomTileFraming.BetterGemsparkFraming(i, j, resetFrame);
|
||||
}
|
||||
|
||||
public override void AnimateIndividualTile(int type, int i, int j, ref int frameXOffset, ref int frameYOffset)
|
||||
{
|
||||
int xPos = i % 2;
|
||||
int yPos = j % 2;
|
||||
int uniqueAnimationFrameX = 0;
|
||||
switch (xPos)
|
||||
{
|
||||
case 0:
|
||||
switch (yPos)
|
||||
{
|
||||
case 0:
|
||||
uniqueAnimationFrameX = 0;
|
||||
break;
|
||||
case 1:
|
||||
uniqueAnimationFrameX = 2;
|
||||
break;
|
||||
}
|
||||
break;
|
||||
case 1:
|
||||
switch (yPos)
|
||||
{
|
||||
case 0:
|
||||
uniqueAnimationFrameX = 1;
|
||||
break;
|
||||
case 1:
|
||||
uniqueAnimationFrameX = 3;
|
||||
break;
|
||||
}
|
||||
break;
|
||||
}
|
||||
frameXOffset = uniqueAnimationFrameX * animationFrameWidth;
|
||||
frameXOffset = xPos * subsheetWidth;
|
||||
frameYOffset = yPos * subsheetHeight;
|
||||
}
|
||||
|
||||
public override void PostDraw(int i, int j, SpriteBatch spriteBatch)
|
||||
{
|
||||
int xPos = Main.tile[i, j].frameX;
|
||||
int yPos = Main.tile[i, j].frameY;
|
||||
int xOffset = 0;
|
||||
int relativeXPos = i % 2;
|
||||
int relativeYPos = j % 2;
|
||||
switch (relativeXPos)
|
||||
{
|
||||
case 0:
|
||||
switch (relativeYPos)
|
||||
{
|
||||
case 0:
|
||||
xOffset = 0;
|
||||
break;
|
||||
case 1:
|
||||
xOffset = 1;
|
||||
break;
|
||||
default:
|
||||
xOffset = 0;
|
||||
break;
|
||||
}
|
||||
break;
|
||||
case 1:
|
||||
switch (relativeYPos)
|
||||
{
|
||||
case 0:
|
||||
xOffset = 1;
|
||||
break;
|
||||
case 1:
|
||||
xOffset = 3;
|
||||
break;
|
||||
default:
|
||||
xOffset = 0;
|
||||
break;
|
||||
}
|
||||
break;
|
||||
}
|
||||
xOffset = xOffset * 288;
|
||||
int xOffset = i % 2;
|
||||
int yOffset = j % 2;
|
||||
xOffset = xOffset * subsheetWidth;
|
||||
yOffset = yOffset * subsheetHeight;
|
||||
xPos += xOffset;
|
||||
yPos += yOffset;
|
||||
Texture2D glowmask = mod.GetTexture("Tiles/AstralBrick_Glowmask");
|
||||
Vector2 zero = Main.drawToScreen ? Vector2.Zero : new Vector2(Main.offScreenRange);
|
||||
Vector2 drawOffset = new Vector2(i * 16 - Main.screenPosition.X, j * 16 - Main.screenPosition.Y) + zero;
|
||||
Color drawColour = new Color(50, 50, 50, 50);
|
||||
Color drawColour = GetDrawColour (i, j, new Color(50, 50, 50, 50));
|
||||
Tile trackTile = Main.tile[i, j];
|
||||
double num6 = Main.time * 0.08;
|
||||
if (!trackTile.halfBrick() && trackTile.slope() == 0)
|
||||
@@ -115,5 +65,18 @@ namespace CalamityMod.Tiles
|
||||
Main.spriteBatch.Draw(glowmask, drawOffset + new Vector2(0f, 8f), new Rectangle?(new Rectangle(xPos, yPos, 18, 8)), drawColour, 0.0f, Vector2.Zero, 1f, SpriteEffects.None, 0.0f);
|
||||
}
|
||||
}
|
||||
|
||||
private Color GetDrawColour(int i, int j, Color colour)
|
||||
{
|
||||
int colType = Main.tile[i, j].color();
|
||||
Color paintCol = WorldGen.paintColor(colType);
|
||||
if (colType >= 13 && colType <= 24)
|
||||
{
|
||||
colour.R = (byte)((paintCol.R / 255f) * colour.R);
|
||||
colour.G = (byte)((paintCol.G / 255f) * colour.G);
|
||||
colour.B = (byte)((paintCol.B / 255f) * colour.B);
|
||||
}
|
||||
return colour;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Before Width: | Height: | Size: 36 KiB After Width: | Height: | Size: 16 KiB |
|
Before Width: | Height: | Size: 4.2 KiB After Width: | Height: | Size: 3.7 KiB |
@@ -0,0 +1,71 @@
|
||||
using Microsoft.Xna.Framework;
|
||||
using Microsoft.Xna.Framework.Graphics;
|
||||
using Terraria;
|
||||
using Terraria.DataStructures;
|
||||
using Terraria.Enums;
|
||||
using Terraria.ID;
|
||||
using Terraria.ModLoader;
|
||||
using Terraria.ObjectData;
|
||||
|
||||
namespace CalamityMod.Tiles.AstralDesert
|
||||
{
|
||||
public class AstralPalmSapling : ModTile
|
||||
{
|
||||
//All of this code is taken directly from Example Mod.
|
||||
//Cheers Blushie
|
||||
|
||||
public override void SetDefaults()
|
||||
{
|
||||
Main.tileFrameImportant[Type] = true;
|
||||
Main.tileNoAttach[Type] = true;
|
||||
Main.tileLavaDeath[Type] = true;
|
||||
TileObjectData.newTile.Width = 1;
|
||||
TileObjectData.newTile.Height = 2;
|
||||
TileObjectData.newTile.Origin = new Point16(0, 1);
|
||||
TileObjectData.newTile.AnchorBottom = new AnchorData(AnchorType.SolidTile, TileObjectData.newTile.Width, 0);
|
||||
TileObjectData.newTile.UsesCustomCanPlace = true;
|
||||
TileObjectData.newTile.CoordinateHeights = new[] { 16, 18 };
|
||||
TileObjectData.newTile.CoordinateWidth = 16;
|
||||
TileObjectData.newTile.CoordinatePadding = 2;
|
||||
TileObjectData.newTile.AnchorValidTiles = new[] { mod.TileType("AstralSand") };
|
||||
TileObjectData.newTile.StyleHorizontal = true;
|
||||
TileObjectData.newTile.DrawFlipHorizontal = true;
|
||||
TileObjectData.newTile.WaterPlacement = LiquidPlacement.NotAllowed;
|
||||
TileObjectData.newTile.LavaDeath = true;
|
||||
TileObjectData.newTile.RandomStyleRange = 3;
|
||||
TileObjectData.addTile(Type);
|
||||
sapling = true;
|
||||
ModTranslation name = CreateMapEntryName();
|
||||
name.SetDefault("Sapling");
|
||||
AddMapEntry(new Color(200, 200, 200), name);
|
||||
dustType = mod.DustType("AstralBasic");
|
||||
adjTiles = new int[] { TileID.Saplings };
|
||||
}
|
||||
|
||||
public override void NumDust(int i, int j, bool fail, ref int num)
|
||||
{
|
||||
num = fail ? 1 : 3;
|
||||
}
|
||||
|
||||
public override void RandomUpdate(int i, int j)
|
||||
{
|
||||
if (WorldGen.genRand.Next(20) == 0)
|
||||
{
|
||||
bool isPlayerNear = WorldGen.PlayerLOS(i, j);
|
||||
bool success = WorldGen.GrowTree(i, j);
|
||||
if (success && isPlayerNear)
|
||||
{
|
||||
WorldGen.TreeGrowFXCheck(i, j);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
public override void SetSpriteEffects(int i, int j, ref SpriteEffects effects)
|
||||
{
|
||||
if (i % 2 == 1)
|
||||
{
|
||||
effects = SpriteEffects.FlipHorizontally;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
After Width: | Height: | Size: 633 B |
@@ -1,5 +1,4 @@
|
||||
|
||||
using Terraria.ModLoader;
|
||||
using Terraria.ModLoader;
|
||||
using Microsoft.Xna.Framework.Graphics;
|
||||
|
||||
namespace CalamityMod.Tiles
|
||||
@@ -8,12 +7,12 @@ namespace CalamityMod.Tiles
|
||||
{
|
||||
public override Texture2D GetTexture()
|
||||
{
|
||||
return CalamityMod.Instance.GetTexture("Tiles/Astral/AstralPalmTree");
|
||||
return CalamityMod.Instance.GetTexture("Tiles/AstralDesert/AstralPalmTree");
|
||||
}
|
||||
|
||||
public override Texture2D GetTopTextures()
|
||||
{
|
||||
return CalamityMod.Instance.GetTexture("Tiles/Astral/AstralPalmTree_Tops");
|
||||
return CalamityMod.Instance.GetTexture("Tiles/AstralDesert/AstralPalmTree_Tops");
|
||||
}
|
||||
|
||||
public override int DropWood()
|
||||
|
Before Width: | Height: | Size: 1.0 KiB After Width: | Height: | Size: 1.0 KiB |
|
Before Width: | Height: | Size: 1017 B After Width: | Height: | Size: 1017 B |
@@ -16,6 +16,10 @@ namespace CalamityMod.Tiles.AstralDesert
|
||||
Main.tileSand[Type] = true;
|
||||
Main.tileBrick[Type] = true;
|
||||
|
||||
TileMerge.MergeGeneralTiles(Type);
|
||||
TileMerge.MergeDesertTiles(Type);
|
||||
TileMerge.MergeAstralTiles(Type);
|
||||
|
||||
dustType = 108;
|
||||
drop = mod.ItemType("AstralSand");
|
||||
|
||||
@@ -25,6 +29,8 @@ namespace CalamityMod.Tiles.AstralDesert
|
||||
TileID.Sets.Conversion.Sand[Type] = true;
|
||||
|
||||
SetModCactus(new AstralCactus());
|
||||
|
||||
SetModPalmTree(new AstralPalmTree());
|
||||
}
|
||||
|
||||
public override void NumDust(int i, int j, bool fail, ref int num)
|
||||
@@ -47,13 +53,19 @@ namespace CalamityMod.Tiles.AstralDesert
|
||||
|
||||
public override bool HasWalkDust()
|
||||
{
|
||||
return Main.rand.NextBool(3);
|
||||
return Main.rand.Next(3) == 0;
|
||||
}
|
||||
|
||||
public override void WalkDust(ref int dustType, ref bool makeDust, ref Color color)
|
||||
{
|
||||
dustType = 108;
|
||||
}
|
||||
|
||||
public override int SaplingGrowthType(ref int style)
|
||||
{
|
||||
style = 0;
|
||||
return mod.TileType("AstralPalmSapling");
|
||||
}
|
||||
}
|
||||
|
||||
public class AstralCactus : ModCactus
|
||||
|
||||
|
Before Width: | Height: | Size: 16 KiB After Width: | Height: | Size: 16 KiB |
@@ -12,7 +12,10 @@ namespace CalamityMod.Tiles.AstralDesert
|
||||
{
|
||||
Main.tileSolid[Type] = true;
|
||||
Main.tileBlockLight[Type] = true;
|
||||
Main.tileBrick[Type] = true;
|
||||
|
||||
TileMerge.MergeGeneralTiles(Type);
|
||||
TileMerge.MergeDesertTiles(Type);
|
||||
TileMerge.MergeAstralTiles(Type);
|
||||
|
||||
dustType = mod.DustType("AstralBasic");
|
||||
drop = mod.ItemType("AstralSandstone");
|
||||
|
||||
|
Before Width: | Height: | Size: 17 KiB After Width: | Height: | Size: 17 KiB |
@@ -12,7 +12,11 @@ namespace CalamityMod.Tiles.AstralDesert
|
||||
{
|
||||
Main.tileSolid[Type] = true;
|
||||
Main.tileBlockLight[Type] = true;
|
||||
Main.tileMerge[mod.TileType("AstralSand")][Type] = true;
|
||||
|
||||
TileMerge.MergeGeneralTiles(Type);
|
||||
TileMerge.MergeDesertTiles(Type);
|
||||
TileMerge.MergeAstralTiles(Type);
|
||||
|
||||
|
||||
dustType = 108;
|
||||
drop = mod.ItemType("HardenedAstralSand");
|
||||
|
||||
|
Before Width: | Height: | Size: 16 KiB After Width: | Height: | Size: 17 KiB |
|
Before Width: | Height: | Size: 224 KiB |
@@ -2,6 +2,7 @@ using Microsoft.Xna.Framework;
|
||||
using Terraria;
|
||||
using Terraria.ID;
|
||||
using Terraria.ModLoader;
|
||||
using CalamityMod.Utilities;
|
||||
|
||||
namespace CalamityMod.Tiles.AstralSnow
|
||||
{
|
||||
@@ -12,9 +13,10 @@ namespace CalamityMod.Tiles.AstralSnow
|
||||
Main.tileSolid[Type] = true;
|
||||
Main.tileBlockLight[Type] = true;
|
||||
Main.tileBrick[Type] = true;
|
||||
Main.tileShine2[Type] = true;
|
||||
//Main.tileMerge[Type][TileID.SnowBlock] = true;
|
||||
//Main.tileMerge[TileID.SnowBlock][Type] = true;
|
||||
|
||||
TileMerge.MergeGeneralTiles(Type);
|
||||
TileMerge.MergeSnowTiles(Type);
|
||||
TileMerge.MergeAstralTiles(Type);
|
||||
|
||||
dustType = 173;
|
||||
drop = mod.ItemType("AstralIce");
|
||||
@@ -42,5 +44,11 @@ namespace CalamityMod.Tiles.AstralSnow
|
||||
player.slippy = true;
|
||||
base.FloorVisuals(player);
|
||||
}
|
||||
|
||||
public override bool TileFrame(int i, int j, ref bool resetFrame, ref bool noBreak)
|
||||
{
|
||||
CustomTileFraming.FrameTileForCustomMerge(i, j, Type, mod.TileType("AstralDirt"), false, false, false, false, resetFrame);
|
||||
return false;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Before Width: | Height: | Size: 23 KiB After Width: | Height: | Size: 25 KiB |
@@ -2,6 +2,7 @@ using Microsoft.Xna.Framework;
|
||||
using Terraria;
|
||||
using Terraria.ModLoader;
|
||||
using CalamityMod.World;
|
||||
using CalamityMod.Utilities;
|
||||
|
||||
namespace CalamityMod.Tiles
|
||||
{
|
||||
@@ -15,6 +16,9 @@ namespace CalamityMod.Tiles
|
||||
Main.tileBlockLight[Type] = true;
|
||||
Main.tileSpelunker[Type] = true;
|
||||
Main.tileValue[Type] = 810;
|
||||
|
||||
TileMerge.MergeGeneralTiles(Type);
|
||||
|
||||
dustType = 55;
|
||||
drop = mod.ItemType("AuricOre");
|
||||
ModTranslation name = CreateMapEntryName();
|
||||
|
||||
@@ -1,22 +1,25 @@
|
||||
using Microsoft.Xna.Framework;
|
||||
using Microsoft.Xna.Framework.Graphics;
|
||||
using Terraria;
|
||||
using Terraria.ID;
|
||||
using Terraria.ModLoader;
|
||||
using CalamityMod.Utilities;
|
||||
|
||||
namespace CalamityMod.Tiles
|
||||
{
|
||||
public class BrimstoneSlag : ModTile
|
||||
{
|
||||
private const short subsheetWidth = 288;
|
||||
private const short subsheetHeight = 396;
|
||||
private const short subsheetWidth = 450;
|
||||
private const short subsheetHeight = 198;
|
||||
|
||||
public override void SetDefaults()
|
||||
{
|
||||
Main.tileSolid[Type] = true;
|
||||
Main.tileMergeDirt[Type] = false;
|
||||
Main.tileBlockLight[Type] = true;
|
||||
TileID.Sets.NeedsGrassFraming[Type] = true;
|
||||
|
||||
TileMerge.MergeGeneralTiles(Type);
|
||||
TileMerge.MergeHellTiles(Type);
|
||||
TileMerge.MergeTile(Type, mod.TileType("CharredOre"));
|
||||
|
||||
soundType = 21;
|
||||
mineResist = 3f;
|
||||
minPick = 180;
|
||||
@@ -36,6 +39,11 @@ namespace CalamityMod.Tiles
|
||||
frameYOffset = (j % 2) * subsheetHeight;
|
||||
}
|
||||
|
||||
public override bool TileFrame(int i, int j, ref bool resetFrame, ref bool noBreak)
|
||||
{
|
||||
return CustomTileFraming.BrimstoneFraming(i, j, resetFrame);
|
||||
}
|
||||
|
||||
public override void PostDraw(int i, int j, SpriteBatch spriteBatch)
|
||||
{
|
||||
Tile tile = Main.tile[i, j];
|
||||
@@ -43,15 +51,16 @@ namespace CalamityMod.Tiles
|
||||
int frameXOffset = (i % 2) * subsheetWidth;
|
||||
int frameYOffset = (j % 2) * subsheetHeight;
|
||||
Vector2 zero = new Vector2(Main.offScreenRange, Main.offScreenRange);
|
||||
Color drawColour = GetDrawColour(i, j, new Color(50, 50, 50, 50));
|
||||
if (Main.drawToScreen)
|
||||
{
|
||||
zero = Vector2.Zero;
|
||||
}
|
||||
if (tile.slope() == (byte)0 && !tile.halfBrick())
|
||||
Main.spriteBatch.Draw(sprite, new Vector2((float)(i * 16 - (int)Main.screenPosition.X), (float)(j * 16 - (int)Main.screenPosition.Y)) + zero, new Rectangle(tile.frameX + frameXOffset, tile.frameY + frameYOffset, 16, 16), new Color(50, 50, 50, 50), 0.0f, Vector2.Zero, 1f, SpriteEffects.None, 0.0f);
|
||||
Main.spriteBatch.Draw(sprite, new Vector2((float)(i * 16 - (int)Main.screenPosition.X), (float)(j * 16 - (int)Main.screenPosition.Y)) + zero, new Rectangle(tile.frameX + frameXOffset, tile.frameY + frameYOffset, 16, 16), drawColour, 0.0f, Vector2.Zero, 1f, SpriteEffects.None, 0.0f);
|
||||
else if (tile.halfBrick())
|
||||
{
|
||||
Main.spriteBatch.Draw(sprite, new Vector2((float)(i * 16 - (int)Main.screenPosition.X), (float)(j * 16 - (int)Main.screenPosition.Y + 10) + 8) + zero, new Rectangle(tile.frameX + frameXOffset, tile.frameY + frameYOffset, 16, 8), new Color(50, 50, 50, 50), 0.0f, Vector2.Zero, 1f, SpriteEffects.None, 0.0f);
|
||||
Main.spriteBatch.Draw(sprite, new Vector2((float)(i * 16 - (int)Main.screenPosition.X), (float)(j * 16 - (int)Main.screenPosition.Y + 10) + 8) + zero, new Rectangle(tile.frameX + frameXOffset, tile.frameY + frameYOffset, 16, 8), drawColour, 0.0f, Vector2.Zero, 1f, SpriteEffects.None, 0.0f);
|
||||
}
|
||||
else
|
||||
{
|
||||
@@ -76,9 +85,22 @@ namespace CalamityMod.Tiles
|
||||
num10 = width2 + 2;
|
||||
break;
|
||||
}
|
||||
Main.spriteBatch.Draw(sprite, new Vector2((float)(i * 16 - (int)Main.screenPosition.X) + (float)num10, (float)(j * 16 - (int)Main.screenPosition.Y + index4 * 2)) + zero, drawRectangle, new Color(50, 50, 50, 50), 0.0f, Vector2.Zero, 1f, SpriteEffects.None, 0.0f);
|
||||
Main.spriteBatch.Draw(sprite, new Vector2((float)(i * 16 - (int)Main.screenPosition.X) + (float)num10, (float)(j * 16 - (int)Main.screenPosition.Y + index4 * 2)) + zero, drawRectangle, drawColour, 0.0f, Vector2.Zero, 1f, SpriteEffects.None, 0.0f);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
private Color GetDrawColour(int i, int j, Color colour)
|
||||
{
|
||||
int colType = Main.tile[i, j].color();
|
||||
Color paintCol = WorldGen.paintColor(colType);
|
||||
if (colType >= 13 && colType <= 24)
|
||||
{
|
||||
colour.R = (byte)((paintCol.R / 255f) * colour.R);
|
||||
colour.G = (byte)((paintCol.G / 255f) * colour.G);
|
||||
colour.B = (byte)((paintCol.B / 255f) * colour.B);
|
||||
}
|
||||
return colour;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Before Width: | Height: | Size: 125 KiB After Width: | Height: | Size: 77 KiB |
|
Before Width: | Height: | Size: 85 KiB After Width: | Height: | Size: 52 KiB |
@@ -30,21 +30,39 @@ namespace CalamityMod.Tiles
|
||||
(ushort)CalamityMod.Instance.TileType("AstralTallPlants")
|
||||
};
|
||||
|
||||
/*#region SetDefaults //it's not working aaaaa
|
||||
public virtual void SetDefaults(Tile tile)
|
||||
{
|
||||
if (CalamityMod.tableList.Contains(tile.type))
|
||||
AddToArray(ref TileID.Sets.RoomNeeds.CountsAsTable);
|
||||
else if (CalamityMod.chairList.Contains(tile.type))
|
||||
AddToArray(ref TileID.Sets.RoomNeeds.CountsAsChair);
|
||||
else if (CalamityMod.lightList.Contains(tile.type))
|
||||
AddToArray(ref TileID.Sets.RoomNeeds.CountsAsTorch);
|
||||
else if (CalamityMod.doorList.Contains(tile.type))
|
||||
AddToArray(ref TileID.Sets.RoomNeeds.CountsAsDoor);
|
||||
}
|
||||
#endregion*/
|
||||
public override void SetDefaults()
|
||||
{
|
||||
if (CalamityMod.chairList != null)
|
||||
{
|
||||
foreach (int i in CalamityMod.chairList)
|
||||
{
|
||||
AddToArray(ref TileID.Sets.RoomNeeds.CountsAsChair, i);
|
||||
}
|
||||
}
|
||||
if (CalamityMod.doorList != null)
|
||||
{
|
||||
foreach (int i in CalamityMod.doorList)
|
||||
{
|
||||
AddToArray(ref TileID.Sets.RoomNeeds.CountsAsDoor, i);
|
||||
}
|
||||
}
|
||||
if (CalamityMod.lightList != null)
|
||||
{
|
||||
foreach (int i in CalamityMod.lightList)
|
||||
{
|
||||
AddToArray(ref TileID.Sets.RoomNeeds.CountsAsTorch, i);
|
||||
}
|
||||
}
|
||||
if (CalamityMod.tableList != null)
|
||||
{
|
||||
foreach (int i in CalamityMod.tableList)
|
||||
{
|
||||
AddToArray(ref TileID.Sets.RoomNeeds.CountsAsTable, i);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
public override bool TileFrame(int i, int j, int type, ref bool resetFrame, ref bool noBreak)
|
||||
public override bool TileFrame(int i, int j, int type, ref bool resetFrame, ref bool noBreak)
|
||||
{
|
||||
for (int k = 0; k < PlantTypes.Length; k++)
|
||||
{
|
||||
|
||||
@@ -10,7 +10,6 @@ namespace CalamityMod.Tiles
|
||||
{
|
||||
Main.tileLighted[Type] = true;
|
||||
Main.tileSolid[Type] = true;
|
||||
Main.tileBlendAll[this.Type] = true;
|
||||
Main.tileBlockLight[Type] = true;
|
||||
dustType = 105;
|
||||
drop = mod.ItemType("ChaoticBrick");
|
||||
|
||||
|
Before Width: | Height: | Size: 5.9 KiB |
@@ -1,7 +1,7 @@
|
||||
using Microsoft.Xna.Framework;
|
||||
using Terraria;
|
||||
using Terraria.ID;
|
||||
using Terraria.ModLoader;
|
||||
using CalamityMod.Utilities;
|
||||
|
||||
namespace CalamityMod.Tiles
|
||||
{
|
||||
@@ -11,10 +11,13 @@ namespace CalamityMod.Tiles
|
||||
{
|
||||
Main.tileLighted[Type] = true;
|
||||
Main.tileSolid[Type] = true;
|
||||
Main.tileMergeDirt[Type] = true;
|
||||
Main.tileBlockLight[Type] = true;
|
||||
Main.tileValue[Type] = 750;
|
||||
dustType = 105;
|
||||
|
||||
TileMerge.MergeGeneralTiles(Type);
|
||||
TileMerge.MergeAbyssTiles(Type);
|
||||
|
||||
dustType = 105;
|
||||
drop = mod.ItemType("ChaoticOre");
|
||||
ModTranslation name = CreateMapEntryName();
|
||||
name.SetDefault("Chaotic Ore");
|
||||
@@ -38,14 +41,14 @@ namespace CalamityMod.Tiles
|
||||
{
|
||||
return;
|
||||
}
|
||||
if (closer && Main.rand.NextBool(300))
|
||||
if (closer && Main.rand.Next(300) == 0)
|
||||
{
|
||||
int tileLocationY = j + 1;
|
||||
if (Main.tile[i, tileLocationY] != null)
|
||||
{
|
||||
if (!Main.tile[i, tileLocationY].active())
|
||||
{
|
||||
if (Main.netMode != NetmodeID.MultiplayerClient)
|
||||
if (Main.netMode != 1)
|
||||
{
|
||||
Projectile.NewProjectile((float)(i * 16 + 16), (float)(tileLocationY * 16 + 16), 0f, 0.1f, mod.ProjectileType("LavaChunk"), 25, 2f, Main.myPlayer, 0f, 0f);
|
||||
}
|
||||
@@ -70,5 +73,11 @@ namespace CalamityMod.Tiles
|
||||
g = 0.00f;
|
||||
b = 0.00f;
|
||||
}
|
||||
|
||||
public override bool TileFrame(int i, int j, ref bool resetFrame, ref bool noBreak)
|
||||
{
|
||||
CustomTileFraming.FrameTileForCustomMerge(i, j, Type, mod.TileType("AbyssGravel"), false, false, false, false, resetFrame);
|
||||
return false;
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -1,6 +1,7 @@
|
||||
using Microsoft.Xna.Framework;
|
||||
using Terraria;
|
||||
using Terraria.ModLoader;
|
||||
using CalamityMod.Utilities;
|
||||
|
||||
namespace CalamityMod.Tiles
|
||||
{
|
||||
@@ -12,10 +13,13 @@ namespace CalamityMod.Tiles
|
||||
public override void SetDefaults()
|
||||
{
|
||||
Main.tileSolid[Type] = true;
|
||||
Main.tileMergeDirt[Type] = true;
|
||||
Main.tileBlockLight[Type] = true;
|
||||
Main.tileLighted[Type] = true;
|
||||
Main.tileValue[Type] = 710;
|
||||
|
||||
TileMerge.MergeGeneralTiles(Type);
|
||||
TileMerge.MergeHellTiles(Type);
|
||||
|
||||
drop = mod.ItemType("CharredOre");
|
||||
ModTranslation name = CreateMapEntryName();
|
||||
name.SetDefault("Charred Ore");
|
||||
@@ -49,5 +53,11 @@ namespace CalamityMod.Tiles
|
||||
g = 0.00f;
|
||||
b = 0.00f;
|
||||
}
|
||||
|
||||
public override bool TileFrame(int i, int j, ref bool resetFrame, ref bool noBreak)
|
||||
{
|
||||
CustomTileFraming.FrameTileForCustomMerge(i, j, Type, mod.TileType("BrimstoneSlag"), false, false, false, false, resetFrame);
|
||||
return false;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Before Width: | Height: | Size: 68 KiB After Width: | Height: | Size: 70 KiB |
@@ -2,6 +2,7 @@ using Microsoft.Xna.Framework;
|
||||
using Microsoft.Xna.Framework.Graphics;
|
||||
using Terraria;
|
||||
using Terraria.ModLoader;
|
||||
using CalamityMod.Utilities;
|
||||
|
||||
namespace CalamityMod.Tiles
|
||||
{
|
||||
@@ -12,6 +13,9 @@ namespace CalamityMod.Tiles
|
||||
Main.tileSolid[Type] = true;
|
||||
Main.tileMergeDirt[Type] = true;
|
||||
Main.tileBlockLight[Type] = true;
|
||||
|
||||
TileMerge.MergeGeneralTiles(Type);
|
||||
|
||||
soundType = 21;
|
||||
mineResist = 1f;
|
||||
minPick = 180;
|
||||
@@ -33,7 +37,7 @@ namespace CalamityMod.Tiles
|
||||
Texture2D glowmask = mod.GetTexture("Tiles/Cinderplate_Glowmask");
|
||||
Vector2 zero = Main.drawToScreen ? Vector2.Zero : new Vector2(Main.offScreenRange);
|
||||
Vector2 drawOffset = new Vector2(i * 16 - Main.screenPosition.X, j * 16 - Main.screenPosition.Y) + zero;
|
||||
Color drawColour = new Color(50, 50, 50, 50);
|
||||
Color drawColour = GetDrawColour(i, j, new Color(50, 50, 50, 50));
|
||||
Tile trackTile = Main.tile[i, j];
|
||||
double num6 = Main.time * 0.08;
|
||||
if (!trackTile.halfBrick() && trackTile.slope() == 0)
|
||||
@@ -45,5 +49,18 @@ namespace CalamityMod.Tiles
|
||||
Main.spriteBatch.Draw(glowmask, drawOffset + new Vector2(0f, 8f), new Rectangle?(new Rectangle(xPos, yPos, 18, 8)), drawColour, 0.0f, Vector2.Zero, 1f, SpriteEffects.None, 0.0f);
|
||||
}
|
||||
}
|
||||
|
||||
private Color GetDrawColour(int i, int j, Color colour)
|
||||
{
|
||||
int colType = Main.tile[i, j].color();
|
||||
Color paintCol = WorldGen.paintColor(colType);
|
||||
if (colType >= 13 && colType <= 24)
|
||||
{
|
||||
colour.R = (byte)((paintCol.R / 255f) * colour.R);
|
||||
colour.G = (byte)((paintCol.G / 255f) * colour.G);
|
||||
colour.B = (byte)((paintCol.B / 255f) * colour.B);
|
||||
}
|
||||
return colour;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Before Width: | Height: | Size: 18 KiB After Width: | Height: | Size: 19 KiB |
@@ -1,21 +1,26 @@
|
||||
using Microsoft.Xna.Framework;
|
||||
using Terraria;
|
||||
using Terraria.ModLoader;
|
||||
using CalamityMod.Utilities;
|
||||
|
||||
namespace CalamityMod.Tiles
|
||||
{
|
||||
public class CryonicBrick : ModTile
|
||||
{
|
||||
public override void SetDefaults()
|
||||
int subsheetHeight = 90;
|
||||
int subsheetWidth = 234;
|
||||
public override void SetDefaults()
|
||||
{
|
||||
Main.tileSolid[Type] = true;
|
||||
Main.tileMergeDirt[Type] = true;
|
||||
Main.tileBlockLight[Type] = true;
|
||||
soundType = 21;
|
||||
|
||||
TileMerge.MergeGeneralTiles(Type);
|
||||
TileMerge.MergeDecorativeTiles(Type);
|
||||
|
||||
soundType = 21;
|
||||
minPick = 100;
|
||||
drop = mod.ItemType("CryonicBrick");
|
||||
AddMapEntry(new Color(99, 131, 199));
|
||||
animationFrameHeight = 270;
|
||||
}
|
||||
|
||||
public override bool CreateDust(int i, int j, ref int type)
|
||||
@@ -28,8 +33,9 @@ namespace CalamityMod.Tiles
|
||||
{
|
||||
int xPos = i % 2;
|
||||
int yPos = j % 4;
|
||||
frameXOffset = xPos * 288;
|
||||
frameYOffset = yPos * animationFrameHeight;
|
||||
}
|
||||
frameXOffset = xPos * subsheetWidth;
|
||||
frameYOffset = yPos * subsheetHeight;
|
||||
;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Before Width: | Height: | Size: 85 KiB After Width: | Height: | Size: 24 KiB |
@@ -1,7 +1,9 @@
|
||||
using Microsoft.Xna.Framework;
|
||||
using Terraria;
|
||||
using Terraria.ID;
|
||||
using Terraria.ModLoader;
|
||||
using CalamityMod.World;
|
||||
using CalamityMod.Utilities;
|
||||
|
||||
namespace CalamityMod.Tiles
|
||||
{
|
||||
@@ -11,10 +13,13 @@ namespace CalamityMod.Tiles
|
||||
{
|
||||
Main.tileLighted[Type] = true;
|
||||
Main.tileSolid[Type] = true;
|
||||
Main.tileMergeDirt[Type] = true;
|
||||
Main.tileBlockLight[Type] = true;
|
||||
Main.tileValue[Type] = 675;
|
||||
dustType = mod.DustType("MSparkle");
|
||||
|
||||
TileMerge.MergeGeneralTiles(Type);
|
||||
TileMerge.MergeSnowTiles(Type);
|
||||
|
||||
dustType = mod.DustType("MSparkle");
|
||||
drop = mod.ItemType("CryonicOre");
|
||||
ModTranslation name = CreateMapEntryName();
|
||||
name.SetDefault("Cryonic Ore");
|
||||
@@ -35,6 +40,12 @@ namespace CalamityMod.Tiles
|
||||
num = fail ? 1 : 3;
|
||||
}
|
||||
|
||||
public override bool TileFrame(int i, int j, ref bool resetFrame, ref bool noBreak)
|
||||
{
|
||||
CustomTileFraming.FrameTileForCustomMerge(i, j, Type, TileID.SnowBlock);
|
||||
return false;
|
||||
}
|
||||
|
||||
public override void ModifyLight(int i, int j, ref float r, ref float g, ref float b)
|
||||
{
|
||||
r = 0.02f;
|
||||
|
||||
@@ -1,8 +1,7 @@
|
||||
|
||||
using Microsoft.Xna.Framework;
|
||||
|
||||
using Microsoft.Xna.Framework;
|
||||
using Terraria;
|
||||
using Terraria.ModLoader;
|
||||
using CalamityMod.Utilities;
|
||||
|
||||
namespace CalamityMod.Tiles
|
||||
{
|
||||
@@ -12,6 +11,9 @@ namespace CalamityMod.Tiles
|
||||
{
|
||||
Main.tileSolid[Type] = true;
|
||||
Main.tileBlockLight[Type] = true;
|
||||
|
||||
TileMerge.MergeGeneralTiles(Type);
|
||||
|
||||
ModTranslation name = CreateMapEntryName();
|
||||
name.SetDefault("Exodium Ore");
|
||||
AddMapEntry(new Color(51, 48, 68), name);
|
||||
|
||||
@@ -18,7 +18,6 @@ namespace CalamityMod.Tiles.FurnitureAbyss
|
||||
TileObjectData.newTile.CopyFrom(TileObjectData.Style4x2);
|
||||
TileObjectData.addTile(Type);
|
||||
ModTranslation name = CreateMapEntryName();
|
||||
AddToArray(ref TileID.Sets.RoomNeeds.CountsAsTable);
|
||||
name.SetDefault("Abyss Bathtub");
|
||||
AddMapEntry(new Color(191, 142, 111), name);
|
||||
animationFrameHeight = 54;
|
||||
|
||||
@@ -17,7 +17,6 @@ namespace CalamityMod.Tiles.FurnitureAbyss
|
||||
TileObjectData.newTile.CopyFrom(TileObjectData.Style4x2); //this style already takes care of direction for us
|
||||
TileObjectData.newTile.CoordinateHeights = new int[] { 16, 18 };
|
||||
TileObjectData.addTile(Type);
|
||||
AddToArray(ref TileID.Sets.RoomNeeds.CountsAsChair);
|
||||
ModTranslation name = CreateMapEntryName();
|
||||
name.SetDefault("Abyss Bed");
|
||||
AddMapEntry(new Color(191, 142, 111), name);
|
||||
|
||||
@@ -19,7 +19,6 @@ namespace CalamityMod.Tiles.FurnitureAbyss
|
||||
|
||||
TileObjectData.newTile.CopyFrom(TileObjectData.Style3x4);
|
||||
TileObjectData.addTile(Type);
|
||||
AddToArray(ref TileID.Sets.RoomNeeds.CountsAsTable);
|
||||
ModTranslation name = CreateMapEntryName();
|
||||
name.SetDefault("Abyss Bookcase");
|
||||
AddMapEntry(new Color(191, 142, 111), name);
|
||||
|
||||
@@ -20,7 +20,6 @@ namespace CalamityMod.Tiles.FurnitureAbyss
|
||||
ModTranslation name = CreateMapEntryName();
|
||||
name.SetDefault("Abyss Candelabra");
|
||||
AddMapEntry(new Color(191, 142, 111), name);
|
||||
AddToArray(ref TileID.Sets.RoomNeeds.CountsAsTorch);
|
||||
disableSmartCursor = true;
|
||||
adjTiles = new int[] { TileID.Torches };
|
||||
}
|
||||
|
||||
@@ -21,7 +21,6 @@ namespace CalamityMod.Tiles.FurnitureAbyss
|
||||
ModTranslation name = CreateMapEntryName();
|
||||
name.SetDefault("Abyss Candle");
|
||||
AddMapEntry(new Color(191, 142, 111), name);
|
||||
AddToArray(ref TileID.Sets.RoomNeeds.CountsAsTorch);
|
||||
disableSmartCursor = true;
|
||||
adjTiles = new int[] { TileID.Torches };
|
||||
drop = mod.ItemType("AbyssCandle");
|
||||
|
||||
@@ -25,7 +25,6 @@ namespace CalamityMod.Tiles.FurnitureAbyss
|
||||
TileObjectData.newAlternate.Direction = TileObjectDirection.PlaceRight; //allows me to place example chairs facing the same way as the player
|
||||
TileObjectData.addAlternate(1); //facing right will use the second texture style
|
||||
TileObjectData.addTile(Type);
|
||||
AddToArray(ref TileID.Sets.RoomNeeds.CountsAsChair);
|
||||
ModTranslation name = CreateMapEntryName();
|
||||
name.SetDefault("Abyss Chair");
|
||||
AddMapEntry(new Color(191, 142, 111), name);
|
||||
|
||||
@@ -27,7 +27,6 @@ namespace CalamityMod.Tiles.FurnitureAbyss
|
||||
TileObjectData.newTile.UsesCustomCanPlace = true;
|
||||
TileObjectData.newTile.AnchorTop = new AnchorData(AnchorType.SolidTile, 1, 1);
|
||||
TileObjectData.addTile(Type);
|
||||
AddToArray(ref TileID.Sets.RoomNeeds.CountsAsTorch);
|
||||
ModTranslation name = CreateMapEntryName();
|
||||
name.SetDefault("Abyss Chandelier");
|
||||
AddMapEntry(new Color(191, 142, 111), name);
|
||||
|
||||
@@ -38,7 +38,6 @@ namespace CalamityMod.Tiles.FurnitureAbyss
|
||||
TileObjectData.newAlternate.Origin = new Point16(0, 2);
|
||||
TileObjectData.addAlternate(0);
|
||||
TileObjectData.addTile(Type);
|
||||
AddToArray(ref TileID.Sets.RoomNeeds.CountsAsDoor);
|
||||
ModTranslation name = CreateMapEntryName();
|
||||
name.SetDefault("Abyss Door");
|
||||
AddMapEntry(new Color(191, 142, 111), name);
|
||||
|
||||
@@ -56,7 +56,6 @@ namespace CalamityMod.Tiles.FurnitureAbyss
|
||||
TileObjectData.newAlternate.Direction = TileObjectDirection.PlaceLeft;
|
||||
TileObjectData.addAlternate(1);
|
||||
TileObjectData.addTile(Type);
|
||||
AddToArray(ref TileID.Sets.RoomNeeds.CountsAsDoor);
|
||||
TileID.Sets.HousingWalls[Type] = true; //needed for non-solid blocks to count as walls
|
||||
TileID.Sets.HasOutlines[Type] = true;
|
||||
ModTranslation name = CreateMapEntryName();
|
||||
|
||||
@@ -32,7 +32,6 @@ namespace CalamityMod.Tiles.FurnitureAbyss
|
||||
TileObjectData.newTile.LavaDeath = false;
|
||||
TileObjectData.newTile.AnchorBottom = new AnchorData(AnchorType.SolidTile | AnchorType.SolidWithTop | AnchorType.SolidSide, TileObjectData.newTile.Width, 0);
|
||||
TileObjectData.addTile(Type);
|
||||
AddToArray(ref TileID.Sets.RoomNeeds.CountsAsTable);
|
||||
ModTranslation name = CreateMapEntryName();
|
||||
name.SetDefault("Abyss Dresser");
|
||||
AddMapEntry(new Color(191, 142, 111), name);
|
||||
|
||||
@@ -21,7 +21,6 @@ namespace CalamityMod.Tiles.FurnitureAbyss
|
||||
name.SetDefault("Abyss Lamp");
|
||||
AddMapEntry(new Color(191, 142, 111), name);
|
||||
|
||||
AddToArray(ref TileID.Sets.RoomNeeds.CountsAsTorch);
|
||||
disableSmartCursor = true;
|
||||
adjTiles = new int[] { TileID.Torches };
|
||||
}
|
||||
|
||||
@@ -21,7 +21,6 @@ namespace CalamityMod.Tiles.FurnitureAbyss
|
||||
name.SetDefault("Abyss Lantern");
|
||||
AddMapEntry(new Color(191, 142, 111), name);
|
||||
|
||||
AddToArray(ref TileID.Sets.RoomNeeds.CountsAsTorch);
|
||||
disableSmartCursor = true;
|
||||
adjTiles = new int[] { TileID.Torches };
|
||||
}
|
||||
|
||||
@@ -17,7 +17,6 @@ namespace CalamityMod.Tiles.FurnitureAbyss
|
||||
|
||||
TileObjectData.newTile.CopyFrom(TileObjectData.Style3x2);
|
||||
TileObjectData.addTile(Type);
|
||||
AddToArray(ref TileID.Sets.RoomNeeds.CountsAsTable);
|
||||
ModTranslation name = CreateMapEntryName();
|
||||
name.SetDefault("Abyss Synth");
|
||||
AddMapEntry(new Color(191, 142, 111), name);
|
||||
|
||||