Mercurial > might-and-magic-trilogy
comparison Party.cpp @ 124:acf7f12714a7
Party skills
author | Nomad |
---|---|
date | Fri, 16 Nov 2012 13:56:53 +0200 |
parents | 30ec77bbd018 |
children | 4e1e3fe8502f |
comparison
equal
deleted
inserted
replaced
118:a2715ce5cf17 | 124:acf7f12714a7 |
---|---|
370 pCharacter = &pParty->pPlayers[0]; | 370 pCharacter = &pParty->pPlayers[0]; |
371 uNumPlayers = 4; | 371 uNumPlayers = 4; |
372 while ( 1 ) | 372 while ( 1 ) |
373 { | 373 { |
374 if ( !pCharacter->uClass ) | 374 if ( !pCharacter->uClass ) |
375 *(short *)pResMagicBase = v3; | 375 *(short *)pResMagicBase = v3; //player[i].pResMagicBase |
376 uSpellBookPageCount = 0; | 376 uSpellBookPageCount = 0; |
377 v7 = pResMagicBase - 5726;// Skills | 377 v7 = pResMagicBase - 5726;// Skills |
378 while ( !*(short *)v7 ) | 378 while ( !*(short *)v7 ) //player[i].skillFire or |
379 //player[i].pActiveSkills[12] | |
379 { | 380 { |
380 ++uSpellBookPageCount; | 381 ++uSpellBookPageCount; |
381 v7 += 2; | 382 v7 += 2; |
382 if ( uSpellBookPageCount >= 9 ) | 383 if ( uSpellBookPageCount >= 9 ) |
383 goto LABEL_10; | 384 goto LABEL_10; |
400 { | 401 { |
401 case PLAYER_SKILL_STAFF: | 402 case PLAYER_SKILL_STAFF: |
402 v15 = ITEM_STAFF_1; | 403 v15 = ITEM_STAFF_1; |
403 goto wear_item; | 404 goto wear_item; |
404 case PLAYER_SKILL_SWORD: | 405 case PLAYER_SKILL_SWORD: |
405 v15 = 1; | 406 v15 = ITEM_LONGSWORD_1; |
406 goto wear_item; | 407 goto wear_item; |
407 case PLAYER_SKILL_DAGGER: | 408 case PLAYER_SKILL_DAGGER: |
408 v15 = ITEM_DAGGER_1; | 409 v15 = ITEM_DAGGER_1; |
409 goto wear_item; | 410 goto wear_item; |
410 case PLAYER_SKILL_AXE: | 411 case PLAYER_SKILL_AXE: |