MCPcopy Create free account
hub / github.com/TurningWheel/Barony / updateGameplayStatisticsInMainLoop

Function updateGameplayStatisticsInMainLoop

src/scores.cpp:2868–3243  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2866}
2867
2868void updateGameplayStatisticsInMainLoop()
2869{
2870 // local player only here.
2871 if ( gameStatistics[STATISTICS_BOMB_SQUAD] >= 5 )
2872 {
2873 steamAchievement("BARONY_ACH_BOMB_SQUAD");
2874 }
2875 if ( gameStatistics[STATISTICS_SITTING_DUCK] >= 10 )
2876 {
2877 steamAchievement("BARONY_ACH_SITTING_DUCK");
2878 }
2879 if ( gameStatistics[STATISTICS_YES_WE_CAN] >= 10 )
2880 {
2881 steamAchievement("BARONY_ACH_YES_WE_CAN");
2882 }
2883 if ( gameStatistics[STATISTICS_FIRE_MAYBE_DIFFERENT] >= 2 )
2884 {
2885 steamAchievement("BARONY_ACH_FIRE_MAYBE_DIFFERENT");
2886 }
2887 if ( gameStatistics[STATISTICS_HEAL_BOT] >= 1000 )
2888 {
2889 steamAchievement("BARONY_ACH_HEAL_BOT");
2890 }
2891 if ( gameStatistics[STATISTICS_HOT_TUB_TIME_MACHINE] >= 50 )
2892 {
2893 steamAchievement("BARONY_ACH_HOT_TUB");
2894 }
2895 if ( gameStatistics[STATISTICS_FUNCTIONAL] >= 10 )
2896 {
2897 steamAchievement("BARONY_ACH_FUNCTIONAL");
2898 }
2899 if ( gameStatistics[STATISTICS_OHAI_MARK] >= 20 )
2900 {
2901 steamAchievement("BARONY_ACH_OHAI_MARK");
2902 }
2903 if ( gameStatistics[STATISTICS_PIMPING_AINT_EASY] >= 6 )
2904 {
2905 steamAchievement("BARONY_ACH_PIMPIN");
2906 }
2907 if ( gameStatistics[STATISTICS_TRIBE_SUBSCRIBE] >= 4 )
2908 {
2909 steamAchievement("BARONY_ACH_TRIBE_SUBSCRIBE");
2910 }
2911 if ( gameStatistics[STATISTICS_SKID_ROW] >= 50 )
2912 {
2913 steamAchievement("BARONY_ACH_SKID_ROW");
2914 }
2915 if ( gameStatistics[STATISTICS_WRECKING_CREW] >= 20 )
2916 {
2917 steamAchievement("BARONY_ACH_WRECKING_CREW");
2918 }
2919 if ( gameStatistics[STATISTICS_EAT_ME] >= 50 )
2920 {
2921 steamAchievement("BARONY_ACH_EAT_ME");
2922 }
2923 if ( gameStatistics[STATISTICS_BONK] >= 20 )
2924 {
2925 steamAchievement("BARONY_ACH_BONK");

Callers 1

gameLogicFunction · 0.85

Calls 14

steamAchievementFunction · 0.85
itemTypeIsQuiverFunction · 0.85
isRangedWeaponFunction · 0.85
itemIsEquippedFunction · 0.85
isItemBaseIngredientMethod · 0.80
getProficiencyMethod · 0.80
steamStatisticUpdateFunction · 0.70
itemCategoryFunction · 0.70

Tested by

no test coverage detected