Run Code
|
API
|
Code Wall
|
Misc
|
Feedback
|
Login
|
Theme
|
Privacy
|
Patreon
Battle System Algorythm
//Title of this code //Rextester.Program.Main is the entry point for your code. Don't change it. //Compiler version 4.0.30319.17929 for Microsoft (R) .NET Framework 4.5 using System; using System.Collections.Generic; using System.Linq; using System.Text.RegularExpressions; namespace Rextester { public class Program { public static void Main(string[] args) { int damageCalculator = 16; //Hero's attack int ATK = 20; //monster's defense int DEF = 15; // int armour = 20; float armourReduction = armour/ 3; armourReduction = 1 - armourReduction / 100; double baseDMG = 2; double statsPow = ((Math.Pow(ATK, 3))); // Console.WriteLine(statsPow); baseDMG = ((statsPow / 32 + 32) + damageCalculator / 16); //baseDMG = (((Math.Pow(127, double 3) / 32) + 32) x DmCon / 16); Console.WriteLine("Base Damage: " + baseDMG); double calculatorDEF = ((Math.Pow((DEF - 280.4), 2) / 110) + 16); Console.WriteLine("Defense Contant" + calculatorDEF); Console.WriteLine(armourReduction); double finalDMG = ((baseDMG * calculatorDEF / 730) * armourReduction); Console.WriteLine("Final Damage: " + finalDMG); //Base Damage = 64043 //I need to add armour element % e.g. 3 armour points = 1 % reduction } } }
run
|
edit
|
history
|
help
0
Random Integers
min tree
sss
C# program to Determine if Two Words Are Anagrams of Each Other
Fff
Intuit // C# // listing_4.4 (StreamReader // input.txt)
Ccc
Selection Sort
Ransom Note
basics of generics