Calculation TEst
an anonymous user
·
using System; namespace com.DreamTree { class Program { public static float AttDmg = 100; public static float MgcDmg = 50; public static float Armor = 30; public static float CritRate = 0.5f; public static float CritFac = 1.5f; public static float HpAmount = 500; public static float MpAmount = 300; public static void Main(string[] args) { Random rnd = new Ramdom(); Console.WriteLine(DmgReduction(1000)); } //Damage Reduction For Physic Dmg public static float DmgReduction(float DmgReceive){ float a = DmgReceive / (1+Armor/100); return a; } public static float DmgDeal(float DmgOut){ float a = } } }
Output
(Run the program to view its output)
Comments