Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- private static ushort ChiValue(Game.Enums.ChiAttribute attribute)
- {
- int max = Game.Enums.ChiMaxValues(attribute),
- min = Game.Enums.ChiMinValues(attribute);
- float baseDiff = max - min;
- baseDiff /= 10f;
- //if (Kernel.Rate(1, 3)) return (ushort)Kernel.Random.Next((int)(max - baseDiff), max);
- //if (Kernel.Rate(10, 85)) return (ushort)Kernel.Random.Next((int)(max - 2 * baseDiff), (int)(max - baseDiff));
- if (Kernel.Rate(1, 100)) return (ushort)Kernel.Random.Next((int)(max - 0 * baseDiff), (int)(max - baseDiff));//epic-line
- //else if (Kernel.Rate(40, 75)) return (ushort)Kernel.Random.Next((int)(max - 3 * baseDiff), (int)(max - 2 * baseDiff));
- //else if (Kernel.Rate(3, 10)) return (ushort)Kernel.Random.Next((int)(max - 0 * baseDiff), (int)(max - 0 * baseDiff));//epic-line
- else
- return (ushort)Kernel.Random.Next(max + 1);
- }
Advertisement
Add Comment
Please, Sign In to add comment