comparison Player.cpp @ 1773:8e16cf2c7b1b

Player::SetVariable removing LABEL_112
author Grumpy7
date Tue, 01 Oct 2013 09:47:57 +0200
parents c0b32e8a82c8
children 097d72afd20f
comparison
equal deleted inserted replaced
1772:c0b32e8a82c8 1773:8e16cf2c7b1b
5736 return; 5736 return;
5737 case VAR_BaseMight: 5737 case VAR_BaseMight:
5738 this->uMight = (unsigned __int8)var_value; 5738 this->uMight = (unsigned __int8)var_value;
5739 v28 = 0; 5739 v28 = 0;
5740 v26 = 92; 5740 v26 = 92;
5741 goto LABEL_112; 5741 v19 = pPlayers[currPlayerId + 1];
5742 v31 = 1;
5743 v19->PlaySound((PlayerSpeech)v26, v28);
5744 pGame->pStru6Instance->SetPlayerBuffAnim(0x96u, currPlayerId);
5745 if ( v31 != 1 )
5746 return;
5747 v5 = 0;
5748 v25 = 8 * currPlayerId + 400;
5749 LOBYTE(v25) = PID(OBJECT_Player,currPlayerId - 112);
5750 pAudioPlayer->PlaySound(SOUND_20001, v25, v5, -1, v5, v5, v5, v5);
5751 return;
5742 case VAR_BaseIntellect: 5752 case VAR_BaseIntellect:
5743 this->uIntelligence = (unsigned __int8)var_value; 5753 this->uIntelligence = (unsigned __int8)var_value;
5744 v28 = 0; 5754 v28 = 0;
5745 v26 = 92; 5755 v26 = 92;
5746 goto LABEL_112; 5756 v19 = pPlayers[currPlayerId + 1];
5757 v31 = 1;
5758 v19->PlaySound((PlayerSpeech)v26, v28);
5759 pGame->pStru6Instance->SetPlayerBuffAnim(0x96u, currPlayerId);
5760 if ( v31 != 1 )
5761 return;
5762 v5 = 0;
5763 v25 = 8 * currPlayerId + 400;
5764 LOBYTE(v25) = PID(OBJECT_Player,currPlayerId - 112);
5765 pAudioPlayer->PlaySound(SOUND_20001, v25, v5, -1, v5, v5, v5, v5);
5766 return;
5747 case VAR_BasePersonality: 5767 case VAR_BasePersonality:
5748 this->uWillpower = (unsigned __int8)var_value; 5768 this->uWillpower = (unsigned __int8)var_value;
5749 v28 = 0; 5769 v28 = 0;
5750 v26 = 92; 5770 v26 = 92;
5751 goto LABEL_112; 5771 v19 = pPlayers[currPlayerId + 1];
5772 v31 = 1;
5773 v19->PlaySound((PlayerSpeech)v26, v28);
5774 pGame->pStru6Instance->SetPlayerBuffAnim(0x96u, currPlayerId);
5775 if ( v31 != 1 )
5776 return;
5777 v5 = 0;
5778 v25 = 8 * currPlayerId + 400;
5779 LOBYTE(v25) = PID(OBJECT_Player,currPlayerId - 112);
5780 pAudioPlayer->PlaySound(SOUND_20001, v25, v5, -1, v5, v5, v5, v5);
5781 return;
5752 case VAR_BaseEndurance: 5782 case VAR_BaseEndurance:
5753 this->uEndurance = (unsigned __int8)var_value; 5783 this->uEndurance = (unsigned __int8)var_value;
5754 v28 = 0; 5784 v28 = 0;
5755 v26 = 92; 5785 v26 = 92;
5756 goto LABEL_112; 5786 v19 = pPlayers[currPlayerId + 1];
5787 v31 = 1;
5788 v19->PlaySound((PlayerSpeech)v26, v28);
5789 pGame->pStru6Instance->SetPlayerBuffAnim(0x96u, currPlayerId);
5790 if ( v31 != 1 )
5791 return;
5792 v5 = 0;
5793 v25 = 8 * currPlayerId + 400;
5794 LOBYTE(v25) = PID(OBJECT_Player,currPlayerId - 112);
5795 pAudioPlayer->PlaySound(SOUND_20001, v25, v5, -1, v5, v5, v5, v5);
5796 return;
5757 case VAR_BaseSpeed: 5797 case VAR_BaseSpeed:
5758 this->uSpeed = (unsigned __int8)var_value; 5798 this->uSpeed = (unsigned __int8)var_value;
5759 v28 = 0; 5799 v28 = 0;
5760 v26 = 92; 5800 v26 = 92;
5761 goto LABEL_112; 5801 v19 = pPlayers[currPlayerId + 1];
5802 v31 = 1;
5803 v19->PlaySound((PlayerSpeech)v26, v28);
5804 pGame->pStru6Instance->SetPlayerBuffAnim(0x96u, currPlayerId);
5805 if ( v31 != 1 )
5806 return;
5807 v5 = 0;
5808 v25 = 8 * currPlayerId + 400;
5809 LOBYTE(v25) = PID(OBJECT_Player,currPlayerId - 112);
5810 pAudioPlayer->PlaySound(SOUND_20001, v25, v5, -1, v5, v5, v5, v5);
5811 return;
5762 case VAR_BaseAccuracy: 5812 case VAR_BaseAccuracy:
5763 this->uAccuracy = (unsigned __int8)var_value; 5813 this->uAccuracy = (unsigned __int8)var_value;
5764 v28 = 0; 5814 v28 = 0;
5765 v26 = 92; 5815 v26 = 92;
5766 goto LABEL_112; 5816 v19 = pPlayers[currPlayerId + 1];
5817 v31 = 1;
5818 v19->PlaySound((PlayerSpeech)v26, v28);
5819 pGame->pStru6Instance->SetPlayerBuffAnim(0x96u, currPlayerId);
5820 if ( v31 != 1 )
5821 return;
5822 v5 = 0;
5823 v25 = 8 * currPlayerId + 400;
5824 LOBYTE(v25) = PID(OBJECT_Player,currPlayerId - 112);
5825 pAudioPlayer->PlaySound(SOUND_20001, v25, v5, -1, v5, v5, v5, v5);
5826 return;
5767 case VAR_BaseLuck: 5827 case VAR_BaseLuck:
5768 this->uLuck = (unsigned __int8)var_value; 5828 this->uLuck = (unsigned __int8)var_value;
5769 v28 = 0; 5829 v28 = 0;
5770 v26 = 92; 5830 v26 = 92;
5771 goto LABEL_112; 5831 v19 = pPlayers[currPlayerId + 1];
5832 v31 = 1;
5833 v19->PlaySound((PlayerSpeech)v26, v28);
5834 pGame->pStru6Instance->SetPlayerBuffAnim(0x96u, currPlayerId);
5835 if ( v31 != 1 )
5836 return;
5837 v5 = 0;
5838 v25 = 8 * currPlayerId + 400;
5839 LOBYTE(v25) = PID(OBJECT_Player,currPlayerId - 112);
5840 pAudioPlayer->PlaySound(SOUND_20001, v25, v5, -1, v5, v5, v5, v5);
5841 return;
5772 case VAR_FixedFood: 5842 case VAR_FixedFood:
5773 Party::SetFood(var_value); 5843 Party::SetFood(var_value);
5774 goto LABEL_124; 5844 goto LABEL_124;
5775 case VAR_MightBonus: 5845 case VAR_MightBonus:
5776 goto LABEL_64; 5846 goto LABEL_64;
5829 LABEL_64: 5899 LABEL_64:
5830 this->uMightBonus = (unsigned __int8)var_value; 5900 this->uMightBonus = (unsigned __int8)var_value;
5831 LABEL_111: 5901 LABEL_111:
5832 v28 = 0; 5902 v28 = 0;
5833 v26 = SPEECH_91; 5903 v26 = SPEECH_91;
5834 LABEL_112:
5835 v19 = pPlayers[currPlayerId + 1]; 5904 v19 = pPlayers[currPlayerId + 1];
5836 v31 = 1; 5905 v31 = 1;
5837 v19->PlaySound((PlayerSpeech)v26, v28); 5906 v19->PlaySound((PlayerSpeech)v26, v28);
5838 pGame->pStru6Instance->SetPlayerBuffAnim(0x96u, currPlayerId); 5907 pGame->pStru6Instance->SetPlayerBuffAnim(0x96u, currPlayerId);
5839 if ( v31 != 1 ) 5908 if ( v31 != 1 )
5872 case VAR_ActualAccuracy: 5941 case VAR_ActualAccuracy:
5873 LABEL_72: 5942 LABEL_72:
5874 this->uAccuracyBonus = (unsigned __int8)var_value; 5943 this->uAccuracyBonus = (unsigned __int8)var_value;
5875 v28 = 0; 5944 v28 = 0;
5876 v26 = 92; 5945 v26 = 92;
5877 goto LABEL_112; 5946 v19 = pPlayers[currPlayerId + 1];
5947 v31 = 1;
5948 v19->PlaySound((PlayerSpeech)v26, v28);
5949 pGame->pStru6Instance->SetPlayerBuffAnim(0x96u, currPlayerId);
5950 if ( v31 != 1 )
5951 return;
5952 v5 = 0;
5953 v25 = 8 * currPlayerId + 400;
5954 LOBYTE(v25) = PID(OBJECT_Player,currPlayerId - 112);
5955 pAudioPlayer->PlaySound(SOUND_20001, v25, v5, -1, v5, v5, v5, v5);
5956 return;
5878 case VAR_ActualLuck: 5957 case VAR_ActualLuck:
5879 LABEL_73: 5958 LABEL_73:
5880 this->uLuckBonus = (unsigned __int8)var_value; 5959 this->uLuckBonus = (unsigned __int8)var_value;
5881 v28 = 0; 5960 v28 = 0;
5882 v26 = 92; 5961 v26 = 92;
5883 goto LABEL_112; 5962 v19 = pPlayers[currPlayerId + 1];
5963 v31 = 1;
5964 v19->PlaySound((PlayerSpeech)v26, v28);
5965 pGame->pStru6Instance->SetPlayerBuffAnim(0x96u, currPlayerId);
5966 if ( v31 != 1 )
5967 return;
5968 v5 = 0;
5969 v25 = 8 * currPlayerId + 400;
5970 LOBYTE(v25) = PID(OBJECT_Player,currPlayerId - 112);
5971 pAudioPlayer->PlaySound(SOUND_20001, v25, v5, -1, v5, v5, v5, v5);
5972 return;
5884 case VAR_FireResistance: 5973 case VAR_FireResistance:
5885 this->sResFireBase = (unsigned __int8)var_value; 5974 this->sResFireBase = (unsigned __int8)var_value;
5886 v28 = 0; 5975 v28 = 0;
5887 v26 = 92; 5976 v26 = 92;
5888 goto LABEL_112; 5977 v19 = pPlayers[currPlayerId + 1];
5978 v31 = 1;
5979 v19->PlaySound((PlayerSpeech)v26, v28);
5980 pGame->pStru6Instance->SetPlayerBuffAnim(0x96u, currPlayerId);
5981 if ( v31 != 1 )
5982 return;
5983 v5 = 0;
5984 v25 = 8 * currPlayerId + 400;
5985 LOBYTE(v25) = PID(OBJECT_Player,currPlayerId - 112);
5986 pAudioPlayer->PlaySound(SOUND_20001, v25, v5, -1, v5, v5, v5, v5);
5987 return;
5889 case VAR_AirResistance: 5988 case VAR_AirResistance:
5890 this->sResAirBase = (unsigned __int8)var_value; 5989 this->sResAirBase = (unsigned __int8)var_value;
5891 v28 = 0; 5990 v28 = 0;
5892 v26 = 92; 5991 v26 = 92;
5893 goto LABEL_112; 5992 v19 = pPlayers[currPlayerId + 1];
5993 v31 = 1;
5994 v19->PlaySound((PlayerSpeech)v26, v28);
5995 pGame->pStru6Instance->SetPlayerBuffAnim(0x96u, currPlayerId);
5996 if ( v31 != 1 )
5997 return;
5998 v5 = 0;
5999 v25 = 8 * currPlayerId + 400;
6000 LOBYTE(v25) = PID(OBJECT_Player,currPlayerId - 112);
6001 pAudioPlayer->PlaySound(SOUND_20001, v25, v5, -1, v5, v5, v5, v5);
6002 return;
5894 case VAR_WaterResistance: 6003 case VAR_WaterResistance:
5895 this->sResWaterBase = (unsigned __int8)var_value; 6004 this->sResWaterBase = (unsigned __int8)var_value;
5896 v28 = 0; 6005 v28 = 0;
5897 v26 = 92; 6006 v26 = 92;
5898 goto LABEL_112; 6007 v19 = pPlayers[currPlayerId + 1];
6008 v31 = 1;
6009 v19->PlaySound((PlayerSpeech)v26, v28);
6010 pGame->pStru6Instance->SetPlayerBuffAnim(0x96u, currPlayerId);
6011 if ( v31 != 1 )
6012 return;
6013 v5 = 0;
6014 v25 = 8 * currPlayerId + 400;
6015 LOBYTE(v25) = PID(OBJECT_Player,currPlayerId - 112);
6016 pAudioPlayer->PlaySound(SOUND_20001, v25, v5, -1, v5, v5, v5, v5);
6017 return;
5899 case VAR_EarthResistance: 6018 case VAR_EarthResistance:
5900 this->sResEarthBase = (unsigned __int8)var_value; 6019 this->sResEarthBase = (unsigned __int8)var_value;
5901 v28 = 0; 6020 v28 = 0;
5902 v26 = 92; 6021 v26 = 92;
5903 goto LABEL_112; 6022 v19 = pPlayers[currPlayerId + 1];
6023 v31 = 1;
6024 v19->PlaySound((PlayerSpeech)v26, v28);
6025 pGame->pStru6Instance->SetPlayerBuffAnim(0x96u, currPlayerId);
6026 if ( v31 != 1 )
6027 return;
6028 v5 = 0;
6029 v25 = 8 * currPlayerId + 400;
6030 LOBYTE(v25) = PID(OBJECT_Player,currPlayerId - 112);
6031 pAudioPlayer->PlaySound(SOUND_20001, v25, v5, -1, v5, v5, v5, v5);
6032 return;
5904 case VAR_SpiritResistance: 6033 case VAR_SpiritResistance:
5905 this->sResSpiritBase = (unsigned __int8)var_value; 6034 this->sResSpiritBase = (unsigned __int8)var_value;
5906 v28 = 0; 6035 v28 = 0;
5907 v26 = 92; 6036 v26 = 92;
5908 goto LABEL_112; 6037 v19 = pPlayers[currPlayerId + 1];
6038 v31 = 1;
6039 v19->PlaySound((PlayerSpeech)v26, v28);
6040 pGame->pStru6Instance->SetPlayerBuffAnim(0x96u, currPlayerId);
6041 if ( v31 != 1 )
6042 return;
6043 v5 = 0;
6044 v25 = 8 * currPlayerId + 400;
6045 LOBYTE(v25) = PID(OBJECT_Player,currPlayerId - 112);
6046 pAudioPlayer->PlaySound(SOUND_20001, v25, v5, -1, v5, v5, v5, v5);
6047 return;
5909 case VAR_MindResistance: 6048 case VAR_MindResistance:
5910 this->sResMindBase = (unsigned __int8)var_value; 6049 this->sResMindBase = (unsigned __int8)var_value;
5911 v28 = 0; 6050 v28 = 0;
5912 v26 = 92; 6051 v26 = 92;
5913 goto LABEL_112; 6052 v19 = pPlayers[currPlayerId + 1];
6053 v31 = 1;
6054 v19->PlaySound((PlayerSpeech)v26, v28);
6055 pGame->pStru6Instance->SetPlayerBuffAnim(0x96u, currPlayerId);
6056 if ( v31 != 1 )
6057 return;
6058 v5 = 0;
6059 v25 = 8 * currPlayerId + 400;
6060 LOBYTE(v25) = PID(OBJECT_Player,currPlayerId - 112);
6061 pAudioPlayer->PlaySound(SOUND_20001, v25, v5, -1, v5, v5, v5, v5);
6062 return;
5914 case VAR_BodyResistance: 6063 case VAR_BodyResistance:
5915 this->sResBodyBase = (unsigned __int8)var_value; 6064 this->sResBodyBase = (unsigned __int8)var_value;
5916 v28 = 0; 6065 v28 = 0;
5917 v26 = 92; 6066 v26 = 92;
5918 goto LABEL_112; 6067 v19 = pPlayers[currPlayerId + 1];
6068 v31 = 1;
6069 v19->PlaySound((PlayerSpeech)v26, v28);
6070 pGame->pStru6Instance->SetPlayerBuffAnim(0x96u, currPlayerId);
6071 if ( v31 != 1 )
6072 return;
6073 v5 = 0;
6074 v25 = 8 * currPlayerId + 400;
6075 LOBYTE(v25) = PID(OBJECT_Player,currPlayerId - 112);
6076 pAudioPlayer->PlaySound(SOUND_20001, v25, v5, -1, v5, v5, v5, v5);
6077 return;
5919 case VAR_LightResistance: 6078 case VAR_LightResistance:
5920 this->sResLightBase = (unsigned __int8)var_value; 6079 this->sResLightBase = (unsigned __int8)var_value;
5921 v28 = 0; 6080 v28 = 0;
5922 v26 = 92; 6081 v26 = 92;
5923 goto LABEL_112; 6082 v19 = pPlayers[currPlayerId + 1];
6083 v31 = 1;
6084 v19->PlaySound((PlayerSpeech)v26, v28);
6085 pGame->pStru6Instance->SetPlayerBuffAnim(0x96u, currPlayerId);
6086 if ( v31 != 1 )
6087 return;
6088 v5 = 0;
6089 v25 = 8 * currPlayerId + 400;
6090 LOBYTE(v25) = PID(OBJECT_Player,currPlayerId - 112);
6091 pAudioPlayer->PlaySound(SOUND_20001, v25, v5, -1, v5, v5, v5, v5);
6092 return;
5924 case VAR_DarkResistance: 6093 case VAR_DarkResistance:
5925 this->sResDarkBase = (unsigned __int8)var_value; 6094 this->sResDarkBase = (unsigned __int8)var_value;
5926 v28 = 0; 6095 v28 = 0;
5927 v26 = 92; 6096 v26 = 92;
5928 goto LABEL_112; 6097 v19 = pPlayers[currPlayerId + 1];
6098 v31 = 1;
6099 v19->PlaySound((PlayerSpeech)v26, v28);
6100 pGame->pStru6Instance->SetPlayerBuffAnim(0x96u, currPlayerId);
6101 if ( v31 != 1 )
6102 return;
6103 v5 = 0;
6104 v25 = 8 * currPlayerId + 400;
6105 LOBYTE(v25) = PID(OBJECT_Player,currPlayerId - 112);
6106 pAudioPlayer->PlaySound(SOUND_20001, v25, v5, -1, v5, v5, v5, v5);
6107 return;
5929 case VAR_MagicResistance: 6108 case VAR_MagicResistance:
5930 this->sResMagicBase = (unsigned __int8)var_value; 6109 this->sResMagicBase = (unsigned __int8)var_value;
5931 v28 = 0; 6110 v28 = 0;
5932 v26 = 92; 6111 v26 = 92;
5933 goto LABEL_112; 6112 v19 = pPlayers[currPlayerId + 1];
6113 v31 = 1;
6114 v19->PlaySound((PlayerSpeech)v26, v28);
6115 pGame->pStru6Instance->SetPlayerBuffAnim(0x96u, currPlayerId);
6116 if ( v31 != 1 )
6117 return;
6118 v5 = 0;
6119 v25 = 8 * currPlayerId + 400;
6120 LOBYTE(v25) = PID(OBJECT_Player,currPlayerId - 112);
6121 pAudioPlayer->PlaySound(SOUND_20001, v25, v5, -1, v5, v5, v5, v5);
6122 return;
5934 default: 6123 default:
5935 return; 6124 return;
5936 } 6125 }
5937 return; 6126 return;
5938 } 6127 }