Mercurial > mm7
comparison mm7_2.cpp @ 910:8cd0b155bebe
Rings
author | Ritor1 |
---|---|
date | Mon, 22 Apr 2013 17:34:36 +0600 |
parents | f3ccfc765502 |
children | a8a3efd631de |
comparison
equal
deleted
inserted
replaced
909:becbb0b11b7d | 910:8cd0b155bebe |
---|---|
9616 v40 = 0; | 9616 v40 = 0; |
9617 pAudioPlayer->PlaySound(SOUND_27, v40, v41, v42, v43, v44, v45, v46); | 9617 pAudioPlayer->PlaySound(SOUND_27, v40, v41, v42, v43, v44, v45, v46); |
9618 return; | 9618 return; |
9619 } | 9619 } |
9620 v52 = 10; | 9620 v52 = 10; |
9621 v7 = (int)&v0->pEquipment.field_28; | 9621 v7 = (int)&v0->pEquipment.uRings; |
9622 while ( 1 ) | 9622 while ( 1 ) |
9623 { | 9623 { |
9624 if ( !*(int *)v7 ) | 9624 if ( !*(int *)v7 ) |
9625 { | 9625 { |
9626 v8 = v0->FindFreeInventorySlot(); | 9626 v8 = v0->FindFreeInventorySlot(); |
9639 if ( (signed int)v52 > 15 ) | 9639 if ( (signed int)v52 > 15 ) |
9640 break; | 9640 break; |
9641 } | 9641 } |
9642 if ( v52 == 16 ) | 9642 if ( v52 == 16 ) |
9643 { | 9643 { |
9644 v52 = v0->pEquipment.field_3C - 1; | 9644 v52 = v0->pEquipment.uRings[6] - 1; |
9645 memcpy(&_this, &pParty->pPickedItem, sizeof(_this)); | 9645 memcpy(&_this, &pParty->pPickedItem, sizeof(_this)); |
9646 v10 = (int)((char *)v0 + 36 * v52); | 9646 v10 = (int)((char *)v0 + 36 * v52); |
9647 *(char *)(v10 + 556) = 0; | 9647 *(char *)(v10 + 556) = 0; |
9648 pParty->pPickedItem.Reset(); | 9648 pParty->pPickedItem.Reset(); |
9649 pParty->SetHoldingItem((ItemGen *)(v10 + 532)); | 9649 pParty->SetHoldingItem((ItemGen *)(v10 + 532)); |
9650 _this.uBodyAnchor = 16; | 9650 _this.uBodyAnchor = 16; |
9651 v11 = v52 + 1; | 9651 v11 = v52 + 1; |
9652 memcpy((void *)(v10 + 532), &_this, 0x24u); | 9652 memcpy((void *)(v10 + 532), &_this, 0x24u); |
9653 v0->pEquipment.field_3C = v11; | 9653 v0->pEquipment.uRings[6] = v11; |
9654 } | 9654 } |
9655 return; | 9655 return; |
9656 case 4u: | 9656 case 4u: |
9657 if ( sub_43EE77_ProbablyIfUnderwaterSuitIsEquipped(uActiveCharacter) ) | 9657 if ( sub_43EE77_ProbablyIfUnderwaterSuitIsEquipped(uActiveCharacter) ) |
9658 { | 9658 { |