Mercurial > mm7
comparison mm7_4.cpp @ 490:cc4b7981c1bb
Wands
author | Nomad |
---|---|
date | Wed, 27 Feb 2013 23:13:02 +0200 |
parents | c92dd0242fb6 |
children | 59649750a054 |
comparison
equal
deleted
inserted
replaced
489:c92dd0242fb6 | 490:cc4b7981c1bb |
---|---|
12661 double v24; // st7@28 | 12661 double v24; // st7@28 |
12662 unsigned int v25; // ebx@28 | 12662 unsigned int v25; // ebx@28 |
12663 DDM_DLV_Header *v26; // edi@29 | 12663 DDM_DLV_Header *v26; // edi@29 |
12664 int v27; // eax@31 | 12664 int v27; // eax@31 |
12665 int v28; // eax@32 | 12665 int v28; // eax@32 |
12666 unsigned int v29; // ecx@34 | 12666 //unsigned int v29; // ecx@34 |
12667 unsigned int v30; // edx@36 | 12667 unsigned int v30; // edx@36 |
12668 unsigned int v31; // edx@38 | 12668 unsigned int v31; // edx@38 |
12669 unsigned int v32; // edx@40 | 12669 unsigned int v32; // edx@40 |
12670 unsigned int v33; // edx@42 | 12670 unsigned int v33; // edx@42 |
12671 unsigned int v34; // edx@44 | 12671 unsigned int v34; // edx@44 |
12815 } | 12815 } |
12816 } | 12816 } |
12817 } | 12817 } |
12818 return result; | 12818 return result; |
12819 } | 12819 } |
12820 | |
12821 // DONATION | |
12820 //v24 = p2DEvents_minus1__20[13 * (unsigned int)ptr_507BC0->ptr_1C]; | 12822 //v24 = p2DEvents_minus1__20[13 * (unsigned int)ptr_507BC0->ptr_1C]; |
12821 v24 = p2DEvents[(unsigned int)window_SpeakInHouse->ptr_1C - 1].fPriceMultiplier; | 12823 v24 = p2DEvents[(unsigned int)window_SpeakInHouse->ptr_1C - 1].fPriceMultiplier; |
12822 v25 = 0; | 12824 v25 = 0; |
12823 if ( pParty->uNumGold >= (unsigned int)(signed __int64)v24 ) | 12825 if ( pParty->uNumGold >= (unsigned int)(signed __int64)v24 ) |
12824 { | 12826 { |
12833 v28 = v27 - 1; | 12835 v28 = v27 - 1; |
12834 v26->uReputation = v28; | 12836 v26->uReputation = v28; |
12835 if ( v28 < -5 ) | 12837 if ( v28 < -5 ) |
12836 v26->uReputation = -5; | 12838 v26->uReputation = -5; |
12837 } | 12839 } |
12838 v29 = uActiveCharacter; | |
12839 if ( (unsigned __int8)byte_F8B1EF[uActiveCharacter] == pParty->uDaysPlayed % 7 ) | 12840 if ( (unsigned __int8)byte_F8B1EF[uActiveCharacter] == pParty->uDaysPlayed % 7 ) |
12840 { | 12841 { |
12841 if ( v26->uReputation <= -5 ) | 12842 if ( v26->uReputation <= -5 ) |
12842 { | 12843 { |
12843 v30 = pParty->uDaysPlayed % 7 + 1; | 12844 v30 = pParty->uDaysPlayed % 7 + 1; |
12844 LOBYTE(v30) = v30 | 0x80; | 12845 LOBYTE(v30) = v30 | 0x80; |
12845 _42777D_CastSpell_UseWand_ShootArrow(12, uActiveCharacter - 1, v30, 48, 0); | 12846 _42777D_CastSpell_UseWand_ShootArrow(SPELL_AIR_WIZARD_EYE, uActiveCharacter - 1, v30, 48, 0); |
12846 v29 = uActiveCharacter; | |
12847 } | 12847 } |
12848 if ( v26->uReputation <= -10 ) | 12848 if ( v26->uReputation <= -10 ) |
12849 { | 12849 { |
12850 v31 = pParty->uDaysPlayed % 7 + 1; | 12850 v31 = pParty->uDaysPlayed % 7 + 1; |
12851 LOBYTE(v31) = v31 | 0x80; | 12851 LOBYTE(v31) = v31 | 0x80; |
12852 _42777D_CastSpell_UseWand_ShootArrow(50, v29 - 1, v31, 48, 0); | 12852 _42777D_CastSpell_UseWand_ShootArrow(SPELL_SPIRIT_PRESERVATION, uActiveCharacter - 1, v31, 48, 0); |
12853 v29 = uActiveCharacter; | |
12854 v26 = v66; | 12853 v26 = v66; |
12855 } | 12854 } |
12856 if ( v26->uReputation <= -15 ) | 12855 if ( v26->uReputation <= -15 ) |
12857 { | 12856 { |
12858 v32 = pParty->uDaysPlayed % 7 + 1; | 12857 v32 = pParty->uDaysPlayed % 7 + 1; |
12859 LOBYTE(v32) = v32 | 0x80; | 12858 LOBYTE(v32) = v32 | 0x80; |
12860 _42777D_CastSpell_UseWand_ShootArrow(75, v29 - 1, v32, 48, 0); | 12859 _42777D_CastSpell_UseWand_ShootArrow(SPELL_BODY_PROTECTION_FROM_MAGIC, uActiveCharacter - 1, v32, 48, 0); |
12861 v29 = uActiveCharacter; | |
12862 v26 = v66; | 12860 v26 = v66; |
12863 } | 12861 } |
12864 if ( v26->uReputation <= -20 ) | 12862 if ( v26->uReputation <= -20 ) |
12865 { | 12863 { |
12866 v33 = pParty->uDaysPlayed % 7 + 1; | 12864 v33 = pParty->uDaysPlayed % 7 + 1; |
12867 LOBYTE(v33) = v33 | 0x80; | 12865 LOBYTE(v33) = v33 | 0x80; |
12868 _42777D_CastSpell_UseWand_ShootArrow(86, v29 - 1, v33, 48, 0); | 12866 _42777D_CastSpell_UseWand_ShootArrow(SPELL_LIGHT_HOUR_OF_POWER, uActiveCharacter - 1, v33, 48, 0); |
12869 v29 = uActiveCharacter; | |
12870 v26 = v66; | 12867 v26 = v66; |
12871 } | 12868 } |
12872 if ( v26->uReputation <= -25 ) | 12869 if ( v26->uReputation <= -25 ) |
12873 { | 12870 { |
12874 v34 = pParty->uDaysPlayed % 7 + 1; | 12871 v34 = pParty->uDaysPlayed % 7 + 1; |
12875 LOBYTE(v34) = v34 | 0x80; | 12872 LOBYTE(v34) = v34 | 0x80; |
12876 _42777D_CastSpell_UseWand_ShootArrow(85, v29 - 1, v34, 48, 0); | 12873 _42777D_CastSpell_UseWand_ShootArrow(SPELL_LIGHT_DAY_OF_PROTECTION, uActiveCharacter - 1, v34, 48, 0); |
12877 v29 = uActiveCharacter; | |
12878 } | 12874 } |
12879 } | 12875 } |
12880 ++byte_F8B1EF[v29]; | 12876 ++byte_F8B1EF[uActiveCharacter]; |
12881 v1->PlaySound(SPEECH_83, 0); | 12877 v1->PlaySound(SPEECH_83, 0); |
12882 ShowStatusBarString(pGlobalTXT_LocalizationStrings[527], 2u); | 12878 ShowStatusBarString(pGlobalTXT_LocalizationStrings[527], 2u); // "Thank You!" |
12883 goto LABEL_46; | 12879 goto LABEL_46; |
12884 } | 12880 } |
12885 goto LABEL_55; | 12881 goto LABEL_55; |
12886 } | 12882 } |
12887 result = v1->_4B6FF9(); | 12883 result = v1->_4B6FF9(); |