Advertisement
Guest User

Untitled

a guest
Jan 25th, 2020
77
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.27 KB | None | 0 0
  1. int32_t Pokemon::getMaxHealth() const
  2. {
  3. int32_t level = getLevel();
  4. int32_t hp = 0;
  5.  
  6. if (belongsToPlayer()) {
  7. hp = (mType->info.baseStats.hp * level);
  8. }else
  9. hp = (mType->info.baseStats.hp * mType->info.wildLevel);
  10.  
  11. return hp;
  12. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement