SHARE
TWEET

Untitled

a guest Jan 24th, 2020 65 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. float CDungeon::GetUniqueHpPerc(const std::string& key)
  2. {
  3.     TUniqueMobMap::iterator it = m_map_UniqueMob.find(key);
  4.     if (it == m_map_UniqueMob.end())
  5.     {
  6.         sys_err("Unknown Key : %s", key.c_str());
  7.         return false;
  8.     }
  9.     return (100.f*it->second->GetHP())/it->second->GetMaxHP();
  10. }
  11. Değiştir :
  12.  
  13. Kod:
  14. float CDungeon::GetUniqueHpPerc(const std::string& key)
  15. {
  16.     TUniqueMobMap::iterator it = m_map_UniqueMob.find(key);
  17.     if (it == m_map_UniqueMob.end())
  18.     {
  19.         sys_err("Unknown Key : %s", key.c_str());
  20.         return 0.0f;
  21.     }
  22.     return (100.f*it->second->GetHP())/it->second->GetMaxHP();
  23. }
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
Top