Adds Xoshiro256** RNG (#67)

This commit is contained in:
Kamron Batman 2020-01-09 00:42:09 -08:00 committed by GitHub
parent 5e2be2d7b6
commit 853c8d21f7
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
21 changed files with 471 additions and 371 deletions

View file

@ -1420,7 +1420,7 @@ namespace Server.Items
}
}
public virtual double GetAosDamage(Mobile attacker, int bonus, int dice, int sides)
public virtual double GetAosDamage(Mobile attacker, int bonus, uint dice, uint sides)
{
int damage = Utility.Dice(dice, sides, bonus) * 100;
int damageBonus = 0;
@ -1449,7 +1449,7 @@ namespace Server.Items
damage = AOS.Scale(damage, 100 + damageBonus);
return damage / 100;
return damage / 100.0;
}
public virtual CheckSlayerResult CheckSlayers(Mobile attacker, Mobile defender)