diff --git a/ExpandAssets/Assets/AssetBundles/AssetBundles b/ExpandAssets/Assets/AssetBundles/AssetBundles index b1b1fd9..a8218bf 100644 Binary files a/ExpandAssets/Assets/AssetBundles/AssetBundles and b/ExpandAssets/Assets/AssetBundles/AssetBundles differ diff --git a/ExpandAssets/Assets/AssetBundles/AssetBundles.manifest b/ExpandAssets/Assets/AssetBundles/AssetBundles.manifest index af21abb..92711ac 100644 --- a/ExpandAssets/Assets/AssetBundles/AssetBundles.manifest +++ b/ExpandAssets/Assets/AssetBundles/AssetBundles.manifest @@ -1,5 +1,5 @@ ManifestFileVersion: 0 -CRC: 1983819566 +CRC: 36798397 AssetBundleManifest: AssetBundleInfos: Info_0: diff --git a/ExpandAssets/Assets/AssetBundles/expandsharedauto b/ExpandAssets/Assets/AssetBundles/expandsharedauto index a821465..c7e0456 100644 Binary files a/ExpandAssets/Assets/AssetBundles/expandsharedauto and b/ExpandAssets/Assets/AssetBundles/expandsharedauto differ diff --git a/ExpandAssets/Assets/AssetBundles/expandsharedauto.manifest b/ExpandAssets/Assets/AssetBundles/expandsharedauto.manifest index 3c6e356..d9c428b 100644 --- a/ExpandAssets/Assets/AssetBundles/expandsharedauto.manifest +++ b/ExpandAssets/Assets/AssetBundles/expandsharedauto.manifest @@ -1,9 +1,9 @@ ManifestFileVersion: 0 -CRC: 4207470725 +CRC: 2273984678 Hashes: AssetFileHash: serializedVersion: 2 - Hash: 3a182b004c486813864fd873202c286d + Hash: ad04d869f5cd6468058c476a5410313d TypeTreeHash: serializedVersion: 2 Hash: 2241b0dac22d22b9de2222ad79842819 diff --git a/ExpandAssets/Assets/ExpandTextures/EXLogo.png b/ExpandAssets/Assets/ExpandTextures/EXLogo.png index 4899798..9ede102 100644 Binary files a/ExpandAssets/Assets/ExpandTextures/EXLogo.png and b/ExpandAssets/Assets/ExpandTextures/EXLogo.png differ diff --git a/ExpandAssets/Audio/ExpandTheGungeon.Spenser.wsettings b/ExpandAssets/Audio/ExpandTheGungeon.Spenser.wsettings index 3128699..74eeea8 100644 --- a/ExpandAssets/Audio/ExpandTheGungeon.Spenser.wsettings +++ b/ExpandAssets/Audio/ExpandTheGungeon.Spenser.wsettings @@ -168,8 +168,8 @@ - - + + diff --git a/ExpandTheGungeon/ExpandMain/ExpandSharedHooks.cs b/ExpandTheGungeon/ExpandMain/ExpandSharedHooks.cs index e1f9e88..5e4127e 100644 --- a/ExpandTheGungeon/ExpandMain/ExpandSharedHooks.cs +++ b/ExpandTheGungeon/ExpandMain/ExpandSharedHooks.cs @@ -37,7 +37,6 @@ public class ExpandSharedHooks { public static Hook arrivalElevatorUpdateHook; public static Hook constructTK2DDungeonHook; public static Hook handleGrabbyGrabHook; - public static Hook dungeonStartHook; public static Hook sellPitConfigureOnPlacementHook; public static Hook playerFiredHook; public static Hook flagCellsHook; @@ -211,13 +210,6 @@ public class ExpandSharedHooks { typeof(HellDragZoneController) ); - if (ExpandSettings.debugMode) { Debug.Log("[ExpandTheGungeon] Installing ItemDB.DungeonStart Hook...."); } - dungeonStartHook = new Hook( - typeof(ItemDB).GetMethod("DungeonStart", BindingFlags.Public | BindingFlags.Instance), - typeof(ExpandSharedHooks).GetMethod("DungeonStartHook", BindingFlags.Public | BindingFlags.Instance), - typeof(ItemDB) - ); - if (ExpandSettings.debugMode) { Debug.Log("[ExpandTheGungeon] Installing SellCellController.ConfigureOnPlacement Hook...."); } sellPitConfigureOnPlacementHook = new Hook( typeof(SellCellController).GetMethod("ConfigureOnPlacement", BindingFlags.Public | BindingFlags.Instance), @@ -890,27 +882,7 @@ public class ExpandSharedHooks { } yield break; } - - public void DungeonStartHook(Actionorig, ItemDB self) { - List collection; - if (self.ModLootPerFloor.TryGetValue("ANY", out collection)) { - GameManager.Instance.Dungeon.baseChestContents.defaultItemDrops.elements.AddRange(collection); - } - string dungeonFloorName = GameManager.Instance.Dungeon.DungeonFloorName; - string key = string.Empty; - try { - key = dungeonFloorName.Substring(1, dungeonFloorName.IndexOf('_') - 1); - } catch (Exception ex) { - if (ExpandSettings.debugMode) { ETGModConsole.Log("WARNING: dungoenFloorname.SubString() returned a negative or 0 length value!"); } - Debug.Log("WARNING: dungoenFloorname.SubString() returned a negative or 0 length value!"); - Debug.LogException(ex); - if (GameManager.Instance.Dungeon.tileIndices.tilesetId == GlobalDungeonData.ValidTilesets.WESTGEON) { key = "TEST"; } else { key = "???"; } - } - if (self.ModLootPerFloor.TryGetValue(key, out collection)) { - GameManager.Instance.Dungeon.baseChestContents.defaultItemDrops.elements.AddRange(collection); - } - } - + // Fix Pit size + make sure it only creates pit on the special room from Catacombs. Creating pit under all instances of sell pit makes selling items difficult post FTA update. public void SellPitConfigureOnPlacementHook(Actionorig, SellCellController self, RoomHandler room) { if (room != null && room.GetRoomName().StartsWith("SubShop_SellCreep_CatacombsSpecial")) { @@ -1731,10 +1703,18 @@ public class ExpandSharedHooks { public void FloorChestPlacerConfigureOnPlacementHook(Actionorig, FloorChestPlacer self, RoomHandler room) { if (!self.UseOverrideChest && room.area.PrototypeRoomCategory == PrototypeDungeonRoom.RoomCategory.REWARD - && UnityEngine.Random.value < 0.15f + && UnityEngine.Random.value < 0.1f ) { Vector2 ChestPosition = self.transform.position.IntXY(VectorConversions.Round).ToVector3(); - GameObject chestOBJ = UnityEngine.Object.Instantiate(BraveUtility.RandomElement(ExpandLists.CustomChests), ChestPosition, Quaternion.identity); + GameObject ChestReference = BraveUtility.RandomElement(ExpandLists.CustomChests); + if (ChestReference.name == ExpandPrefabs.RickRollChestObject.name && UnityEngine.Random.value < 0.8f) { + List ChestsWithoutRickRoll = new List(); + foreach (GameObject chest in ExpandLists.CustomChests) { + if (chest.name != ExpandPrefabs.RickRollChestObject.name) { ChestsWithoutRickRoll.Add(ChestReference); } + } + ChestReference = BraveUtility.RandomElement(ChestsWithoutRickRoll); + } + GameObject chestOBJ = UnityEngine.Object.Instantiate(ChestReference, ChestPosition, Quaternion.identity); ExpandFakeChest fakeChest = null; if (chestOBJ) { fakeChest = chestOBJ.GetComponent(); } if (fakeChest) { diff --git a/ExpandTheGungeon/ExpandPrefab/ExpandCustomDungeonPrefabs.cs b/ExpandTheGungeon/ExpandPrefab/ExpandCustomDungeonPrefabs.cs index 015e03f..d2faee5 100644 --- a/ExpandTheGungeon/ExpandPrefab/ExpandCustomDungeonPrefabs.cs +++ b/ExpandTheGungeon/ExpandPrefab/ExpandCustomDungeonPrefabs.cs @@ -77,36 +77,14 @@ public class ExpandCustomDungeonPrefabs { InitPhobosDungeon(expandSharedAuto1, sharedAssets2, Base_Phobos, LoadOfficialDungeonPrefab("Base_Gungeon")); InitOfficeDungeon(expandSharedAuto1, sharedAssets2, Base_Office, LoadOfficialDungeonPrefab("Base_Gungeon")); } - - public void DungeonStart_Hook(Actionorig, ItemDB self) { - List collection; - if (self.ModLootPerFloor.TryGetValue("ANY", out collection)) { - GameManager.Instance.Dungeon.baseChestContents.defaultItemDrops.elements.AddRange(collection); - } - string dungeonFloorName = GameManager.Instance.Dungeon.DungeonFloorName; - if (!string.IsNullOrEmpty(dungeonFloorName) && dungeonFloorName.StartsWith("#")) { - string key = dungeonFloorName.Substring(1, dungeonFloorName.IndexOf('_') - 1); - if (self.ModLootPerFloor.TryGetValue(key, out collection)) { - GameManager.Instance.Dungeon.baseChestContents.defaultItemDrops.elements.AddRange(collection); - } - } - } - - public static void InitCustomGameLevelDefinitions(AssetBundle braveResources) { + + public static void InitCustomGameLevelDefinitions(AssetBundle braveResources, GameManager gameManager) { if (ExpandSettings.debugMode) { Debug.Log("[ExpandTheGungeon] Installing DungeonDatabase.GetOrLoadByName Hook..."); } getOrLoadByName_Hook = new Hook( typeof(DungeonDatabase).GetMethod("GetOrLoadByName", BindingFlags.Static | BindingFlags.Public), typeof(ExpandCustomDungeonPrefabs).GetMethod("GetOrLoadByNameHook", BindingFlags.Static | BindingFlags.Public) ); - - if (ExpandSettings.debugMode) { Debug.Log("[ExpandTheGungeon] Installing ItemDB.DungeonStart Hook..."); } - dungeonStartHook = new Hook( - typeof(ItemDB).GetMethod("DungeonStart", BindingFlags.Instance | BindingFlags.Public), - typeof(ExpandCustomDungeonPrefabs).GetMethod("DungeonStart_Hook", BindingFlags.Instance | BindingFlags.Public), - typeof(ItemDB) - ); - - ReInitFloorDefinitions(GameManager.Instance); + ReInitFloorDefinitions(gameManager); } public static void ReInitFloorDefinitions(GameManager gameManager) { diff --git a/ExpandTheGungeon/ExpandPrefab/ExpandCustomEnemyDatabase.cs b/ExpandTheGungeon/ExpandPrefab/ExpandCustomEnemyDatabase.cs index 3de56c7..fb52171 100644 --- a/ExpandTheGungeon/ExpandPrefab/ExpandCustomEnemyDatabase.cs +++ b/ExpandTheGungeon/ExpandPrefab/ExpandCustomEnemyDatabase.cs @@ -165,9 +165,6 @@ public static class ExpandCustomEnemyDatabase { } public static void InitPrefabs(AssetBundle expandSharedAssets1) { - // Unlock Gungeon class so I can add my enemies to spawn pool for spawn command. - HashSet _LockedNamespaces = ReflectionHelpers.ReflectGetField>(typeof(IDPool), "_LockedNamespaces", Game.Enemies); - _LockedNamespaces.Remove("gungeon"); if (ExpandSettings.debugMode) { Debug.Log("[ExpandTheGungeon] Installing EnemyDatabase.GetOrLoadByGuid Hook...."); } loadEnemyGUIDHook = new Hook( @@ -210,8 +207,6 @@ public static class ExpandCustomEnemyDatabase { // Add R&G enemies to MTG spawn command because Zatherz hasn't done it. :P UpdateMTGSpawnPool(); - - Game.Enemies.LockNamespace("gungeon"); } public static AIActor GetOrLoadByGuidHook(Func orig, string guid) { diff --git a/ExpandTheGungeon/ExpandPrefab/ExpandPrefabs.cs b/ExpandTheGungeon/ExpandPrefab/ExpandPrefabs.cs index be8110b..a794815 100644 --- a/ExpandTheGungeon/ExpandPrefab/ExpandPrefabs.cs +++ b/ExpandTheGungeon/ExpandPrefab/ExpandPrefabs.cs @@ -2662,6 +2662,8 @@ public class ExpandPrefabs { ExpandUtility.AddAnimation(RickRollMusicSwitchObject.GetComponent(), EXTrapCollection.GetComponent(), m_RickRollMusicSwitchTurnOnFrames, "RickRollSwitch_TurnOn", tk2dSpriteAnimationClip.WrapMode.Once, frameRate: 12); ExpandUtility.AddAnimation(RickRollMusicSwitchObject.GetComponent(), EXTrapCollection.GetComponent(), m_RickRollMusicSwitchTurnOffFrames, "RickRollSwitch_TurnOff", tk2dSpriteAnimationClip.WrapMode.Once, frameRate: 12); + ETGModConsole.ModdedShrines.Add("RickRollChest", RickRollChestObject); + ExpandFakeChest RickRollChest_SwitchComponent = RickRollMusicSwitchObject.AddComponent(); RickRollChest_SwitchComponent.chestType = ExpandFakeChest.ChestType.MusicSwitch; @@ -2744,7 +2746,9 @@ public class ExpandPrefabs { SurpriseChestComponent.MinimapIconPrefab = m_BrownChestReference.GetComponent().MinimapIconPrefab; SurpriseChestComponent.breakAnimName = "coop_chest_break"; SurpriseChestComponent.openAnimName = "coop_chest_open"; - + + + ETGModConsole.ModdedShrines.Add("SurpriseChest", SurpriseChestObject); ExpandThunderstormPlaceable = expandSharedAssets1.LoadAsset("ExpandThunderStorm"); ExpandThunderstormPlaceable.AddComponent(); @@ -4210,9 +4214,9 @@ public class ExpandPrefabs { MajorBreakable chestWestBreakable = EX_Chest_West.AddComponent(); JsonUtility.FromJsonOverwrite(JsonUtility.ToJson(ExpandObjectDatabase.ChestBrownTwoItems.GetComponent()), chestWestBreakable); chestWestBreakable.spriteNameToUseAtZeroHP = "chest_west_break_001"; - - - + + ETGModConsole.ModdedChests.Add("West", m_chestWest); + EX_RedBalloon = expandSharedAssets1.LoadAsset("EX_RedBalloon"); tk2dSprite m_RedBalloonSprite = SpriteSerializer.AddSpriteToObject(EX_RedBalloon, EXBalloonCollection, "redballoon_idle_001"); m_RedBalloonSprite.HeightOffGround = 1; diff --git a/ExpandTheGungeon/ExpandTheGungeon.cs b/ExpandTheGungeon/ExpandTheGungeon.cs index 4d11cd7..e1a459b 100644 --- a/ExpandTheGungeon/ExpandTheGungeon.cs +++ b/ExpandTheGungeon/ExpandTheGungeon.cs @@ -113,7 +113,7 @@ private enum WaitType { ShotgunSecret, LanguageFix, DebugFlow }; } - public void GMStart(GameManager gameManager) { + public void GMStart(GameManager gameManager) { try { ExpandSharedHooks.InstallMidGameSaveHooks(); if (ExpandSettings.EnableLogo) { @@ -146,7 +146,6 @@ private enum WaitType { ShotgunSecret, LanguageFix, DebugFlow }; Debug.LogException(ex); return; } - AssetBundle expandSharedAssets1 = ResourceManager.LoadAssetBundle(ModAssetBundleName); AssetBundle sharedAssets = ResourceManager.LoadAssetBundle("shared_auto_001"); AssetBundle sharedAssets2 = ResourceManager.LoadAssetBundle("shared_auto_002"); @@ -154,10 +153,8 @@ private enum WaitType { ShotgunSecret, LanguageFix, DebugFlow }; AssetBundle enemiesBase = ResourceManager.LoadAssetBundle("enemies_base_001"); ExpandAssets.InitAudio(expandSharedAssets1, ModSoundBankName); - // Init Custom GameLevelDefinitions - ExpandCustomDungeonPrefabs.InitCustomGameLevelDefinitions(braveResources); - + ExpandCustomDungeonPrefabs.InitCustomGameLevelDefinitions(braveResources, gameManager); // Init Custom Sprite Collections ExpandPrefabs.InitSpriteCollections(expandSharedAssets1, sharedAssets); ExpandCustomEnemyDatabase.InitSpriteCollections(expandSharedAssets1); @@ -198,12 +195,10 @@ private enum WaitType { ShotgunSecret, LanguageFix, DebugFlow }; InitConsoleCommands(ConsoleCommandName); CreateFoyerController(); - if (ExpandSettings.EnableLanguageFix) { GameManager.Options.CurrentLanguage = StringTableManager.GungeonSupportedLanguages.ENGLISH; StringTableManager.CurrentLanguage = StringTableManager.GungeonSupportedLanguages.ENGLISH; } - // Null bundles when done with them to avoid game crash issues expandSharedAssets1 = null; sharedAssets = null; diff --git a/ExpandTheGungeon/ExpandUtilities/ExpandUtility.cs b/ExpandTheGungeon/ExpandUtilities/ExpandUtility.cs index 9235dec..00f101a 100644 --- a/ExpandTheGungeon/ExpandUtilities/ExpandUtility.cs +++ b/ExpandTheGungeon/ExpandUtilities/ExpandUtility.cs @@ -2586,7 +2586,8 @@ public class ExpandUtility { spriteData.boundsDataExtents = new Vector2(num, num2); spriteData.untrimmedBoundsDataExtents = spriteData.boundsDataExtents; } else { - ETGMod.ReplaceTexture(spriteData, texture2D, true); + // ETGMod.ReplaceTexture(spriteData, texture2D, true); + ETGMod.ReplaceTexture(spriteData, texture2D); } } } @@ -2696,7 +2697,7 @@ public class ExpandUtility { spriteData.boundsDataExtents = new Vector2(Width, Height); spriteData.untrimmedBoundsDataExtents = spriteData.boundsDataExtents; } else { - ETGMod.ReplaceTexture(spriteData, texture, true); + ETGMod.ReplaceTexture(spriteData, texture); } } } @@ -2770,7 +2771,7 @@ public class ExpandUtility { spriteData.boundsDataExtents = new Vector2(num, num2); spriteData.untrimmedBoundsDataExtents = spriteData.boundsDataExtents; } else { - ETGMod.ReplaceTexture(spriteData, texture2D, true); + ETGMod.ReplaceTexture(spriteData, texture2D); } } } @@ -2959,7 +2960,7 @@ public class ExpandUtility { spriteData.boundsDataExtents = new Vector2(width, height); spriteData.untrimmedBoundsDataExtents = spriteData.boundsDataExtents; } else { - ETGMod.ReplaceTexture(spriteData, spriteTexture, true); + ETGMod.ReplaceTexture(spriteData, spriteTexture); } } } diff --git a/ExpandTheGungeon/ItemAPI/Items/BootlegGuns.cs b/ExpandTheGungeon/ItemAPI/Items/BootlegGuns.cs index d59f0ba..2ea157d 100644 --- a/ExpandTheGungeon/ItemAPI/Items/BootlegGuns.cs +++ b/ExpandTheGungeon/ItemAPI/Items/BootlegGuns.cs @@ -29,8 +29,9 @@ public class BootlegGuns : Gun { Game.Items.Rename("outdated_gun_mods:bootleg_pistol", "ex:bootleg_pistol"); pistol.SetShortDescription("Of questionable quality..."); pistol.SetLongDescription("It's a counterfeit gun.\n\nDue to low quality standards, this weapon may be prone to exploding under certain circumstances..."); - GunExt.SetupSprite(pistol, null, "bootleg_pistol_idle_001", 18); - pistol.AddProjectileModuleFrom("Magnum", true, false); + GunExt.SetupSprite(pistol, null, "bootleg_pistol_idle_001", 18); + // pistol.AddProjectileModuleFrom("Magnum", true, false); + pistol.AddProjectileModuleFrom("Magnum", true); pistol.barrelOffset.localPosition -= new Vector3(0.3f, 0.2f, 0); pistol.DefaultModule.ammoCost = 1; pistol.PreventOutlines = true; @@ -45,7 +46,7 @@ public class BootlegGuns : Gun { pistol.encounterTrackable.EncounterGuid = "baad9dd6d005458daf02933f6a1ba926"; pistol.gameObject.AddComponent(); pistol.gameObject.AddComponent(); - ETGMod.Databases.Items.Add(pistol); + ETGMod.Databases.Items.Add((pistol as PickupObject)); BootlegPistolID = pistol.PickupObjectId; PistolProjectile = expandSharedAssets1.LoadAsset("EXBootlegPistolProjectile"); @@ -63,7 +64,7 @@ public class BootlegGuns : Gun { machinepistol.SetShortDescription("Of questionable quality..."); machinepistol.SetLongDescription("It's a counterfeit machine gun.\n\nDue to low quality standards, this weapon may be prone to exploding under certain circumstances..."); GunExt.SetupSprite(machinepistol, null, "bootleg_machinepistol_idle_001", 30); - machinepistol.AddProjectileModuleFrom(PickupObjectDatabase.GetById(43).name, true, false); + machinepistol.AddProjectileModuleFrom(PickupObjectDatabase.GetById(43).name, true); machinepistol.barrelOffset.localPosition -= new Vector3(0.3f, 0.2f, 0); machinepistol.PreventOutlines = true; machinepistol.reloadTime = 1.2f; @@ -78,7 +79,7 @@ public class BootlegGuns : Gun { machinepistol.encounterTrackable.EncounterGuid = "e56adda5081347e5b9e0cf2556689b0e"; machinepistol.gameObject.AddComponent(); machinepistol.gameObject.AddComponent(); - ETGMod.Databases.Items.Add(machinepistol); + ETGMod.Databases.Items.Add((machinepistol as PickupObject)); BootlegMachinePistolID = machinepistol.PickupObjectId; MachinePistolProjectile = expandSharedAssets1.LoadAsset("EXBootlegMachinePistolProjectile"); @@ -96,7 +97,7 @@ public class BootlegGuns : Gun { shotgun.SetShortDescription("Of questionable quality..."); shotgun.SetLongDescription("It's a counterfeit shotgun.\n\nDue to low quality standards, this weapon may be prone to exploding under certain circumstances..."); GunExt.SetupSprite(shotgun, null, "bootleg_shotgun_idle_001", 18); - shotgun.AddProjectileModuleFrom(PickupObjectDatabase.GetById(51).name, true, false); + shotgun.AddProjectileModuleFrom(PickupObjectDatabase.GetById(51).name, true); shotgun.barrelOffset.localPosition -= new Vector3(0.3f, 0.2f, 0); shotgun.PreventOutlines = true; shotgun.reloadTime = 1.8f; @@ -112,7 +113,7 @@ public class BootlegGuns : Gun { shotgun.gameObject.AddComponent(); shotgun.gameObject.AddComponent(); shotgun.DefaultModule.ammoType = GameUIAmmoType.AmmoType.SHOTGUN; - ETGMod.Databases.Items.Add(shotgun); + ETGMod.Databases.Items.Add((shotgun as PickupObject)); BootlegShotgunID = shotgun.PickupObjectId; diff --git a/ExpandTheGungeon/ItemAPI/Items/BulletKinGun.cs b/ExpandTheGungeon/ItemAPI/Items/BulletKinGun.cs index 661cd51..f2a86f3 100644 --- a/ExpandTheGungeon/ItemAPI/Items/BulletKinGun.cs +++ b/ExpandTheGungeon/ItemAPI/Items/BulletKinGun.cs @@ -17,7 +17,7 @@ public class BulletKinGun : Gun { bulletkinGun.SetShortDescription("Fires Bullet Kin..."); bulletkinGun.SetLongDescription("This gun fires Bullet Kins....Don't ask questions. Just accept it."); GunExt.SetupSprite(bulletkinGun, null, "bulletkin_gun_idle_001", 18); - bulletkinGun.AddProjectileModuleFrom("Magnum", true, false); + bulletkinGun.AddProjectileModuleFrom("Magnum", true); bulletkinGun.DefaultModule.ammoCost = 1; bulletkinGun.DefaultModule.angleVariance = 0; bulletkinGun.DefaultModule.numberOfShotsInClip = 1; @@ -36,7 +36,7 @@ public class BulletKinGun : Gun { bulletkinGun.encounterTrackable.EncounterGuid = "43a080b46fa448ef8d2be35f93ab6e64"; bulletkinGun.gameObject.AddComponent(); - ETGMod.Databases.Items.Add(bulletkinGun); + ETGMod.Databases.Items.Add((bulletkinGun as PickupObject)); BulletKinGunID = bulletkinGun.PickupObjectId; } diff --git a/ExpandTheGungeon/ItemAPI/Items/GoldensRevolvers/BlackAndGoldenRevolver.cs b/ExpandTheGungeon/ItemAPI/Items/GoldensRevolvers/BlackAndGoldenRevolver.cs index a608b12..d82b0d4 100644 --- a/ExpandTheGungeon/ItemAPI/Items/GoldensRevolvers/BlackAndGoldenRevolver.cs +++ b/ExpandTheGungeon/ItemAPI/Items/GoldensRevolvers/BlackAndGoldenRevolver.cs @@ -132,7 +132,7 @@ private static void Add(bool isGoldenVersion) var defaultGun = PickupObjectDatabase.GetById(22) as Gun; - gun.AddProjectileModuleFrom(defaultGun, true, false); + gun.AddProjectileModuleFrom(defaultGun, true); // move the gun up with the hand in the second frame of the shooting animation (hand movement was done in GAE with a y offset of 1) //gun.GetComponent().GetClipByName(gun.shootAnimation).frames[1].FrameToDefinition().MakeOffset(new Vector2(0, 1)); @@ -194,7 +194,7 @@ private static void Add(bool isGoldenVersion) var comp = projectile.gameObject.AddComponent(); comp.jamsEnemies = true; - ETGMod.Databases.Items.Add(gun, null, "ANY"); + ETGMod.Databases.Items.Add((gun as PickupObject)); if (isGoldenVersion) { diff --git a/ExpandTheGungeon/ItemAPI/Items/GoldensRevolvers/WestBrosRevolverGenerator.cs b/ExpandTheGungeon/ItemAPI/Items/GoldensRevolvers/WestBrosRevolverGenerator.cs index e93f3eb..03145da 100644 --- a/ExpandTheGungeon/ItemAPI/Items/GoldensRevolvers/WestBrosRevolverGenerator.cs +++ b/ExpandTheGungeon/ItemAPI/Items/GoldensRevolvers/WestBrosRevolverGenerator.cs @@ -61,7 +61,7 @@ public static void Generate(WestBros whichBro) // The gun names are the names from the JSON dump! While most are the same, some guns named completely different things. If you need help finding gun names, ask a modder on the Gungeon discord. // which means its the ETGMod.Databases.Items / PickupObjectDatabase.Instance.InternalGetByName name, aka the pickupobject.name - gun.AddProjectileModuleFrom(baseGun, true, false); + gun.AddProjectileModuleFrom(baseGun, true); gun.gunSwitchGroup = baseGun.gunSwitchGroup; gun.muzzleFlashEffects = baseGun.muzzleFlashEffects; @@ -101,7 +101,7 @@ public static void Generate(WestBros whichBro) var comp = projectile.gameObject.AddComponent(); comp.jamsEnemies = false; - ETGMod.Databases.Items.Add(gun, null, "ANY"); + ETGMod.Databases.Items.Add((gun as PickupObject)); switch (whichBro) { diff --git a/ExpandTheGungeon/ItemAPI/Items/HotShotShotGun.cs b/ExpandTheGungeon/ItemAPI/Items/HotShotShotGun.cs index 1a46564..6fd1edb 100644 --- a/ExpandTheGungeon/ItemAPI/Items/HotShotShotGun.cs +++ b/ExpandTheGungeon/ItemAPI/Items/HotShotShotGun.cs @@ -17,7 +17,7 @@ public class HotShotShotGun { shotgun.SetShortDescription("You aren't supposed to have this..."); shotgun.SetLongDescription("The gun used by Hot Shot Shotgun Kin."); // GunExt.SetupSprite(shotgun, null, "bootleg_shotgun_idle_001", 18); - shotgun.AddProjectileModuleFrom(PickupObjectDatabase.GetById(51).name, true, false); + shotgun.AddProjectileModuleFrom(PickupObjectDatabase.GetById(51).name, true); // shotgun.barrelOffset.localPosition -= new Vector3(0.3f, 0.2f, 0); shotgun.barrelOffset.localPosition = (PickupObjectDatabase.GetById(51) as Gun).barrelOffset.localPosition; if ((PickupObjectDatabase.GetById(51) as Gun).muzzleOffset && shotgun.muzzleOffset) { @@ -30,7 +30,7 @@ public class HotShotShotGun { shotgun.quality = PickupObject.ItemQuality.EXCLUDED; shotgun.gunSwitchGroup = "Shotgun"; shotgun.encounterTrackable.EncounterGuid = "dc52f8e79c7c4a679238643a5bcb49c3"; - ETGMod.Databases.Items.Add(shotgun); + ETGMod.Databases.Items.Add((shotgun as PickupObject)); HotShotShotGunID = shotgun.PickupObjectId; Projectile ShotgunProjectileComponent = EnemyDatabase.GetOrLoadByGuid("128db2f0781141bcb505d8f00f9e4d47").gameObject.GetComponent().Bullets[0].BulletObject.GetComponent(); diff --git a/ExpandTheGungeon/Properties/AssemblyInfo.cs b/ExpandTheGungeon/Properties/AssemblyInfo.cs index 8539229..9cbde9d 100644 --- a/ExpandTheGungeon/Properties/AssemblyInfo.cs +++ b/ExpandTheGungeon/Properties/AssemblyInfo.cs @@ -31,5 +31,5 @@ // You can specify all the values or you can default the Build and Revision Numbers // by using the '*' as shown below: // [assembly: AssemblyVersion("1.0.*")] -[assembly: AssemblyVersion("2.7.1")] -[assembly: AssemblyFileVersion("2.7.1")] +[assembly: AssemblyVersion("2.7.2")] +[assembly: AssemblyFileVersion("2.7.2")] diff --git a/GraphicAssets/EXLogo.xcf b/GraphicAssets/EXLogo.xcf index b0cad82..6ac726e 100644 Binary files a/GraphicAssets/EXLogo.xcf and b/GraphicAssets/EXLogo.xcf differ