Mercurial > mm7
comparison stru6.cpp @ 982:08fd1436ef35
enums & lod
author | Nomad |
---|---|
date | Sat, 11 May 2013 13:19:55 +0200 |
parents | 34ed2d5e7cfb |
children | c45d51b3f4f4 |
comparison
equal
deleted
inserted
replaced
981:a6ef7125f6e4 | 982:08fd1436ef35 |
---|---|
1284 { | 1284 { |
1285 //stru6 *v3; // edi@1 | 1285 //stru6 *v3; // edi@1 |
1286 PlayerBuffAnim *v4; // esi@1 | 1286 PlayerBuffAnim *v4; // esi@1 |
1287 const char *v6; // [sp-4h] [bp-10h]@2 | 1287 const char *v6; // [sp-4h] [bp-10h]@2 |
1288 | 1288 |
1289 //v3 = this; | |
1290 //v4 = &array_0[uPlayerID]; | |
1291 //v4[32].uSpellIconID_ = 0; pPlayerBuffs[]::field_4 | |
1292 //v4[32].uSpellID = uSpellID; pPlayerBuffs[]::bRender | |
1293 | |
1294 v4 = &pPlayerBuffs[uPlayerID]; | 1289 v4 = &pPlayerBuffs[uPlayerID]; |
1295 v4->uSpellAnimTimeElapsed = 0; | 1290 v4->uSpellAnimTimeElapsed = 0; |
1296 v4->bRender = uSpellID != 0; | 1291 v4->bRender = uSpellID != 0; |
1297 | 1292 |
1298 switch (uSpellID) | 1293 switch (uSpellID) |
1299 { | 1294 { |
1300 case SPELL_DISEASE: | 1295 case SPELL_DISEASE: |
1301 //__debugbreak(); // spell id == 153 wtf , curse probably ? happening when attacked by harpies /disease(Ritor1)/ | |
1302 v6 = "zapp"; | 1296 v6 = "zapp"; |
1303 break; | 1297 break; |
1304 | 1298 |
1305 case BECOME_MAGIC_GUILD_MEMBER: | 1299 case BECOME_MAGIC_GUILD_MEMBER: |
1306 case SPELL_AIR_FEATHER_FALL: | 1300 case SPELL_AIR_FEATHER_FALL: |
1365 case SPELL_BODY_REGENERATION: v6 = "spell71"; break; | 1359 case SPELL_BODY_REGENERATION: v6 = "spell71"; break; |
1366 case SPELL_BODY_HAMMERHANDS: v6 = "spell73"; break; | 1360 case SPELL_BODY_HAMMERHANDS: v6 = "spell73"; break; |
1367 case SPELL_BODY_PROTECTION_FROM_MAGIC: v6 = "spell75"; break; | 1361 case SPELL_BODY_PROTECTION_FROM_MAGIC: v6 = "spell75"; break; |
1368 | 1362 |
1369 default: | 1363 default: |
1370 //v4[32].uSpellID = 0; | |
1371 v4->bRender = false; | 1364 v4->bRender = false; |
1372 return; | 1365 return; |
1373 } | 1366 } |
1374 | 1367 |
1375 //v4[33].uSpellIconID = pIconsFrameTable->FindIcon(v6); | |
1376 v4->uSpellIconID = pIconsFrameTable->FindIcon(v6); | 1368 v4->uSpellIconID = pIconsFrameTable->FindIcon(v6); |
1377 //if ( v4[32].uSpellID ) | |
1378 if (v4->bRender) | 1369 if (v4->bRender) |
1379 //v3->array_0[(signed __int16)uPlayerID + 33].uSpellAnimLength = 8 * pIconsFrameTable->pIcons[v4[33].uSpellIconID].uAnimLength; | |
1380 v4->uSpellAnimTime = 8 * pIconsFrameTable->pIcons[v4->uSpellIconID].uAnimLength; | 1370 v4->uSpellAnimTime = 8 * pIconsFrameTable->pIcons[v4->uSpellIconID].uAnimLength; |
1381 } | 1371 } |
1382 | 1372 |
1383 //----- (004A8BDF) -------------------------------------------------------- | 1373 //----- (004A8BDF) -------------------------------------------------------- |
1384 void stru6::FadeScreen__like_Turn_Undead_and_mb_Armageddon(unsigned int uDiffuseColor, unsigned int uFadeTime) | 1374 void stru6::FadeScreen__like_Turn_Undead_and_mb_Armageddon(unsigned int uDiffuseColor, unsigned int uFadeTime) |