Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- List<Action> actions = new List<Action>();
- actions.Add(() => S.Demolish());
- actions.Add(() => S.Basic());
- foreach (var action in actions)
- action.Invoke(S.Critical);
- // S.Critical nedan
- public static double Critical(double spell)
- {
- if (RandomNumberBetween(0.00, 1.00) > 1 - critChance)
- {
- return spell;
- }
- else
- Console.WriteLine("Critical for {0}", spell * (critPower + 1));
- return spell * (critPower + 1);
- }
- public static double Demolish()
- {
- if (Rage >= 50 & Energy >= 5)
- {
- Rage -= 50;
- Energy -= 5;
- Console.WriteLine("Demolish hit for {0} ", (combatPower * 9.8));
- return (combatPower * 9.8);
- }
- if (Rage <= 49 & Energy >= 5)
- {
- Rage += 25;
- Energy += -5;
- Console.WriteLine("Demolish hit for {0} ", (combatPower * 4));
- return (combatPower * 4);
- }
- else
- {
- return Basic();
- }
- }
- public static double Basic()
- {
- Energy += 1;
- Rage += 5;
- Console.WriteLine("Basic hit for {0} ", builder);
- return builder;
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement