public static float PermillionToPercentage(string value) { return(ServerToBattleUtility.PermillionToPercentage(int.Parse(value))); }
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))); }
public static float PermillionToPercentage(int value, bool useClamp) { return((!useClamp) ? ((float)value / 10000f) : ServerToBattleUtility.PermillionToPercentage(value)); }