Home
last modified time | relevance | path

Searched refs:ubShotsLeft (Results 1 – 9 of 9) sorted by relevance

/dports/games/jaggedalliance2/ja2-stracciatella-0.18.0/src/game/Tactical/
H A DLoadSaveObjectType.cc32 EXTR_U8A(d, o->ubShotsLeft, lengthof(o->ubShotsLeft)) in ExtractObject()
132 INJ_U8A(d, o->ubShotsLeft, lengthof(o->ubShotsLeft)) in InjectObject()
H A DArms_Dealer_Init.cc1272 static void AddAmmoToArmsDealerInventory(ArmsDealerID, UINT16 usItemIndex, UINT8 ubShotsLeft);
1326 AddAmmoToArmsDealerInventory( ubArmsDealer, pObject->usItem, pObject->ubShotsLeft[ ubCnt ] ); in AddObjectToArmsDealerInventory()
1364 …ToArmsDealerInventory(ArmsDealerID const ubArmsDealer, UINT16 const usItemIndex, UINT8 ubShotsLeft) in AddAmmoToArmsDealerInventory() argument
1379 if ( ubShotsLeft == 0) in AddAmmoToArmsDealerInventory()
1387 if ( ubShotsLeft >= ubMagCapacity ) in AddAmmoToArmsDealerInventory()
1391 …AddItemToArmsDealerInventory( ubArmsDealer, usItemIndex, &SpclItemInfo, ( UINT8 ) ( ubShotsLeft / … in AddAmmoToArmsDealerInventory()
1392 ubShotsLeft %= ubMagCapacity; in AddAmmoToArmsDealerInventory()
1396 if ( ubShotsLeft > 0 ) in AddAmmoToArmsDealerInventory()
1400 *pubStrayAmmo += ubShotsLeft; in AddAmmoToArmsDealerInventory()
H A DItems.cc1180 OldAmmo.ubShotsLeft[0] = pGun->ubGunShotsLeft; in ReloadGun()
1227 …ubBulletsToMove = __min( pAmmo->ubShotsLeft[0], GCM->getWeapon(pGun->usItem)->ubMagSize - pGun->ub… in ReloadGun()
1231 ubBulletsToMove = pAmmo->ubShotsLeft[0]; in ReloadGun()
1240 …ubBulletsToMove = __min( pAmmo->ubShotsLeft[0], GCM->getWeapon(pGun->usItem)->ubMagSize - pGun->ub… in ReloadGun()
1244 ubBulletsToMove = __min( pAmmo->ubShotsLeft[0], GCM->getWeapon(pGun->usItem)->ubMagSize ); in ReloadGun()
1252 …ubBulletsToMove = __min( pAmmo->ubShotsLeft[0], GCM->getWeapon(pGun->usItem)->ubMagSize - pGun->ub… in ReloadGun()
1256 ubBulletsToMove = __min( pAmmo->ubShotsLeft[0], GCM->getWeapon(pGun->usItem)->ubMagSize ); in ReloadGun()
1326 pAmmo->ubShotsLeft[0] -= ubBulletsToMove; in ReloadGun()
1327 if (pAmmo->ubShotsLeft[0] == 0) in ReloadGun()
1374 pAmmo->ubShotsLeft[0] = pWeapon->ubGunShotsLeft; in EmptyWeaponMagazine()
[all …]
H A DInterface_Utils.cc225 … value = 100 * o.ubShotsLeft[ubStatus] / (item->asAmmo()->capacity ? item->asAmmo()->capacity : 1); in DrawItemUIBarEx()
H A DItem_Types.h81 UINT8 ubShotsLeft[MAX_OBJECTS_PER_SLOT]; member
H A DMap_Information.cc397 … pItem->ubShotsLeft[ cnt ] = Magazine[ GCM->getItem(pItem->usItem)->getClassIndex() ].ubMagSize; in UpdateOldVersionMap()
H A DInterface_Items.cc2593 pStr = ST::format("{}/{}", obj.ubShotsLeft[0], item->asAmmo()->capacity); in RenderItemDescriptionBox()
/dports/games/jaggedalliance2/ja2-stracciatella-0.18.0/src/game/Editor/
H A DEditorItems.cc790 obj.ubShotsLeft[0] = Random(2) ? mag_size : Random(mag_size); in AddSelectedItemToWorld()
/dports/games/jaggedalliance2/ja2-stracciatella-0.18.0/src/game/Laptop/
H A DPersonnel.cc1173 for (INT32 i = 0; i < o_count; ++i) total_ammo += o.ubShotsLeft[i]; in DisplayCharInventory()