From ef51b578c387556c2f011eb6beb212ab51facb3b Mon Sep 17 00:00:00 2001 From: Asdow <20314541+Asdow@users.noreply.github.com> Date: Fri, 19 Jun 2026 21:58:27 +0300 Subject: [PATCH] Discard items based on gamestyle --- Laptop/AimMembers.cpp | 26 ++++++++++++++++++++++++++ 1 file changed, 26 insertions(+) diff --git a/Laptop/AimMembers.cpp b/Laptop/AimMembers.cpp index 805ed5c7d..55e02be4b 100644 --- a/Laptop/AimMembers.cpp +++ b/Laptop/AimMembers.cpp @@ -1560,6 +1560,8 @@ BOOLEAN DisplayMercsInventory(UINT8 ubMercID) CHAR16 gzItemName[ 5000 ]; UINT8 ubItemCount=0; UINT8 ubColumnCount=0; + const bool realisticGameStyle = gGameOptions.ubGameStyle != STYLE_SCIFI; + const bool reducedGuns = gGameOptions.fGunNut == false; //if the mercs inventory has already been purchased, dont display the inventory if ( (gMercProfiles[ ubMercID ].ubMiscFlags & PROFILE_MISC_FLAG_ALREADY_USED_ITEMS) && !gGameExternalOptions.fGearKitsAlwaysAvailable ) @@ -1583,6 +1585,18 @@ BOOLEAN DisplayMercsInventory(UINT8 ubMercID) { usItem = gMercProfiles[ubMercID].inv[ i ]; + if (realisticGameStyle && ItemIsOnlyInScifi(usItem)) + { + gMercProfiles[ubMercID].inv[i] = 0; + continue; + } + + if (reducedGuns && ItemIsOnlyInTonsOfGuns(usItem)) + { + gMercProfiles[ubMercID].inv[i] = 0; + continue; + } + //if its a valid item AND we are only displaying less then 8 items if( usItem && ubItemCount < WEAPONBOX_TOTAL_ITEMS ) { @@ -1662,6 +1676,18 @@ BOOLEAN DisplayMercsInventory(UINT8 ubMercID) { usItem = gMercProfiles[ubMercID].inv[ i ]; + if (realisticGameStyle && ItemIsOnlyInScifi(usItem)) + { + gMercProfiles[ubMercID].inv[i] = 0; + continue; + } + + if (reducedGuns && ItemIsOnlyInTonsOfGuns(usItem)) + { + gMercProfiles[ubMercID].inv[i] = 0; + continue; + } + //if its a valid item AND we are only displaying less then 8 items if( usItem && ubItemCount < WEAPONBOX_NUMBER ) {