Skip to content

Commit

Permalink
Minor Adjustments
Browse files Browse the repository at this point in the history
  • Loading branch information
benjilebon committed Oct 10, 2019
1 parent 1964d52 commit 805ebbe
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions RPG/Monster.cs
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ public Monster(Player player) : base(0, 0, 0)

private int setHp()
{
double tempHp = player.totalHp * RandomExtensions.NextDouble(0.40, 0.60) * player.level / 1.5;
double tempHp = player.totalHp * RandomExtensions.NextDouble(0.40, 0.60) * player.level;

return Convert.ToInt32(tempHp);
}
Expand All @@ -51,7 +51,7 @@ private int setXpReward()

private int setArmor()
{
double tempArmor = 10 + (player.level * RandomExtensions.NextDouble(3.00, 5.00));
double tempArmor = 10 + (player.level * RandomExtensions.NextDouble(4.00, 6.00));

return Convert.ToInt32(tempArmor);
}
Expand Down

0 comments on commit 805ebbe

Please sign in to comment.