From 8a90b21d89d24c2235667db20137529829c7b2b8 Mon Sep 17 00:00:00 2001 From: Gene Date: Sat, 7 Jun 2025 19:05:37 -0700 Subject: [PATCH] Allow looting from building types House5, House6, and Town23 --- Assets/Scripts/Internal/DaggerfallLoot.cs | 4 ++-- .../Internal/DaggerfallLootDataTables.cs | 17 ++++++++++++++++- 2 files changed, 18 insertions(+), 3 deletions(-) diff --git a/Assets/Scripts/Internal/DaggerfallLoot.cs b/Assets/Scripts/Internal/DaggerfallLoot.cs index 022b4d6487..3a1374a4ce 100644 --- a/Assets/Scripts/Internal/DaggerfallLoot.cs +++ b/Assets/Scripts/Internal/DaggerfallLoot.cs @@ -300,7 +300,7 @@ public void StockHouseContainer(PlayerGPS.DiscoveredBuilding buildingData) DaggerfallUnityItem item = null; Game.Entity.PlayerEntity playerEntity = GameManager.Instance.PlayerEntity; - if (buildingType < DFLocation.BuildingTypes.House5) + if (buildingType <= DFLocation.BuildingTypes.Town23) { if (modelIndex >= 2) { @@ -374,4 +374,4 @@ public void StockHouseContainer(PlayerGPS.DiscoveredBuilding buildingData) } } } -} \ No newline at end of file +} diff --git a/Assets/Scripts/Internal/DaggerfallLootDataTables.cs b/Assets/Scripts/Internal/DaggerfallLootDataTables.cs index ad5acdf9ec..165085ed12 100644 --- a/Assets/Scripts/Internal/DaggerfallLootDataTables.cs +++ b/Assets/Scripts/Internal/DaggerfallLootDataTables.cs @@ -83,6 +83,9 @@ public static class DaggerfallLootDataTables new byte[] { 0x06, 0x0C }, new byte[] { 0x06, 0x0C }, new byte[] { 0x06, 0x0C }, + new byte[] { 0x06, 0x0C }, + new byte[] { 0x06, 0x0C }, + new byte[] { 0x06, 0x0C } }; public static byte[][] privatePropertyItemsModels2to3 = @@ -107,6 +110,9 @@ public static class DaggerfallLootDataTables new byte[] { 0x03, 0x09, 0x0A, 0x0B }, new byte[] { 0x06, 0x09, 0x0C }, new byte[] { 0x06, 0x09, 0x0C }, + new byte[] { 0x06, 0x09, 0x0C }, + new byte[] { 0x06, 0x09, 0x0C }, + new byte[] { 0x06, 0x09, 0x0C }, new byte[] { 0x06, 0x09, 0x0C } }; @@ -132,6 +138,9 @@ public static class DaggerfallLootDataTables new byte[] { 0x07, 0x09, 0x0D, 0x14 }, new byte[] { 0x09, 0x0A }, new byte[] { 0x09, 0x0A }, + new byte[] { 0x09, 0x0A }, + new byte[] { 0x09, 0x0A }, + new byte[] { 0x09, 0x0A }, new byte[] { 0x09, 0x0A } }; @@ -157,6 +166,9 @@ public static class DaggerfallLootDataTables new byte[] { 0x07, 0x09, 0x0D, 0x19 }, new byte[] { 0x03, 0x09 }, new byte[] { 0x03, 0x09 }, + new byte[] { 0x03, 0x09 }, + new byte[] { 0x03, 0x09 }, + new byte[] { 0x03, 0x09 }, new byte[] { 0x03, 0x09 } }; @@ -182,7 +194,10 @@ public static class DaggerfallLootDataTables new byte[] { 0x09, 0x0D, 0x19 }, new byte[] { 0x06, 0x09, 0x0C }, new byte[] { 0x06, 0x09, 0x0C }, + new byte[] { 0x06, 0x09, 0x0C }, + new byte[] { 0x06, 0x09, 0x0C }, + new byte[] { 0x06, 0x09, 0x0C }, new byte[] { 0x06, 0x09, 0x0C } }; } -} \ No newline at end of file +}