UmarKhaled_

Untitled

Jan 21st, 2020
108
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C# 0.98 KB | None | 0 0
  1.         private static ushort ChiValue(Game.Enums.ChiAttribute attribute)
  2.         {
  3.             int max = Game.Enums.ChiMaxValues(attribute),
  4.                 min = Game.Enums.ChiMinValues(attribute);
  5.             float baseDiff = max - min;
  6.             baseDiff /= 10f;
  7.             //if (Kernel.Rate(1, 3)) return (ushort)Kernel.Random.Next((int)(max - baseDiff), max);
  8.             //if (Kernel.Rate(10, 85)) return (ushort)Kernel.Random.Next((int)(max - 2 * baseDiff), (int)(max - baseDiff));
  9.             if (Kernel.Rate(1, 100)) return (ushort)Kernel.Random.Next((int)(max - 0 * baseDiff), (int)(max - baseDiff));//epic-line
  10.             //else if (Kernel.Rate(40, 75)) return (ushort)Kernel.Random.Next((int)(max - 3 * baseDiff), (int)(max - 2 * baseDiff));
  11.             //else if (Kernel.Rate(3, 10)) return (ushort)Kernel.Random.Next((int)(max - 0 * baseDiff), (int)(max - 0 * baseDiff));//epic-line
  12.             else
  13.                 return (ushort)Kernel.Random.Next(max + 1);
  14.         }
Advertisement
Add Comment
Please, Sign In to add comment