コード例 #1
0
 public static float GetEffectiveStrength(this Kingdom kingdom, Kingdom kingdomToToggle)
 {
     return(kingdom.TotalStrength / Math.Max(1, kingdom.GetNumberOfWars() - (kingdom.IsAtWarWith(kingdomToToggle) ? 1 : -1)));
 }
コード例 #2
0
 public static float GetEffectiveStrength(this Kingdom kingdom)
 {
     return(kingdom.TotalStrength / Math.Max(1, kingdom.GetNumberOfWars()));
 }