comparison Player.cpp @ 1774:097d72afd20f

Player::SetVariable removing LABEL_111
author Grumpy7
date Tue, 01 Oct 2013 09:49:16 +0200
parents 8e16cf2c7b1b
children 0abc0db1ea56
comparison
equal deleted inserted replaced
1773:8e16cf2c7b1b 1774:097d72afd20f
5896 ReloadPlayerPortraits(currPlayerId, v4->uCurrentFace); 5896 ReloadPlayerPortraits(currPlayerId, v4->uCurrentFace);
5897 goto LABEL_124; 5897 goto LABEL_124;
5898 } 5898 }
5899 LABEL_64: 5899 LABEL_64:
5900 this->uMightBonus = (unsigned __int8)var_value; 5900 this->uMightBonus = (unsigned __int8)var_value;
5901 LABEL_111:
5902 v28 = 0; 5901 v28 = 0;
5903 v26 = SPEECH_91; 5902 v26 = SPEECH_91;
5904 v19 = pPlayers[currPlayerId + 1]; 5903 v19 = pPlayers[currPlayerId + 1];
5905 v31 = 1; 5904 v31 = 1;
5906 v19->PlaySound((PlayerSpeech)v26, v28); 5905 v19->PlaySound((PlayerSpeech)v26, v28);
5916 if ( var_type <= VAR_FireResistanceBonus ) 5915 if ( var_type <= VAR_FireResistanceBonus )
5917 { 5916 {
5918 if ( var_type == VAR_FireResistanceBonus ) 5917 if ( var_type == VAR_FireResistanceBonus )
5919 { 5918 {
5920 this->sResFireBonus = (unsigned __int8)var_value; 5919 this->sResFireBonus = (unsigned __int8)var_value;
5921 goto LABEL_111; 5920 v28 = 0;
5921 v26 = SPEECH_91;
5922 v19 = pPlayers[currPlayerId + 1];
5923 v31 = 1;
5924 v19->PlaySound((PlayerSpeech)v26, v28);
5925 pGame->pStru6Instance->SetPlayerBuffAnim(0x96u, currPlayerId);
5926 if ( v31 != 1 )
5927 return;
5928 v5 = 0;
5929 v25 = 8 * currPlayerId + 400;
5930 LOBYTE(v25) = PID(OBJECT_Player,currPlayerId - 112);
5931 pAudioPlayer->PlaySound(SOUND_20001, v25, v5, -1, v5, v5, v5, v5);
5932 return;
5922 } 5933 }
5923 switch ( var_type ) 5934 switch ( var_type )
5924 { 5935 {
5925 case VAR_ActualIntellect: 5936 case VAR_ActualIntellect:
5926 LABEL_68: 5937 LABEL_68:
5927 this->uIntelligenceBonus = (unsigned __int8)var_value; 5938 this->uIntelligenceBonus = (unsigned __int8)var_value;
5928 goto LABEL_111; 5939 v28 = 0;
5940 v26 = SPEECH_91;
5941 v19 = pPlayers[currPlayerId + 1];
5942 v31 = 1;
5943 v19->PlaySound((PlayerSpeech)v26, v28);
5944 pGame->pStru6Instance->SetPlayerBuffAnim(0x96u, currPlayerId);
5945 if ( v31 != 1 )
5946 return;
5947 v5 = 0;
5948 v25 = 8 * currPlayerId + 400;
5949 LOBYTE(v25) = PID(OBJECT_Player,currPlayerId - 112);
5950 pAudioPlayer->PlaySound(SOUND_20001, v25, v5, -1, v5, v5, v5, v5);
5951 return;
5929 case VAR_ActualPersonality: 5952 case VAR_ActualPersonality:
5930 LABEL_69: 5953 LABEL_69:
5931 this->uWillpowerBonus = (unsigned __int8)var_value; 5954 this->uWillpowerBonus = (unsigned __int8)var_value;
5932 goto LABEL_111; 5955 v28 = 0;
5956 v26 = SPEECH_91;
5957 v19 = pPlayers[currPlayerId + 1];
5958 v31 = 1;
5959 v19->PlaySound((PlayerSpeech)v26, v28);
5960 pGame->pStru6Instance->SetPlayerBuffAnim(0x96u, currPlayerId);
5961 if ( v31 != 1 )
5962 return;
5963 v5 = 0;
5964 v25 = 8 * currPlayerId + 400;
5965 LOBYTE(v25) = PID(OBJECT_Player,currPlayerId - 112);
5966 pAudioPlayer->PlaySound(SOUND_20001, v25, v5, -1, v5, v5, v5, v5);
5967 return;
5933 case VAR_ActualEndurance: 5968 case VAR_ActualEndurance:
5934 LABEL_70: 5969 LABEL_70:
5935 this->uEnduranceBonus = (unsigned __int8)var_value; 5970 this->uEnduranceBonus = (unsigned __int8)var_value;
5936 goto LABEL_111; 5971 v28 = 0;
5972 v26 = SPEECH_91;
5973 v19 = pPlayers[currPlayerId + 1];
5974 v31 = 1;
5975 v19->PlaySound((PlayerSpeech)v26, v28);
5976 pGame->pStru6Instance->SetPlayerBuffAnim(0x96u, currPlayerId);
5977 if ( v31 != 1 )
5978 return;
5979 v5 = 0;
5980 v25 = 8 * currPlayerId + 400;
5981 LOBYTE(v25) = PID(OBJECT_Player,currPlayerId - 112);
5982 pAudioPlayer->PlaySound(SOUND_20001, v25, v5, -1, v5, v5, v5, v5);
5983 return;
5937 case VAR_ActualSpeed: 5984 case VAR_ActualSpeed:
5938 LABEL_71: 5985 LABEL_71:
5939 this->uSpeedBonus = (unsigned __int8)var_value; 5986 this->uSpeedBonus = (unsigned __int8)var_value;
5940 goto LABEL_111; 5987 v28 = 0;
5988 v26 = SPEECH_91;
5989 v19 = pPlayers[currPlayerId + 1];
5990 v31 = 1;
5991 v19->PlaySound((PlayerSpeech)v26, v28);
5992 pGame->pStru6Instance->SetPlayerBuffAnim(0x96u, currPlayerId);
5993 if ( v31 != 1 )
5994 return;
5995 v5 = 0;
5996 v25 = 8 * currPlayerId + 400;
5997 LOBYTE(v25) = PID(OBJECT_Player,currPlayerId - 112);
5998 pAudioPlayer->PlaySound(SOUND_20001, v25, v5, -1, v5, v5, v5, v5);
5999 return;
5941 case VAR_ActualAccuracy: 6000 case VAR_ActualAccuracy:
5942 LABEL_72: 6001 LABEL_72:
5943 this->uAccuracyBonus = (unsigned __int8)var_value; 6002 this->uAccuracyBonus = (unsigned __int8)var_value;
5944 v28 = 0; 6003 v28 = 0;
5945 v26 = 92; 6004 v26 = 92;
6214 if ( var_type != 62 ) 6273 if ( var_type != 62 )
6215 return; 6274 return;
6216 v4->sResMindBonus = (unsigned __int8)var_value; 6275 v4->sResMindBonus = (unsigned __int8)var_value;
6217 break; 6276 break;
6218 } 6277 }
6219 goto LABEL_111; 6278 v28 = 0;
6279 v26 = SPEECH_91;
6280 v19 = pPlayers[currPlayerId + 1];
6281 v31 = 1;
6282 v19->PlaySound((PlayerSpeech)v26, v28);
6283 pGame->pStru6Instance->SetPlayerBuffAnim(0x96u, currPlayerId);
6284 if ( v31 != 1 )
6285 return;
6286 v5 = 0;
6287 v25 = 8 * currPlayerId + 400;
6288 LOBYTE(v25) = PID(OBJECT_Player,currPlayerId - 112);
6289 pAudioPlayer->PlaySound(SOUND_20001, v25, v5, -1, v5, v5, v5, v5);
6290 return;
6220 } 6291 }
6221 if ( var_type == VAR_LightResistanceBonus ) 6292 if ( var_type == VAR_LightResistanceBonus )
6222 { 6293 {
6223 v4->sResLightBonus = (unsigned __int8)var_value; 6294 v4->sResLightBonus = (unsigned __int8)var_value;
6224 goto LABEL_111; 6295 v28 = 0;
6296 v26 = SPEECH_91;
6297 v19 = pPlayers[currPlayerId + 1];
6298 v31 = 1;
6299 v19->PlaySound((PlayerSpeech)v26, v28);
6300 pGame->pStru6Instance->SetPlayerBuffAnim(0x96u, currPlayerId);
6301 if ( v31 != 1 )
6302 return;
6303 v5 = 0;
6304 v25 = 8 * currPlayerId + 400;
6305 LOBYTE(v25) = PID(OBJECT_Player,currPlayerId - 112);
6306 pAudioPlayer->PlaySound(SOUND_20001, v25, v5, -1, v5, v5, v5, v5);
6307 return;
6225 } 6308 }
6226 if ( var_type == VAR_DarkResistanceBonus ) 6309 if ( var_type == VAR_DarkResistanceBonus )
6227 { 6310 {
6228 v4->sResDarkBonus = (unsigned __int8)var_value; 6311 v4->sResDarkBonus = (unsigned __int8)var_value;
6229 goto LABEL_111; 6312 v28 = 0;
6313 v26 = SPEECH_91;
6314 v19 = pPlayers[currPlayerId + 1];
6315 v31 = 1;
6316 v19->PlaySound((PlayerSpeech)v26, v28);
6317 pGame->pStru6Instance->SetPlayerBuffAnim(0x96u, currPlayerId);
6318 if ( v31 != 1 )
6319 return;
6320 v5 = 0;
6321 v25 = 8 * currPlayerId + 400;
6322 LOBYTE(v25) = PID(OBJECT_Player,currPlayerId - 112);
6323 pAudioPlayer->PlaySound(SOUND_20001, v25, v5, -1, v5, v5, v5, v5);
6324 return;
6230 } 6325 }
6231 if ( var_type == VAR_MagicResistanceBonus ) 6326 if ( var_type == VAR_MagicResistanceBonus )
6232 { 6327 {
6233 v4->sResMagicBonus = (unsigned __int8)var_value; 6328 v4->sResMagicBonus = (unsigned __int8)var_value;
6234 goto LABEL_111; 6329 v28 = 0;
6330 v26 = SPEECH_91;
6331 v19 = pPlayers[currPlayerId + 1];
6332 v31 = 1;
6333 v19->PlaySound((PlayerSpeech)v26, v28);
6334 pGame->pStru6Instance->SetPlayerBuffAnim(0x96u, currPlayerId);
6335 if ( v31 != 1 )
6336 return;
6337 v5 = 0;
6338 v25 = 8 * currPlayerId + 400;
6339 LOBYTE(v25) = PID(OBJECT_Player,currPlayerId - 112);
6340 pAudioPlayer->PlaySound(SOUND_20001, v25, v5, -1, v5, v5, v5, v5);
6341 return;
6235 } 6342 }
6236 if ( var_type > VAR_MagicResistanceBonus && var_type <= VAR_DiplomacySkill ) 6343 if ( var_type > VAR_MagicResistanceBonus && var_type <= VAR_DiplomacySkill )
6237 if ( v30 != 1 ) 6344 if ( v30 != 1 )
6238 { 6345 {
6239 if ( v31 != 1 ) 6346 if ( v31 != 1 )