Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- const float SUIT_AMOUNT = numWeapons > 0 ? 0.25f : 1.f; // 25% to suit, 75% spread across weapons
- const uint32 suitXP = static_cast<uint32>(Round(static_cast<float>(baseXpAward) * SUIT_AMOUNT));
- const float weaponXP = static_cast<float>(baseXpAward) * (1.f - SUIT_AMOUNT);
- const uint32 splitXP = static_cast<uint32>(Round(static_cast<float>(weaponXP) / numWeapons));
- GiveObjectCentricXP(splitXP, mItems[sPistolSlot]);
- GiveObjectCentricXP(splitXP, mItems[sRifleSlot]);
- GiveObjectCentricXP(splitXP, mItems[sMeleeSlot]);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement