Skip to content
Snippets Groups Projects
Commit 7e2946b2 authored by Robin Halseth Sandvik's avatar Robin Halseth Sandvik
Browse files

Fixed backwards less than check.

parent b6dce7d7
No related branches found
No related tags found
1 merge request!24PrefabService & abilities
......@@ -34,11 +34,11 @@ namespace BigSock.Item {
// Check if it triggers.
var roll = RND.NextDouble();
if(roll >= CHANCE) {
if(roll <= CHANCE) {
MonoBehaviour.print($"[ItemFourEyes.Handler()] Hit. ({roll:P1} <= {CHANCE:P1})");
attack.Damage *= 2;
MonoBehaviour.print($"[ItemFourEyes.Handler()] Hit. ({roll:P1} >= {CHANCE:P1})");
} else {
MonoBehaviour.print($"[ItemFourEyes.Handler()] Miss. ({roll:P1} < {CHANCE:P1})");
MonoBehaviour.print($"[ItemFourEyes.Handler()] Miss. ({roll:P1} > {CHANCE:P1})");
}
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment