def __updateSteamReconnoiter(dossierDescr, results, vehDossiers): if dossierDescr['steamAchievements']['steamReconnoiterMedal']: return for vehTypeCompDescr, (_, _) in vehDossiers.iteritems(): if 'lightTank' not in getTags(vehTypeCompDescr): return break dossierDescr['steamAchievements']['steamReconnoiter'] += results['damageAssistedRadio']
def __updateSteamPotentialStun(dossierDescr, results, vehDossiers): if dossierDescr['steamAchievements']['steamPotentialStunMedal']: return for vehTypeCompDescr, (_, _) in vehDossiers.iteritems(): if 'SPG' not in getTags(vehTypeCompDescr): return break dossierDescr['steamAchievements']['steamPotentialStun'] += results['stunDuration']
def __updateSteamATSPG(dossierDescr, results, vehDossiers): if dossierDescr['steamAchievements']['steamATSPGMedal']: return for vehTypeCompDescr, (_, _) in vehDossiers.iteritems(): if 'AT-SPG' not in getTags(vehTypeCompDescr): return break dossierDescr['steamAchievements']['steamATSPG'] += results['damageDealt']
def __updateSteamHardCharacter(dossierDescr, results, vehDossiers): if dossierDescr['steamAchievements']['steamHardCharacterMedal']: return for vehTypeCompDescr, (_, _) in vehDossiers.iteritems(): if 'heavyTank' not in getTags(vehTypeCompDescr): return break dossierDescr['steamAchievements']['steamHardCharacter'] += results['damageBlockedByArmor']
def __updateSteamMediumPerformance(dossierDescr, results, vehDossiers): if dossierDescr['steamAchievements']['steamMediumPerformanceMedal']: return for vehTypeCompDescr, (_, _) in vehDossiers.iteritems(): if 'mediumTank' not in getTags(vehTypeCompDescr): return break if results['damageDealt'] >= RECORD_CONFIGS['steamMediumPerformanceMedal']: dossierDescr['steamAchievements']['steamMediumPerformanceMedal'] = True
def __updateSteamDestroyer(dossierDescr, results, vehDossiers): if dossierDescr['steamAchievements']['steamDestroyerMedal']: return for vehTypeCompDescr, (_, _) in vehDossiers.iteritems(): if 'AT-SPG' not in getTags(vehTypeCompDescr): return break if results['damageDealt'] >= RECORD_CONFIGS['steamDestroyerMedal'] and len(results['killList']) >= 2: dossierDescr['steamAchievements']['steamDestroyerMedal'] = True
def __updateSteamSmallSupport(dossierDescr, results, vehDossiers): if dossierDescr['steamAchievements']['steamSmallSupportMedal']: return for vehTypeCompDescr, (_, _) in vehDossiers.iteritems(): if 'lightTank' not in getTags(vehTypeCompDescr): return break value = results['damageAssistedRadio'] + results['damageAssistedTrack'] + results['damageDealt'] if value >= RECORD_CONFIGS['steamSmallSupportMedal']: dossierDescr['steamAchievements']['steamSmallSupportMedal'] = True
def __updateSteamDieHard(dossierDescr, results, vehDossiers): if dossierDescr['steamAchievements']['steamDieHardMedal']: return for vehTypeCompDescr, (_, _) in vehDossiers.iteritems(): if 'heavyTank' not in getTags(vehTypeCompDescr): return break value = results['damageDealt'] + results['damageBlockedByArmor'] + results['damageReceived'] if value >= RECORD_CONFIGS['steamDieHardMedal']: dossierDescr['steamAchievements']['steamDieHardMedal'] = True