Advertisement
shaggie76

Untitled

May 20th, 2018
132
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.56 KB | None | 0 0
  1. const float SUIT_AMOUNT = numWeapons > 0 ? 0.25f : 1.f; // 25% to suit, 75% spread across weapons
  2.  
  3. const uint32 suitXP = static_cast<uint32>(Round(static_cast<float>(baseXpAward) * SUIT_AMOUNT));
  4. const float weaponXP = static_cast<float>(baseXpAward) * (1.f - SUIT_AMOUNT);
  5.  
  6. const uint32 splitXP = static_cast<uint32>(Round(static_cast<float>(weaponXP) / numWeapons));
  7. GiveObjectCentricXP(splitXP, mItems[sPistolSlot]);
  8. GiveObjectCentricXP(splitXP, mItems[sRifleSlot]);
  9. GiveObjectCentricXP(splitXP, mItems[sMeleeSlot]);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement