Mercurial > mm7
comparison CastSpellInfo.cpp @ 1362:d6cf8ead9242
Condition checking functions slightly renamed, some final changes in Player::SetCondition
author | Grumpy7 |
---|---|
date | Mon, 15 Jul 2013 00:42:50 +0200 |
parents | b3ac17fd12de |
children | b51332ab228f 5a5d0c713d47 |
comparison
equal
deleted
inserted
replaced
1361:b3ac17fd12de | 1362:d6cf8ead9242 |
---|---|
412 ShowStatusBarString(pGlobalTXT_LocalizationStrings[586], 2u); // "Not enough spell points" | 412 ShowStatusBarString(pGlobalTXT_LocalizationStrings[586], 2u); // "Not enough spell points" |
413 pCastSpell->spellnum = 0; | 413 pCastSpell->spellnum = 0; |
414 continue; | 414 continue; |
415 } | 415 } |
416 v730 = pCastSpell->spellnum; | 416 v730 = pCastSpell->spellnum; |
417 if (pPlayer->Cursed() && pCastSpell->spellnum < SPELL_BOW_ARROW && rand() % 100 < 50) | 417 if (pPlayer->IsCursed() && pCastSpell->spellnum < SPELL_BOW_ARROW && rand() % 100 < 50) |
418 { | 418 { |
419 if (!pParty->bTurnBasedModeOn) | 419 if (!pParty->bTurnBasedModeOn) |
420 { | 420 { |
421 //v646 = pPlayer; | 421 //v646 = pPlayer; |
422 pPlayer->SetRecoveryTime((signed __int64)(flt_6BE3A4_debug_recmod1 * 213.3333333333333)); | 422 pPlayer->SetRecoveryTime((signed __int64)(flt_6BE3A4_debug_recmod1 * 213.3333333333333)); |