From 7b4cb7fe867b397596db5efd60c331934700614b Mon Sep 17 00:00:00 2001 From: termigator1359 <45545085+termigator1359@users.noreply.github.com> Date: Thu, 20 Aug 2020 15:46:26 -0400 Subject: [PATCH 1/4] Let's not bring back the support8K bug --- Tiles/CellFabricator.png | Bin 12650 -> 0 bytes 1 file changed, 0 insertions(+), 0 deletions(-) delete mode 100644 Tiles/CellFabricator.png diff --git a/Tiles/CellFabricator.png b/Tiles/CellFabricator.png deleted file mode 100644 index f0f6b924f9f6366164294bb2dcf78c482cba8115..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 12650 zcmeHNc|6o>+rNJ^!;E!Ch-8_GA}UK#_OWDN#!^y3w8+wtC0p`SWT~X0q+}1}piZ5T zYEG0=AxnCSl6@&eB9!-@F*=>C7V=hUDx;eE>{fA!jOkkgcAV3 zV{D{v4S%Nsz%@+3!av=)xXlgzhWJ_=>Vkr5(O&o$+%_F^9RMyI=9=2X1^^b&%xqV~ ze`jN3lagGxLQ&adwZSI4wGxxldjou@sSed9`$B=H1p^U-s>JLg?pxDvZmU)083FQRcc?1P0nG8ZhRW75=t_O95fE2a3M z=hGi1pO>D&uB!pmsq=1G^Si<3Xp@$+651a|QsFO4`ub~LcUwYviywv{vyPP@+?JgjEd-{D%`5lAdFejt=+>iVwQ^Ts%h-v&! z6+T!Ae6MM2d7-|xzB33djqFNydzF3DZxXpoJPH;?E|WdnRMK^0+Dm*nFr)eNa%I<) zl*x~(o*ffK_eVsU9J9AhKF7Yw(xmc8rSw|YIphGat5QF2qiOo1qx@-c7!#zyjXQ~~ zyS+$?M`1@Yb%Iav;C65zCfq9O;gS=lr7s^Eevo-kcTTH?=RPCsc3JJVuv6oR+jo@0 z9RhQJAg<1Jpm^#v9t5PMDtp8)2b<@qmDHujrAzfHg2%M!7OKDvDL{r}+BSSw$PCkpTaXQTwQ?+jx zluUxlhU3_&zNq_%f_*h5UJHl*K(?}4fvuHL-m>?dIQoQmA@>2+F_PMlZiv!@A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Jl^C*Z>{>4YUcACc#js-A9Z|r)b%v~m zNSCaDK|f=|e!Sk!9J8@s0-~`r@_wYrgUd nE%%eqI^>`GWJghWfh=*p@St$UZO<6SvAgkV3;hCJ=e_>}Sl5(& From 54cbdd6219ed84c9c14a658efd47fc99de8167ed Mon Sep 17 00:00:00 2001 From: termigator1359 <45545085+termigator1359@users.noreply.github.com> Date: Thu, 20 Aug 2020 15:46:49 -0400 Subject: [PATCH 2/4] extra lavaproof security --- Tiles/DraedonFactoryFieldGenerator.cs | 1 + Tiles/DraedonFuelFactory.cs | 1 + Tiles/DraedonHologram.cs | 1 + Tiles/DraedonItemCharger.cs | 1 + Tiles/DraedonStructures/AgedLaboratoryConsole.cs | 1 + Tiles/DraedonStructures/AgedLaboratoryContainmentBox.cs | 1 + Tiles/DraedonStructures/AgedLaboratoryDisplay.cs | 1 + Tiles/DraedonStructures/AgedLaboratoryDoorClosed.cs | 1 + Tiles/DraedonStructures/AgedLaboratoryDoorOpen.cs | 1 + Tiles/DraedonStructures/AgedLaboratoryElectricPanel.cs | 1 + Tiles/DraedonStructures/AgedLaboratoryScreen.cs | 1 + Tiles/DraedonStructures/AgedLaboratoryServer.cs | 1 + Tiles/DraedonStructures/AgedLaboratoryTerminal.cs | 1 + Tiles/DraedonStructures/AgedReinforcedCrate.cs | 1 + Tiles/DraedonStructures/LaboratoryConsole.cs | 1 + Tiles/DraedonStructures/LaboratoryContainmentBox.cs | 1 + Tiles/DraedonStructures/LaboratoryDisplay.cs | 1 + Tiles/DraedonStructures/LaboratoryDoorClosed.cs | 1 + Tiles/DraedonStructures/LaboratoryDoorOpen.cs | 1 + Tiles/DraedonStructures/LaboratoryElectricPanel.cs | 1 + Tiles/DraedonStructures/LaboratoryScreen.cs | 1 + Tiles/DraedonStructures/LaboratoryServer.cs | 1 + Tiles/DraedonStructures/LaboratoryTerminal.cs | 1 + Tiles/DraedonStructures/ReinforcedCrate.cs | 1 + Tiles/DraedonTurretTile.cs | 1 + Tiles/InactiveDraedonFuelFactory.cs | 1 + 26 files changed, 26 insertions(+) diff --git a/Tiles/DraedonFactoryFieldGenerator.cs b/Tiles/DraedonFactoryFieldGenerator.cs index acbcf422cd..455736be1d 100644 --- a/Tiles/DraedonFactoryFieldGenerator.cs +++ b/Tiles/DraedonFactoryFieldGenerator.cs @@ -20,6 +20,7 @@ namespace CalamityMod.Tiles Main.tileWaterDeath[Type] = false; TileObjectData.newTile.CopyFrom(TileObjectData.Style1x1); TileObjectData.newTile.HookPostPlaceMyPlayer = new PlacementHook(ModContent.GetInstance().Hook_AfterPlacement, -1, 0, true); + TileObjectData.newTile.LavaDeath = false; TileObjectData.addTile(Type); ModTranslation name = CreateMapEntryName(); name.SetDefault("Field Generator"); diff --git a/Tiles/DraedonFuelFactory.cs b/Tiles/DraedonFuelFactory.cs index 0e7bef403f..1556e238eb 100644 --- a/Tiles/DraedonFuelFactory.cs +++ b/Tiles/DraedonFuelFactory.cs @@ -32,6 +32,7 @@ namespace CalamityMod.Tiles TileObjectData.newTile.AnchorBottom = new AnchorData(AnchorType.SolidTile | AnchorType.SolidWithTop | AnchorType.SolidSide, TileObjectData.newTile.Width, 0); TileObjectData.newTile.CoordinateHeights = new int[] { 16, 16, 16, 16 }; TileObjectData.newTile.HookPostPlaceMyPlayer = new PlacementHook(ModContent.GetInstance().Hook_AfterPlacement, -1, 0, true); + TileObjectData.newTile.LavaDeath = false; TileObjectData.addTile(Type); ModTranslation name = CreateMapEntryName(); name.SetDefault("Fuel Factory"); diff --git a/Tiles/DraedonHologram.cs b/Tiles/DraedonHologram.cs index 72aafa5862..9d68c3c347 100644 --- a/Tiles/DraedonHologram.cs +++ b/Tiles/DraedonHologram.cs @@ -32,6 +32,7 @@ namespace CalamityMod.Tiles TileObjectData.newTile.CoordinateHeights[i] = 16; } TileObjectData.newTile.HookPostPlaceMyPlayer = new PlacementHook(ModContent.GetInstance().Hook_AfterPlacement, -1, 0, true); + TileObjectData.newTile.LavaDeath = false; TileObjectData.addTile(Type); animationFrameHeight = 112; diff --git a/Tiles/DraedonItemCharger.cs b/Tiles/DraedonItemCharger.cs index 336c8cb397..bd9351cbff 100644 --- a/Tiles/DraedonItemCharger.cs +++ b/Tiles/DraedonItemCharger.cs @@ -24,6 +24,7 @@ namespace CalamityMod.Tiles Main.tileWaterDeath[Type] = false; TileObjectData.newTile.CopyFrom(TileObjectData.Style3x2); TileObjectData.newTile.HookPostPlaceMyPlayer = new PlacementHook(ModContent.GetInstance().Hook_AfterPlacement, -1, 0, true); + TileObjectData.newTile.LavaDeath = false; TileObjectData.addTile(Type); ModTranslation name = CreateMapEntryName(); name.SetDefault("Item Charger"); diff --git a/Tiles/DraedonStructures/AgedLaboratoryConsole.cs b/Tiles/DraedonStructures/AgedLaboratoryConsole.cs index 22f0d08a03..abaf13d9fa 100644 --- a/Tiles/DraedonStructures/AgedLaboratoryConsole.cs +++ b/Tiles/DraedonStructures/AgedLaboratoryConsole.cs @@ -23,6 +23,7 @@ namespace CalamityMod.Tiles.DraedonStructures TileObjectData.newTile.StyleWrapLimit = 2; TileObjectData.newTile.StyleMultiplier = 2; TileObjectData.newTile.StyleHorizontal = true; + TileObjectData.newTile.LavaDeath = false; TileObjectData.newTile.Direction = TileObjectDirection.PlaceRight; diff --git a/Tiles/DraedonStructures/AgedLaboratoryContainmentBox.cs b/Tiles/DraedonStructures/AgedLaboratoryContainmentBox.cs index 0b6431f9a5..0cc14fdb8a 100644 --- a/Tiles/DraedonStructures/AgedLaboratoryContainmentBox.cs +++ b/Tiles/DraedonStructures/AgedLaboratoryContainmentBox.cs @@ -21,6 +21,7 @@ namespace CalamityMod.Tiles.DraedonStructures TileObjectData.newTile.StyleWrapLimit = 2; TileObjectData.newTile.StyleMultiplier = 2; TileObjectData.newTile.StyleHorizontal = true; + TileObjectData.newTile.LavaDeath = false; TileObjectData.newTile.Direction = TileObjectDirection.PlaceRight; diff --git a/Tiles/DraedonStructures/AgedLaboratoryDisplay.cs b/Tiles/DraedonStructures/AgedLaboratoryDisplay.cs index 1779b0de16..46994b7a6a 100644 --- a/Tiles/DraedonStructures/AgedLaboratoryDisplay.cs +++ b/Tiles/DraedonStructures/AgedLaboratoryDisplay.cs @@ -24,6 +24,7 @@ namespace CalamityMod.Tiles.DraedonStructures TileObjectData.newTile.Origin = new Point16(0, 2); TileObjectData.newTile.AnchorBottom = new AnchorData(AnchorType.SolidTile | AnchorType.SolidWithTop | AnchorType.SolidSide, TileObjectData.newTile.Width, 0); TileObjectData.newTile.CoordinateHeights = new int[] { 16, 16, 16 }; + TileObjectData.newTile.LavaDeath = false; TileObjectData.addTile(Type); ModTranslation name = CreateMapEntryName(); name.SetDefault("Aged Display"); diff --git a/Tiles/DraedonStructures/AgedLaboratoryDoorClosed.cs b/Tiles/DraedonStructures/AgedLaboratoryDoorClosed.cs index c139d4e2b6..88c6d4d7fe 100644 --- a/Tiles/DraedonStructures/AgedLaboratoryDoorClosed.cs +++ b/Tiles/DraedonStructures/AgedLaboratoryDoorClosed.cs @@ -31,6 +31,7 @@ namespace CalamityMod.Tiles.DraedonStructures TileObjectData.newTile.AnchorTop = new AnchorData(AnchorType.SolidTile, TileObjectData.newTile.Width, 0); TileObjectData.newTile.AnchorBottom = new AnchorData(AnchorType.SolidTile, TileObjectData.newTile.Width, 0); TileObjectData.newTile.UsesCustomCanPlace = true; + TileObjectData.newTile.LavaDeath = false; TileObjectData.addTile(Type); AddToArray(ref TileID.Sets.RoomNeeds.CountsAsDoor); diff --git a/Tiles/DraedonStructures/AgedLaboratoryDoorOpen.cs b/Tiles/DraedonStructures/AgedLaboratoryDoorOpen.cs index eca57a5ad0..ed8985c7e6 100644 --- a/Tiles/DraedonStructures/AgedLaboratoryDoorOpen.cs +++ b/Tiles/DraedonStructures/AgedLaboratoryDoorOpen.cs @@ -31,6 +31,7 @@ namespace CalamityMod.Tiles.DraedonStructures TileObjectData.newTile.AnchorTop = new AnchorData(AnchorType.SolidTile, TileObjectData.newTile.Width, 0); TileObjectData.newTile.AnchorBottom = new AnchorData(AnchorType.SolidTile, TileObjectData.newTile.Width, 0); TileObjectData.newTile.UsesCustomCanPlace = true; + TileObjectData.newTile.LavaDeath = false; TileObjectData.addTile(Type); AddToArray(ref TileID.Sets.RoomNeeds.CountsAsDoor); diff --git a/Tiles/DraedonStructures/AgedLaboratoryElectricPanel.cs b/Tiles/DraedonStructures/AgedLaboratoryElectricPanel.cs index 691e6e0774..9ea513cbed 100644 --- a/Tiles/DraedonStructures/AgedLaboratoryElectricPanel.cs +++ b/Tiles/DraedonStructures/AgedLaboratoryElectricPanel.cs @@ -20,6 +20,7 @@ namespace CalamityMod.Tiles.DraedonStructures TileObjectData.newTile.StyleWrapLimit = 2; TileObjectData.newTile.StyleMultiplier = 2; TileObjectData.newTile.StyleHorizontal = true; + TileObjectData.newTile.LavaDeath = false; TileObjectData.newTile.Direction = TileObjectDirection.PlaceRight; diff --git a/Tiles/DraedonStructures/AgedLaboratoryScreen.cs b/Tiles/DraedonStructures/AgedLaboratoryScreen.cs index f2f8128850..4db2a1c1fd 100644 --- a/Tiles/DraedonStructures/AgedLaboratoryScreen.cs +++ b/Tiles/DraedonStructures/AgedLaboratoryScreen.cs @@ -16,6 +16,7 @@ namespace CalamityMod.Tiles.DraedonStructures TileObjectData.newTile.CopyFrom(TileObjectData.Style3x3Wall); TileObjectData.newTile.Height = 2; TileObjectData.newTile.CoordinateHeights = new[] { 16, 16 }; + TileObjectData.newTile.LavaDeath = false; TileObjectData.addTile(Type); ModTranslation name = CreateMapEntryName(); diff --git a/Tiles/DraedonStructures/AgedLaboratoryServer.cs b/Tiles/DraedonStructures/AgedLaboratoryServer.cs index b375bf41dd..d1afbd35ec 100644 --- a/Tiles/DraedonStructures/AgedLaboratoryServer.cs +++ b/Tiles/DraedonStructures/AgedLaboratoryServer.cs @@ -23,6 +23,7 @@ namespace CalamityMod.Tiles.DraedonStructures TileObjectData.newTile.StyleWrapLimit = 2; TileObjectData.newTile.StyleMultiplier = 2; TileObjectData.newTile.StyleHorizontal = true; + TileObjectData.newTile.LavaDeath = false; TileObjectData.newTile.Direction = TileObjectDirection.PlaceRight; diff --git a/Tiles/DraedonStructures/AgedLaboratoryTerminal.cs b/Tiles/DraedonStructures/AgedLaboratoryTerminal.cs index c7df781b40..1bc8b5d738 100644 --- a/Tiles/DraedonStructures/AgedLaboratoryTerminal.cs +++ b/Tiles/DraedonStructures/AgedLaboratoryTerminal.cs @@ -23,6 +23,7 @@ namespace CalamityMod.Tiles.DraedonStructures TileObjectData.newTile.Origin = new Point16(0, 2); TileObjectData.newTile.AnchorBottom = new AnchorData(AnchorType.SolidTile | AnchorType.SolidWithTop | AnchorType.SolidSide, TileObjectData.newTile.Width, 0); TileObjectData.newTile.CoordinateHeights = new int[] { 16, 16, 16 }; + TileObjectData.newTile.LavaDeath = false; TileObjectData.newTile.StyleWrapLimit = 2; TileObjectData.newTile.StyleMultiplier = 2; diff --git a/Tiles/DraedonStructures/AgedReinforcedCrate.cs b/Tiles/DraedonStructures/AgedReinforcedCrate.cs index 69ee0f8e4c..664e89a983 100644 --- a/Tiles/DraedonStructures/AgedReinforcedCrate.cs +++ b/Tiles/DraedonStructures/AgedReinforcedCrate.cs @@ -18,6 +18,7 @@ namespace CalamityMod.Tiles.DraedonStructures Main.tileWaterDeath[Type] = false; Main.tileSolidTop[Type] = true; TileObjectData.newTile.CopyFrom(TileObjectData.Style2x2); + TileObjectData.newTile.LavaDeath = false; TileObjectData.addTile(Type); ModTranslation name = CreateMapEntryName(); name.SetDefault("Aged Reinforced Crate"); diff --git a/Tiles/DraedonStructures/LaboratoryConsole.cs b/Tiles/DraedonStructures/LaboratoryConsole.cs index 1c736617ab..7e54a2e199 100644 --- a/Tiles/DraedonStructures/LaboratoryConsole.cs +++ b/Tiles/DraedonStructures/LaboratoryConsole.cs @@ -23,6 +23,7 @@ namespace CalamityMod.Tiles.DraedonStructures TileObjectData.newTile.StyleWrapLimit = 2; TileObjectData.newTile.StyleMultiplier = 2; TileObjectData.newTile.StyleHorizontal = true; + TileObjectData.newTile.LavaDeath = false; TileObjectData.newTile.Direction = TileObjectDirection.PlaceRight; diff --git a/Tiles/DraedonStructures/LaboratoryContainmentBox.cs b/Tiles/DraedonStructures/LaboratoryContainmentBox.cs index 1f45fc75e4..d1e965e5c9 100644 --- a/Tiles/DraedonStructures/LaboratoryContainmentBox.cs +++ b/Tiles/DraedonStructures/LaboratoryContainmentBox.cs @@ -21,6 +21,7 @@ namespace CalamityMod.Tiles.DraedonStructures TileObjectData.newTile.StyleWrapLimit = 2; TileObjectData.newTile.StyleMultiplier = 2; TileObjectData.newTile.StyleHorizontal = true; + TileObjectData.newTile.LavaDeath = false; TileObjectData.newTile.Direction = TileObjectDirection.PlaceRight; diff --git a/Tiles/DraedonStructures/LaboratoryDisplay.cs b/Tiles/DraedonStructures/LaboratoryDisplay.cs index 9ba470b74e..6342b43c0c 100644 --- a/Tiles/DraedonStructures/LaboratoryDisplay.cs +++ b/Tiles/DraedonStructures/LaboratoryDisplay.cs @@ -27,6 +27,7 @@ namespace CalamityMod.Tiles.DraedonStructures TileObjectData.newTile.StyleWrapLimit = 2; TileObjectData.newTile.StyleMultiplier = 2; TileObjectData.newTile.StyleHorizontal = true; + TileObjectData.newTile.LavaDeath = false; TileObjectData.newTile.Direction = TileObjectDirection.PlaceRight; diff --git a/Tiles/DraedonStructures/LaboratoryDoorClosed.cs b/Tiles/DraedonStructures/LaboratoryDoorClosed.cs index f20f8aed5e..170cac3fe9 100644 --- a/Tiles/DraedonStructures/LaboratoryDoorClosed.cs +++ b/Tiles/DraedonStructures/LaboratoryDoorClosed.cs @@ -31,6 +31,7 @@ namespace CalamityMod.Tiles.DraedonStructures TileObjectData.newTile.AnchorTop = new AnchorData(AnchorType.SolidTile, TileObjectData.newTile.Width, 0); TileObjectData.newTile.AnchorBottom = new AnchorData(AnchorType.SolidTile, TileObjectData.newTile.Width, 0); TileObjectData.newTile.UsesCustomCanPlace = true; + TileObjectData.newTile.LavaDeath = false; TileObjectData.addTile(Type); AddToArray(ref TileID.Sets.RoomNeeds.CountsAsDoor); diff --git a/Tiles/DraedonStructures/LaboratoryDoorOpen.cs b/Tiles/DraedonStructures/LaboratoryDoorOpen.cs index c76e46273b..cffc7aa927 100644 --- a/Tiles/DraedonStructures/LaboratoryDoorOpen.cs +++ b/Tiles/DraedonStructures/LaboratoryDoorOpen.cs @@ -31,6 +31,7 @@ namespace CalamityMod.Tiles.DraedonStructures TileObjectData.newTile.AnchorTop = new AnchorData(AnchorType.SolidTile, TileObjectData.newTile.Width, 0); TileObjectData.newTile.AnchorBottom = new AnchorData(AnchorType.SolidTile, TileObjectData.newTile.Width, 0); TileObjectData.newTile.UsesCustomCanPlace = true; + TileObjectData.newTile.LavaDeath = false; TileObjectData.addTile(Type); AddToArray(ref TileID.Sets.RoomNeeds.CountsAsDoor); diff --git a/Tiles/DraedonStructures/LaboratoryElectricPanel.cs b/Tiles/DraedonStructures/LaboratoryElectricPanel.cs index 9b0766683a..d740674727 100644 --- a/Tiles/DraedonStructures/LaboratoryElectricPanel.cs +++ b/Tiles/DraedonStructures/LaboratoryElectricPanel.cs @@ -20,6 +20,7 @@ namespace CalamityMod.Tiles.DraedonStructures TileObjectData.newTile.StyleWrapLimit = 2; TileObjectData.newTile.StyleMultiplier = 2; TileObjectData.newTile.StyleHorizontal = true; + TileObjectData.newTile.LavaDeath = false; TileObjectData.newTile.Direction = TileObjectDirection.PlaceRight; diff --git a/Tiles/DraedonStructures/LaboratoryScreen.cs b/Tiles/DraedonStructures/LaboratoryScreen.cs index 9ad3fe319f..ea46eb46c8 100644 --- a/Tiles/DraedonStructures/LaboratoryScreen.cs +++ b/Tiles/DraedonStructures/LaboratoryScreen.cs @@ -17,6 +17,7 @@ namespace CalamityMod.Tiles.DraedonStructures TileObjectData.newTile.CopyFrom(TileObjectData.Style3x3Wall); TileObjectData.newTile.Height = 2; TileObjectData.newTile.CoordinateHeights = new[] { 16, 16 }; + TileObjectData.newTile.LavaDeath = false; TileObjectData.addTile(Type); ModTranslation name = CreateMapEntryName(); diff --git a/Tiles/DraedonStructures/LaboratoryServer.cs b/Tiles/DraedonStructures/LaboratoryServer.cs index 1a8a22318c..8c13fe72e8 100644 --- a/Tiles/DraedonStructures/LaboratoryServer.cs +++ b/Tiles/DraedonStructures/LaboratoryServer.cs @@ -23,6 +23,7 @@ namespace CalamityMod.Tiles.DraedonStructures TileObjectData.newTile.StyleWrapLimit = 2; TileObjectData.newTile.StyleMultiplier = 2; TileObjectData.newTile.StyleHorizontal = true; + TileObjectData.newTile.LavaDeath = false; TileObjectData.newTile.Direction = TileObjectDirection.PlaceRight; diff --git a/Tiles/DraedonStructures/LaboratoryTerminal.cs b/Tiles/DraedonStructures/LaboratoryTerminal.cs index 13a4f07d8f..508f6cdb3e 100644 --- a/Tiles/DraedonStructures/LaboratoryTerminal.cs +++ b/Tiles/DraedonStructures/LaboratoryTerminal.cs @@ -27,6 +27,7 @@ namespace CalamityMod.Tiles.DraedonStructures TileObjectData.newTile.StyleWrapLimit = 2; TileObjectData.newTile.StyleMultiplier = 2; TileObjectData.newTile.StyleHorizontal = true; + TileObjectData.newTile.LavaDeath = false; TileObjectData.newTile.Direction = TileObjectDirection.PlaceRight; diff --git a/Tiles/DraedonStructures/ReinforcedCrate.cs b/Tiles/DraedonStructures/ReinforcedCrate.cs index 6145962191..91c0308eb7 100644 --- a/Tiles/DraedonStructures/ReinforcedCrate.cs +++ b/Tiles/DraedonStructures/ReinforcedCrate.cs @@ -18,6 +18,7 @@ namespace CalamityMod.Tiles.DraedonStructures Main.tileWaterDeath[Type] = false; Main.tileSolidTop[Type] = true; TileObjectData.newTile.CopyFrom(TileObjectData.Style2x2); + TileObjectData.newTile.LavaDeath = false; TileObjectData.addTile(Type); ModTranslation name = CreateMapEntryName(); name.SetDefault("Reinforced Crate"); diff --git a/Tiles/DraedonTurretTile.cs b/Tiles/DraedonTurretTile.cs index b8d0a418fc..35e2511263 100644 --- a/Tiles/DraedonTurretTile.cs +++ b/Tiles/DraedonTurretTile.cs @@ -23,6 +23,7 @@ namespace CalamityMod.Tiles Main.tileWaterDeath[Type] = false; TileObjectData.newTile.CopyFrom(TileObjectData.Style3x2); TileObjectData.newTile.HookPostPlaceMyPlayer = new PlacementHook(ModContent.GetInstance().Hook_AfterPlacement, -1, 0, true); + TileObjectData.newTile.LavaDeath = false; TileObjectData.addTile(Type); ModTranslation name = CreateMapEntryName(); name.SetDefault("Turret"); diff --git a/Tiles/InactiveDraedonFuelFactory.cs b/Tiles/InactiveDraedonFuelFactory.cs index 67477ff459..4bc88085ea 100644 --- a/Tiles/InactiveDraedonFuelFactory.cs +++ b/Tiles/InactiveDraedonFuelFactory.cs @@ -25,6 +25,7 @@ namespace CalamityMod.Tiles TileObjectData.newTile.AnchorBottom = new AnchorData(AnchorType.SolidTile | AnchorType.SolidWithTop | AnchorType.SolidSide, TileObjectData.newTile.Width, 0); TileObjectData.newTile.CoordinateHeights = new int[] { 16, 16, 16, 16 }; TileObjectData.newTile.CoordinatePadding = 0; + TileObjectData.newTile.LavaDeath = false; TileObjectData.addTile(Type); ModTranslation name = CreateMapEntryName(); name.SetDefault("Inactive Fuel Factory"); From c0309f2c4a61e0939853b14676e46c67ef232fac Mon Sep 17 00:00:00 2001 From: termigator1359 <45545085+termigator1359@users.noreply.github.com> Date: Thu, 20 Aug 2020 21:23:00 -0400 Subject: [PATCH 3/4] fixed brimflame sound & added a levi sound delay --- CalPlayer/CalamityPlayerMiscEffects.cs | 2 ++ NPCs/Leviathan/Leviathan.cs | 11 +++++++++++ Projectiles/Boss/LeviathanBomb.cs | 5 ----- 3 files changed, 13 insertions(+), 5 deletions(-) diff --git a/CalPlayer/CalamityPlayerMiscEffects.cs b/CalPlayer/CalamityPlayerMiscEffects.cs index 1c12862c41..ec4a12d4e3 100644 --- a/CalPlayer/CalamityPlayerMiscEffects.cs +++ b/CalPlayer/CalamityPlayerMiscEffects.cs @@ -1004,6 +1004,8 @@ namespace CalamityMod.CalPlayer modPlayer.omegaBlueCooldown--; if (modPlayer.plagueReaperCooldown > 0) modPlayer.plagueReaperCooldown--; + if (modPlayer.brimflameFrenzyTimer > 0) + modPlayer.brimflameFrenzyTimer--; if (modPlayer.roverDrive) { if (modPlayer.roverDriveTimer < CalamityUtils.SecondsToFrames(30f)) diff --git a/NPCs/Leviathan/Leviathan.cs b/NPCs/Leviathan/Leviathan.cs index 6028e516e8..70135af900 100644 --- a/NPCs/Leviathan/Leviathan.cs +++ b/NPCs/Leviathan/Leviathan.cs @@ -26,6 +26,7 @@ namespace CalamityMod.NPCs.Leviathan { int counter = 0; bool initialised = false; + int soundDelay = 0; public override void SetStaticDefaults() { @@ -95,6 +96,7 @@ namespace CalamityMod.NPCs.Leviathan writer.Write(npc.dontTakeDamage); writer.Write(counter); writer.Write(initialised); + writer.Write(soundDelay); } public override void ReceiveExtraAI(BinaryReader reader) @@ -102,6 +104,7 @@ namespace CalamityMod.NPCs.Leviathan npc.dontTakeDamage = reader.ReadBoolean(); counter = reader.ReadInt32(); initialised = reader.ReadBoolean(); + soundDelay = reader.ReadInt32(); } public override void AI() @@ -157,6 +160,9 @@ namespace CalamityMod.NPCs.Leviathan 40 }); + if (soundDelay > 0) + soundDelay--; + if (Main.rand.NextBool(600) && !spawnAnimation) Main.PlaySound(SoundID.Zombie, (int)npc.Center.X, (int)npc.Center.Y, (sirenAlive && !death) ? soundChoice : soundChoiceRage); @@ -346,6 +352,11 @@ namespace CalamityMod.NPCs.Leviathan vector40.X += num415 * 4f; vector40.Y += num416 * 4f; Projectile.NewProjectile(vector40.X, vector40.Y, num415, num416, projType, dmg, 0f, Main.myPlayer, 0f, 0f); + if (soundDelay <= 0) + { + soundDelay = 120; + Main.PlaySound(mod.GetLegacySoundSlot(SoundType.Custom, "Sounds/Custom/LeviathanRoarMeteor"), npc.Center); + } } } } diff --git a/Projectiles/Boss/LeviathanBomb.cs b/Projectiles/Boss/LeviathanBomb.cs index 3c210effe3..80e7347cf4 100644 --- a/Projectiles/Boss/LeviathanBomb.cs +++ b/Projectiles/Boss/LeviathanBomb.cs @@ -46,11 +46,6 @@ namespace CalamityMod.Projectiles.Boss projectile.rotation += 0.1f; if (visible && projectile.alpha > 0) projectile.alpha -= 15; - if (projectile.ai[1] == 0f) - { - projectile.ai[1] = 1f; - Main.PlaySound(mod.GetLegacySoundSlot(SoundType.Custom, "Sounds/Custom/LeviathanRoarMeteor"), projectile.Center); - } projectile.localAI[0] += 1f; if (projectile.localAI[0] == 12f) { From 50ed705231fc6cd8d58a0ecbb67ad05a9567e3a3 Mon Sep 17 00:00:00 2001 From: termigator1359 <45545085+termigator1359@users.noreply.github.com> Date: Thu, 20 Aug 2020 22:59:22 -0400 Subject: [PATCH 4/4] napalm i frame adjustment --- Projectiles/Ranged/NapalmArrowProj.cs | 3 +++ 1 file changed, 3 insertions(+) diff --git a/Projectiles/Ranged/NapalmArrowProj.cs b/Projectiles/Ranged/NapalmArrowProj.cs index c9bed216bd..e6ffba98a2 100644 --- a/Projectiles/Ranged/NapalmArrowProj.cs +++ b/Projectiles/Ranged/NapalmArrowProj.cs @@ -74,6 +74,9 @@ namespace CalamityMod.Projectiles.Ranged int flames = Projectile.NewProjectile(projectile.Center, velocity, ModContent.ProjectileType(), (int)(projectile.damage * 0.3), 0f, projectile.owner, 0f, 0f); Main.projectile[flames].Calamity().forceRanged = true; Main.projectile[flames].penetrate = 3; + Main.projectile[flames].usesLocalNPCImmunity = false; + Main.projectile[flames].usesIDStaticNPCImmunity = true; + Main.projectile[flames].idStaticNPCHitCooldown = 10; } } }