From 7e2946b239eade921d3c10e210250452648aad51 Mon Sep 17 00:00:00 2001 From: Ny Bruker <robinhs@stud.ntnu.no> Date: Sat, 1 Oct 2022 15:58:25 +0200 Subject: [PATCH] Fixed backwards less than check. --- MrBigsock/Assets/Code/Item/Items/ItemFourEyes.cs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/MrBigsock/Assets/Code/Item/Items/ItemFourEyes.cs b/MrBigsock/Assets/Code/Item/Items/ItemFourEyes.cs index f3401629..d70670cf 100644 --- a/MrBigsock/Assets/Code/Item/Items/ItemFourEyes.cs +++ b/MrBigsock/Assets/Code/Item/Items/ItemFourEyes.cs @@ -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})"); } } -- GitLab