viewing paste Unknown #21475 | C++

Posted on the
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17
uint8 CMobEntity::TPUseChance()
{
    uint16 skillList = getMobMod(MOBMOD_SKILL_LIST);
    std::vector<uint16> MobSkills = battleutils::GetMobSkillList(skillList);
 
    if (health.tp < 1000 || MobSkills.size() == 0 || !PBattleAI->GetMobAbilityEnabled())
    {
        return 0;
    }
 
    if (health.tp == 3000 || (GetHPP() <= 25 && health.tp >= 1000))
    {
        return 100;
    }
 
    return getMobMod(MOBMOD_TP_USE_CHANCE);
}
Viewed 653 times, submitted by unknown.