From f1c6cddf924b2404ed02c8758faded7b270bf8bb Mon Sep 17 00:00:00 2001 From: Tomas Doran Date: Sat, 6 Feb 2021 20:31:05 +0000 Subject: [PATCH] Casting chance does affect game --- TODO | 5 ----- spells/main.go | 2 +- 2 files changed, 1 insertion(+), 6 deletions(-) diff --git a/TODO b/TODO index cc7f0c8..88b6ca0 100644 --- a/TODO +++ b/TODO @@ -9,10 +9,5 @@ Bug / missing feature list: Gameplay: Board inspect character - Make game law rating affect spell casting chances AI Players Gooey blob / Fire character and player interactions - -Bugs: - -Vengence etc - do they need LOS diff --git a/spells/main.go b/spells/main.go index 114a3e1..33641c5 100644 --- a/spells/main.go +++ b/spells/main.go @@ -66,7 +66,7 @@ func (s ASpell) GetCastingChance(gameLawRating int) int { if absLaw < 0 { absLaw = -absLaw } - cc := s.CastingChance + (absLaw/4)*10 // Every 4 points makes it 10% easier + cc := s.CastingChance + (absLaw/2)*10 // Every 2 points makes it 10% easier if cc > 100 { return 100 }