comparison Player.cpp @ 1278:ce8ea73e7678

changed Player::_4B6FF9 to Player::IsPlayerHealableByTemple
author Grumpy7
date Sat, 15 Jun 2013 07:52:05 +0200
parents f11651288371
children 86a83e12d795
comparison
equal deleted inserted replaced
1277:1803172dffd9 1278:ce8ea73e7678
410 410
411 411
412 412
413 413
414 //----- (004B6FF9) -------------------------------------------------------- 414 //----- (004B6FF9) --------------------------------------------------------
415 int Player::_4B6FF9() 415 int Player::IsPlayerHealableByTemple()
416 { 416 {
417 Player *v1; // esi@1
418 signed int v2; // eax@1 417 signed int v2; // eax@1
419 char v3; // zf@4
420
421 v1 = this;
422 v2 = (signed int)window_SpeakInHouse->ptr_1C; 418 v2 = (signed int)window_SpeakInHouse->ptr_1C;
423 if ( (v2 == 78 || v2 > 80) && v2 <= 82 ) 419
424 { 420 if ( this->sHealth < GetMaxHealth() || this->sMana < GetMaxMana() )
425 if ( GetMajorConditionIdx() == 18 ) 421 {
426 goto LABEL_6; 422 return 1;
427 v3 = GetMajorConditionIdx() == 17; 423 }
424 else if (GetMajorConditionIdx() == 18)
425 {
426 return 0;
427 }
428 else if (GetMajorConditionIdx() == 17 && (v2 == 78 || v2 > 80) && v2 <= 82)
429 {
430 return 0;
428 } 431 }
429 else 432 else
430 { 433 {
431 v3 = GetMajorConditionIdx() == 18;
432 }
433 if ( !v3 )
434 return 1; 434 return 1;
435 LABEL_6: 435 }
436 if ( v1->sHealth < GetMaxHealth() || v1->sMana < GetMaxMana() )
437 return 1;
438 return 0;
439 } 436 }
440 437
441 438
442 439
443 //----- (00421E75) -------------------------------------------------------- 440 //----- (00421E75) --------------------------------------------------------