From 72c83cfec0ac9f2c4f90f75d8f5d0d074d071ec2 Mon Sep 17 00:00:00 2001 From: SilverNexus Date: Mon, 17 Apr 2023 14:42:51 -0400 Subject: [PATCH] Actually fix the Dex-only debuff this time. Had to reorder the clauses even when inverting the calc. --- python/items/ring_occidental_mages.py | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) diff --git a/python/items/ring_occidental_mages.py b/python/items/ring_occidental_mages.py index 3e06417a9..c387f3bc7 100644 --- a/python/items/ring_occidental_mages.py +++ b/python/items/ring_occidental_mages.py @@ -32,20 +32,21 @@ if (me.Applied == 0): me.Cursed= 1 me.Con = me.Con + 1 me.Identified=0 - elif (1 - r <= 0.03): - if me.Dex > -2: + # Negative effects + elif (1 - r <= 0.01): + if me.Con > -2: me.Cursed= 1 - me.Dex = me.Dex - 1 + me.Con = me.Con - 1 me.Identified=0 elif (1 - r <= 0.02): if me.Int > -2: me.Cursed= 1 me.Int = me.Int - 1 me.Identified=0 - elif (1 - r <= 0.01): - if me.Con > -2: + elif (1 - r <= 0.03): + if me.Dex > -2: me.Cursed= 1 - me.Con = me.Con - 1 + me.Dex = me.Dex - 1 me.Identified=0 if rest: