예제 #1
0
 public static float PermillionToPercentage(string value)
 {
     return(ServerToBattleUtility.PermillionToPercentage(int.Parse(value)));
 }
예제 #2
0
 public static Tolerance ResistanceToTolerance(GameWebAPI.RespDataMA_GetMonsterResistanceM.MonsterResistanceM data)
 {
     return(new Tolerance(ServerToBattleUtility.IntToStrength(data.none), ServerToBattleUtility.IntToStrength(data.fire), ServerToBattleUtility.IntToStrength(data.water), ServerToBattleUtility.IntToStrength(data.thunder), ServerToBattleUtility.IntToStrength(data.nature), ServerToBattleUtility.IntToStrength(data.light), ServerToBattleUtility.IntToStrength(data.dark), ServerToBattleUtility.IntToStrength(data.poison), ServerToBattleUtility.IntToStrength(data.confusion), ServerToBattleUtility.IntToStrength(data.paralysis), ServerToBattleUtility.IntToStrength(data.sleep), ServerToBattleUtility.IntToStrength(data.stun), ServerToBattleUtility.IntToStrength(data.skillLock), ServerToBattleUtility.IntToStrength(data.death)));
 }
예제 #3
0
 public static float PermillionToPercentage(int value, bool useClamp)
 {
     return((!useClamp) ? ((float)value / 10000f) : ServerToBattleUtility.PermillionToPercentage(value));
 }