Translations:Difficulty scaling/385/zh

From ZeldaMods (Breath of the Wild)
Revision as of 12:42, 11 May 2020 by Leoetlino (talk | contribs) (Created page with "<source lang="c++">__int64 SiteBoss::getInitialHP(SiteBoss *this) // 0x71002D01F4 { const int baseHp = Enemy::getInitialHP(this); // 基礎血量(底) const int halfBa...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search
__int64 SiteBoss::getInitialHP(SiteBoss *this) // 0x71002D01F4
{
  const int baseHp = Enemy::getInitialHP(this); // 基礎血量(底)
  const int halfBaseHp = baseHp >> 1; // 除以 2(台)
  const bool dieGanonWind = hasFlag_Die_PGanonWind(0); // 打過風嗎?
  const bool dieGanonWater = hasFlag_Die_PGanonWater(0); // 打過水嗎?
  const bool dieGanonFire = hasFlag_Die_PGanonFire(0); // 打過火嗎?
  const bool dieGanonElectric = hasFlag_Die_PGanonElectric(0); // 打過雷嗎?
  const int flags = this->siteBossFlags & 0xFFFFFFFC; // 玩家在哪裡
  int multiplier;
  if ( flags == 4 ) // 城堡裡
    multiplier = 3;
  else if ( flags == 8 ) // 幻影空間
    multiplier = 4;
  else
    multiplier = dieGanonFire + dieGanonWind + dieGanonWater + dieGanonElectric;
  return baseHp + multiplier * halfBaseHp;
}