Mercurial > mm7
comparison Items.cpp @ 484:4bd56919f075
avard quest guild bits
author | Gloval |
---|---|
date | Wed, 27 Feb 2013 02:25:31 +0400 |
parents | 77430756f06a |
children | 214d9d47cf1f |
comparison
equal
deleted
inserted
replaced
481:5b6e2021c6fe | 484:4bd56919f075 |
---|---|
1693 else | 1693 else |
1694 { | 1694 { |
1695 v16 = 0; | 1695 v16 = 0; |
1696 v56 = 0; | 1696 v56 = 0; |
1697 do | 1697 do |
1698 v56 += pParty->field_7BA[v16++]; | 1698 v56 += pParty->pIsArtifactFound[v16++]; |
1699 while ( v16 < 29 ); | 1699 while ( v16 < 29 ); |
1700 v17 = rand() % 29; | 1700 v17 = rand() % 29; |
1701 | 1701 |
1702 if ( v6 == 5 && rand() % 100 < 5 && !pParty->field_7BA[v17] && v56 < 13 ) | 1702 if ( v6 == 5 && rand() % 100 < 5 && !pParty->pIsArtifactFound[v17] && v56 < 13 ) |
1703 { | 1703 { |
1704 pParty->field_7BA[v17] = 1; | 1704 pParty->pIsArtifactFound[v17] = 1; |
1705 out_item->uAttributes = 0; | 1705 out_item->uAttributes = 0; |
1706 out_item->uItemID = v17 + 500; | 1706 out_item->uItemID = v17 + 500; |
1707 SetSpecialBonus(out_item); | 1707 SetSpecialBonus(out_item); |
1708 return; | 1708 return; |
1709 } | 1709 } |
1730 out_item->uEncantmentType = out_item->uEncantmentType * treasure_level; | 1730 out_item->uEncantmentType = out_item->uEncantmentType * treasure_level; |
1731 } | 1731 } |
1732 out_item->uEncantmentType = out_item->uEncantmentType * treasure_level; | 1732 out_item->uEncantmentType = out_item->uEncantmentType * treasure_level; |
1733 } | 1733 } |
1734 if ( v4->uItemID == ITEM_SPELLBOOK_LIGHT_DIVINE_INTERVENTION | 1734 if ( v4->uItemID == ITEM_SPELLBOOK_LIGHT_DIVINE_INTERVENTION |
1735 && !(unsigned __int16)_449B57_test_bit(pParty->_award_bits, 239) ) | 1735 && !(unsigned __int16)_449B57_test_bit(pParty->_quest_bits, 239) ) |
1736 v4->uItemID = ITEM_SPELLBOOK_LIGHT_SUN_BURST; | 1736 v4->uItemID = ITEM_SPELLBOOK_LIGHT_SUN_BURST; |
1737 if ( pItemsTable->pItems[v4->uItemID + 1].uItemID_Rep_St ) | 1737 if ( pItemsTable->pItems[v4->uItemID + 1].uItemID_Rep_St ) |
1738 v4->uAttributes = 0; | 1738 v4->uAttributes = 0; |
1739 else | 1739 else |
1740 v4->uAttributes = 1; | 1740 v4->uAttributes = 1; |
1919 | 1919 |
1920 memset(artifacts_list, 0,sizeof(artifacts_list)); | 1920 memset(artifacts_list, 0,sizeof(artifacts_list)); |
1921 uNumArtifactsNotFound = 0; | 1921 uNumArtifactsNotFound = 0; |
1922 | 1922 |
1923 for (int i=500;i<529;++i) | 1923 for (int i=500;i<529;++i) |
1924 if ( !pParty->field_3C.pIsArtifactFound[i] ) | 1924 if ( !pParty->pIsArtifactFound[i-500] ) |
1925 artifacts_list[uNumArtifactsNotFound++] = i; | 1925 artifacts_list[uNumArtifactsNotFound++] = i; |
1926 | 1926 |
1927 Reset(); | 1927 Reset(); |
1928 if ( uNumArtifactsNotFound ) | 1928 if ( uNumArtifactsNotFound ) |
1929 { | 1929 { |