Make Nolok boss a little harder. To make it a real fight though the AI will need to stop falling into lava

git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@12725 178a84e3-b1eb-0310-8ba1-8eac791a3b58
This commit is contained in:
auria
2013-05-05 19:59:59 +00:00
parent ab2e864f1f
commit ad153aa14e

View File

@@ -279,6 +279,12 @@ void SkiddingAI::update(float dt)
else
m_kart->setPowerup(PowerupManager::POWERUP_BOWLING, 1);
}
// also give him some free nitro
if (m_kart->getPosition() > 1)
m_kart->setEnergy(m_kart->getEnergy() + 7);
else
m_kart->setEnergy(m_kart->getEnergy() + 4);
}
}