...
 
Commits (2)
......@@ -105,7 +105,7 @@ public:
Ghoul::Ghoul()
{
HP = 1u;
HP = 75u;
maxHP = 75u;
speed = 1.0f;
block = 0u;
......
......@@ -28,6 +28,7 @@ void PlayerManager::BeginBattle()
actionBox.UnlockSkills(); //in case some were locked before the fight ended
actionBox.PullNewSkills();
actionBox.BlockSkills();
Heal(size_t((float)(maxHP - HP) * 0.1f));
}
void PlayerManager::StartTurn()
......
......@@ -45,7 +45,7 @@ void PlayerStatusBar::SmartSubmit(FrameCommander& fc) const
if (previousCD.playerHP > cd.playerHP)
TD::DrawStringAscending(std::to_wstring((int)cd.playerHP - (int)previousCD.playerHP), healthPosition + healthOffset, Colors::Red, 0.035f);
else if (previousCD.playerHP < cd.playerHP)
TD::DrawStringAscending(L"+" + std::to_wstring(cd.playerHP - previousCD.playerHP), healthPosition + healthOffset, Colors::Red, 0.035f);
TD::DrawStringAscending(L"+" + std::to_wstring(cd.playerHP - previousCD.playerHP), healthPosition + healthOffset, Colors::Green, 0.035f);
previousCD.playerHP = cd.playerHP;
previousCD.playerMaxHP = cd.playerMaxHP;
......@@ -76,7 +76,7 @@ void EnemyStatusBar::SmartSubmit(FrameCommander& fc) const
if (previousCD.enemyHP > cd.enemyHP)
TD::DrawStringAscending(std::to_wstring((int)cd.enemyHP - (int)previousCD.enemyHP), healthPosition + healthOffset, Colors::Red, 0.035f, 1.0f, -0.3f);
else if (previousCD.enemyHP < cd.enemyHP)
TD::DrawStringAscending(L"+" + std::to_wstring(cd.enemyHP - previousCD.enemyHP), healthPosition + healthOffset, Colors::Red, 0.035f, 1.0f, -0.3f);
TD::DrawStringAscending(L"+" + std::to_wstring(cd.enemyHP - previousCD.enemyHP), healthPosition + healthOffset, Colors::Green, 0.035f, 1.0f, -0.3f);
previousCD.enemyHP = cd.enemyHP;
previousCD.enemyMaxHP = cd.enemyMaxHP;
......