Mercurial > mm7
comparison SaveLoad.cpp @ 2184:e0863f5beee0
SPELL_WATER_RECHARGE_ITEM
author | Ritor1 |
---|---|
date | Fri, 24 Jan 2014 18:01:51 +0600 |
parents | 17b3e40daedc |
children | c2eeeb991a87 |
comparison
equal
deleted
inserted
replaced
2183:172cfb4ee150 | 2184:e0863f5beee0 |
---|---|
156 break; | 156 break; |
157 } | 157 } |
158 | 158 |
159 for (uint i = 0; i < 4; ++i) | 159 for (uint i = 0; i < 4; ++i) |
160 { | 160 { |
161 uchar uQuickspell = pParty->pPlayers[i].uQuickSpell; | 161 if ( pParty->pPlayers[i].uQuickSpell ) |
162 if (uQuickspell) | 162 AA1058_PartyQuickSpellSound[i].AddPartySpellSound(pParty->pPlayers[i].uQuickSpell, i + 1); |
163 stru_AA1058[i]._494836(uQuickspell, i + 1); | |
164 | 163 |
165 for (uint j = 0; j < 2; ++j) | 164 for (uint j = 0; j < 2; ++j) |
166 { | 165 { |
167 uint uEquipIdx = pParty->pPlayers[i].pEquipment.pIndices[j]; | 166 uint uEquipIdx = pParty->pPlayers[i].pEquipment.pIndices[j]; |
168 if (uEquipIdx) | 167 if (uEquipIdx) |
169 { | 168 { |
170 int uItemID = pParty->pPlayers[i].pInventoryItemList[uEquipIdx - 1].uItemID; | 169 int pItemID = pParty->pPlayers[i].pInventoryItemList[uEquipIdx - 1].uItemID; |
171 if (pItemsTable->pItems[uItemID].uEquipType == EQUIP_WAND)//жезл | 170 if (pItemsTable->pItems[pItemID].uEquipType == EQUIP_WAND && pItemID )//жезл |
172 { | 171 { |
173 __debugbreak(); // looks like offset in player's inventory and wand_lut much like case in 0042ECB5 | 172 __debugbreak(); // looks like offset in player's inventory and wand_lut much like case in 0042ECB5 |
174 v31 = *((int *)&pSpellDatas[66].uNormalLevelRecovery + uItemID); | 173 stru_A750F8[i].AddPartySpellSound(wand_spell_ids[pItemID - ITEM_WAND_FIRE], i + 9); |
175 stru_A750F8[i]._494836(v31, i + 9); | |
176 } | 174 } |
177 } | 175 } |
178 } | 176 } |
179 } | 177 } |
180 | 178 |