Mercurial > mm7
comparison mm7_4.cpp @ 321:15decc249a94
quick fix to spells commit (wasnt compiling)
author | Nomad |
---|---|
date | Wed, 20 Feb 2013 03:35:22 +0200 |
parents | 922a96fdcc86 |
children | d720a13e2273 |
comparison
equal
deleted
inserted
replaced
320:0b2af9c5f70f | 321:15decc249a94 |
---|---|
5870 int pControlParam; // esi@12 | 5870 int pControlParam; // esi@12 |
5871 signed int v8; // edi@30 | 5871 signed int v8; // edi@30 |
5872 int v9; // edx@31 | 5872 int v9; // edx@31 |
5873 char *v10; // ebx@37 | 5873 char *v10; // ebx@37 |
5874 Player *v11; // esi@38 | 5874 Player *v11; // esi@38 |
5875 signed int uSpellBookPageCount; // ecx@40 | 5875 //signed int uSpellBookPageCount; // ecx@40 |
5876 int v13; // eax@40 | 5876 int v13; // eax@40 |
5877 //signed int uSkillIdx; // eax@45 | 5877 //signed int uSkillIdx; // eax@45 |
5878 int v15; // eax@70 | 5878 int v15; // eax@70 |
5879 signed int v16; // ecx@70 | 5879 signed int v16; // ecx@70 |
5880 //unsigned int v18; // [sp-4h] [bp-84h]@48 | 5880 //unsigned int v18; // [sp-4h] [bp-84h]@48 |
6008 //v11 = pPlayer; | 6008 //v11 = pPlayer; |
6009 if (player->classType == PLAYER_CLASS_KNIGHT) | 6009 if (player->classType == PLAYER_CLASS_KNIGHT) |
6010 player->sResMagicBase = 10; | 6010 player->sResMagicBase = 10; |
6011 //*((short *)v10 + 400) = 0; | 6011 //*((short *)v10 + 400) = 0; |
6012 player->pPlayerBuffs[22].uExpireTime = 0; | 6012 player->pPlayerBuffs[22].uExpireTime = 0; |
6013 uSpellBookPageCount = 0; | |
6014 for (uint j = 0; j < 9; j++) | 6013 for (uint j = 0; j < 9; j++) |
6015 { | 6014 { |
6016 if (player->pActiveSkills[PLAYER_SKILL_FIRE + j]) | 6015 if (player->pActiveSkills[PLAYER_SKILL_FIRE + j]) |
6017 ++uSpellBookPageCount; | 6016 { |
6018 } | 6017 player->lastOpenedSpellbookPage = j; |
6019 player->lastOpenedSpellbookPage = uSpellBookPageCount; | 6018 break; |
6019 } | |
6020 } | |
6020 pItemsTable->GenerateItem(2, 40, &item); | 6021 pItemsTable->GenerateItem(2, 40, &item); |
6021 player->AddItem2(-1, &item); | 6022 player->AddItem2(-1, &item); |
6022 //uSkillIdx = 0; | 6023 //uSkillIdx = 0; |
6023 //v24.y = 0; | 6024 //v24.y = 0; |
6024 | 6025 |