Mercurial > mm7
comparison Player.cpp @ 1459:2ca62c9e7b3c
Function names
author | Nomad |
---|---|
date | Wed, 21 Aug 2013 16:06:50 +0200 |
parents | 934074e7fcc1 |
children | 845907a747d3 |
comparison
equal
deleted
inserted
replaced
1458:934074e7fcc1 | 1459:2ca62c9e7b3c |
---|---|
160 }; | 160 }; |
161 | 161 |
162 | 162 |
163 | 163 |
164 //----- (00490913) -------------------------------------------------------- | 164 //----- (00490913) -------------------------------------------------------- |
165 signed int PlayerCreation_GetUnspentAttributePointCount() | 165 int PlayerCreation_GetUnspentAttributePointCount() |
166 { | 166 { |
167 signed int v0; // edi@1 | 167 signed int v0; // edi@1 |
168 int raceId; // ebx@2 | 168 int raceId; // ebx@2 |
169 signed int v4; // eax@17 | 169 signed int v4; // eax@17 |
170 int v5; // edx@18 | 170 int v5; // edx@18 |
6285 ShowStatusBarString(pTmpBuf.data(), 2u); | 6285 ShowStatusBarString(pTmpBuf.data(), 2u); |
6286 pAudioPlayer->PlaySound((SoundID)27, 0, 0, -1, 0, 0, 0, 0); | 6286 pAudioPlayer->PlaySound((SoundID)27, 0, 0, -1, 0, 0, 0, 0); |
6287 return; | 6287 return; |
6288 } | 6288 } |
6289 else | 6289 else |
6290 { | 6290 { |
6291 if ( pParty->pPickedItem.uItemID == 616 ) //Genie Lamp | 6291 if (pParty->pPickedItem.uItemID == 616) //Genie Lamp |
6292 { | 6292 { |
6293 thisa = pParty->uCurrentMonthWeek + 1; | 6293 thisa = pParty->uCurrentMonthWeek + 1; |
6294 if ( pParty->uCurrentMonth >= 7 ) | 6294 if ( pParty->uCurrentMonth >= 7 ) |
6295 v74 = NULL; | 6295 v74 = NULL; |
6296 else | 6296 else |
6297 v74 = aAttributeNames[pParty->uCurrentMonth]; | 6297 v74 = aAttributeNames[pParty->uCurrentMonth]; |
6374 break; | 6374 break; |
6375 | 6375 |
6376 } | 6376 } |
6377 ShowStatusBarString(pTmpBuf.data(), 2u); | 6377 ShowStatusBarString(pTmpBuf.data(), 2u); |
6378 pMouse->RemoveHoldingItem(); | 6378 pMouse->RemoveHoldingItem(); |
6379 pGame->pStru6Instance->SetPlayerBuffAnim(0x97u, player_num - 1); | 6379 pGame->pStru6Instance->SetPlayerBuffAnim(SPELL_QUEST_COMPLETED, player_num - 1); |
6380 v3->PlaySound(SPEECH_93, 0); | 6380 v3->PlaySound(SPEECH_93, 0); |
6381 pAudioPlayer->PlaySound((SoundID)219, 0, 0, -1, 0, 0, 0, 0); | 6381 pAudioPlayer->PlaySound((SoundID)219, 0, 0, -1, 0, 0, 0, 0); |
6382 if ( pParty->uDaysPlayed == 6 || pParty->uDaysPlayed == 20 ) | 6382 if ( pParty->uDaysPlayed == 6 || pParty->uDaysPlayed == 20 ) |
6383 { | 6383 { |
6384 v3->SetCondition(Condition_Eradicated, 0); | 6384 v3->SetCondition(Condition_Eradicated, 0); |
6395 pAudioPlayer->PlaySound((SoundID)215, 0, 0, -1, 0, 0, 0, 0); | 6395 pAudioPlayer->PlaySound((SoundID)215, 0, 0, -1, 0, 0, 0, 0); |
6396 } | 6396 } |
6397 return; | 6397 return; |
6398 } | 6398 } |
6399 else if ( pParty->pPickedItem.uItemID == 630 ) //Red Apple | 6399 else if ( pParty->pPickedItem.uItemID == 630 ) //Red Apple |
6400 { | 6400 { |
6401 Party::GiveFood(1u); | 6401 Party::GiveFood(1u); |
6402 pAudioPlayer->PlaySound((SoundID)(SOUND_PlayerCantCastSpell|0x2), 0, 0, -1, 0, 0, 0, 0); | 6402 pAudioPlayer->PlaySound(SOUND_EatApple, 0, 0, -1, 0, 0, 0, 0); |
6403 | 6403 } |
6404 } | |
6405 else if ( pParty->pPickedItem.uItemID == 632 ) //Lute | 6404 else if ( pParty->pPickedItem.uItemID == 632 ) //Lute |
6406 { | 6405 { |
6407 pAudioPlayer->PlaySound((SoundID)133, 0, 0, -1, 0, 0, 0, 0); | 6406 pAudioPlayer->PlaySound(SOUND_PlayLute, 0, 0, -1, 0, 0, 0, 0); |
6408 return; | 6407 return; |
6409 } | 6408 } |
6410 else if ( pParty->pPickedItem.uItemID == 633 ) //Faerie Pipes | 6409 else if ( pParty->pPickedItem.uItemID == 633 ) //Faerie Pipes |
6411 { | 6410 { |
6412 pAudioPlayer->PlaySound((SoundID)134, 0, 0, -1, 0, 0, 0, 0); | 6411 pAudioPlayer->PlaySound(SOUND_PlayFaeriePipes, 0, 0, -1, 0, 0, 0, 0); |
6413 return; | 6412 return; |
6414 } | 6413 } |
6415 else if ( pParty->pPickedItem.uItemID == 634 ) //Gryphonheart's Trumpet | 6414 else if ( pParty->pPickedItem.uItemID == 634 ) //Gryphonheart's Trumpet |
6416 { | 6415 { |
6417 pAudioPlayer->PlaySound((SoundID)135, 0, 0, -1, 0, 0, 0, 0); | 6416 pAudioPlayer->PlaySound(SOUND_PlayGryphonheartsTrumpet, 0, 0, -1, 0, 0, 0, 0); |
6418 return; | 6417 return; |
6419 } | 6418 } |
6420 else if ( pParty->pPickedItem.uItemID == 646 ) //Horseshoe | 6419 else if ( pParty->pPickedItem.uItemID == 646 ) //Horseshoe |
6421 { | 6420 { |
6422 pGame->pStru6Instance->SetPlayerBuffAnim(0x97u, player_num - 1); | 6421 pGame->pStru6Instance->SetPlayerBuffAnim(SPELL_QUEST_COMPLETED, player_num - 1); |
6423 v5 = PID(OBJECT_Player,player_num + 49); | 6422 v5 = PID(OBJECT_Player, player_num + 49); |
6424 pAudioPlayer->PlaySound(SOUND_20001, v5, 0, -1, 0, 0, 0, 0); | 6423 pAudioPlayer->PlaySound(SOUND_20001, v5, 0, -1, 0, 0, 0, 0); |
6425 v3->AddVariable(VAR_NumSkillPoints, 2); | 6424 v3->AddVariable(VAR_NumSkillPoints, 2); |
6426 } | 6425 } |
6427 else if ( pParty->pPickedItem.uItemID == 650 ) //Temple in a Bottle | 6426 else if ( pParty->pPickedItem.uItemID == 650 ) //Temple in a Bottle |
6428 { | 6427 { |
6429 sub_44C28F_open_nwc_dungeon(); | 6428 TeleportToNWCDungeon(); |
6430 return; | 6429 return; |
6431 } | 6430 } |
6432 else | 6431 else |
6433 { | 6432 { |
6434 | 6433 |
8681 } | 8680 } |
8682 } | 8681 } |
8683 | 8682 |
8684 | 8683 |
8685 //----- (0049387A) -------------------------------------------------------- | 8684 //----- (0049387A) -------------------------------------------------------- |
8686 int CycleCharacter(unsigned int _this) | 8685 int CycleCharacter(bool backwards) |
8687 { | 8686 { |
8688 signed int result; // eax@1 | 8687 signed int result; // eax@1 |
8689 signed int v2; // ecx@2 | 8688 signed int v2; // ecx@2 |
8690 signed int v3; // ecx@8 | 8689 signed int v3; // ecx@8 |
8691 | 8690 |
8692 result = uActiveCharacter; | 8691 result = uActiveCharacter; |
8693 if ( _this ) | 8692 if ( backwards ) |
8694 { | 8693 { |
8695 v2 = 0; | 8694 v2 = 0; |
8696 while ( 1 ) | 8695 while ( 1 ) |
8697 { | 8696 { |
8698 --result; | 8697 --result; |