public float getMeleeCB(float attk, float str, float def, float hp, float pray) { return (Convert.ToSingle((double)Convert.ToDecimal("0.3f") * (1.3 * (attk + str) + def + hp + (.5 * pray)))); //example of use: string test = "Melee Combat Level: "+getMeleeCB(60,53,58,53,47).ToString(); }
Convert.ToDecimal("0.3f")
0.3f
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)