Skip to content

Commit

Permalink
Add Mixed PnP-BG wisdom-based bonus spells.
Browse files Browse the repository at this point in the history
  • Loading branch information
GraionDilach committed May 26, 2022
1 parent 72d520c commit ec72b24
Show file tree
Hide file tree
Showing 4 changed files with 50 additions and 1 deletion.
24 changes: 24 additions & 0 deletions readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,30 @@ This means that a high-level Cleric-Mage can end up with up to 8 additional scro

__COMPATIBILITY:__ These components should be installed after all mods which might buff spellcaster AI (SCS). These components functionally overlap with SCS's "Wider spell scrolls" but they can be installed together. These components __need__ to be installed after [Abel's Nonrandom Treasures](https://forums.beamdog.com/discussion/83483/mod-nonrandom-treasures) mod on IWDEE.

## Component 100 Mixed PnP-BG wisdom-based bonus spells table

As discussed during the development of the EE Fixpack, Bioware made an error when they implemented a feature with the way the bonus spells are set up (which was only fixed in PST), resulting with more bonus mid-level spells and less low-level bonus spells than intended. This component tries to blend both options so that players will end up having the bonuses of both tables consistently excluding one caveat: both PnP and BG provides the first level 4 bonus spells on Wisdom 18 which breaks a pattern and is thereby delayed.

The full table:

| Wisdom\Bonus spells | 1 | 2 | 3 | 4 | 5 | 6 | 7 |
|---------------------|---|---|---|---|---|---|---|
| 13 | 1 | 0 | 0 | 0 | 0 | 0 | 0 |
| 14 | 2 | 0 | 0 | 0 | 0 | 0 | 0 |
| 15 | 2 | 1 | 0 | 0 | 0 | 0 | 0 |
| 16 | 2 | 2 | 0 | 0 | 0 | 0 | 0 |
| 17 | 2 | 2 | 1 | 0 | 0 | 0 | 0 |
| 18 | 3 | 2 | 2 | 0 | 0 | 0 | 0 |
| 19 | 3 | 3 | 2 | 1 | 0 | 0 | 0 |
| 20 | 3 | 3 | 2 | 2 | 0 | 0 | 0 |
| 21 | 4 | 3 | 3 | 2 | 1 | 0 | 0 |
| 22 | 4 | 4 | 3 | 3 | 2 | 0 | 0 |
| 23 | 4 | 4 | 4 | 3 | 2 | 1 | 0 |
| 24 | 4 | 4 | 4 | 4 | 3 | 2 | 0 |
| 25 | 4 | 4 | 4 | 4 | 4 | 3 | 1 |

__COMPATIBILITY:__ This component overlaps with a proposed Tweaks Anthology component and partially overlaps with Scales of Balance's Stat-based Bonus Spells. Compatibility against the latter is untested.

## Acknowledgements

Thanks for argent77, subtledoctor and CamDawg for code snippets.
Expand Down
16 changes: 16 additions & 0 deletions zgtweaks/2da/mxsplwis.2da
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
2DA V1.0
0
1 2 3 4 5 6 7
13 1 0 0 0 0 0 0
14 2 0 0 0 0 0 0
15 2 1 0 0 0 0 0
16 2 2 0 0 0 0 0
17 2 2 1 0 0 0 0
18 3 2 2 0 0 0 0
19 3 3 2 1 0 0 0
20 3 3 2 2 0 0 0
21 4 3 3 2 1 0 0
22 4 4 3 3 2 0 0
23 4 4 4 3 2 1 0
24 4 4 4 4 3 2 0
25 4 4 4 4 4 3 1
2 changes: 2 additions & 0 deletions zgtweaks/english/setup.tra
Original file line number Diff line number Diff line change
Expand Up @@ -8,4 +8,6 @@
@6 = ~Add random arcane spell scrolls to divine casters up until their highest memorized level~
@7 = ~Add random arcane spell scrolls to divine casters up until their highest memorized level - 4~

@100 = ~Mixed PnP-BG wisdom-based bonus spells table~

@1000 = ~This component can only be installed on the Enhanced Edition version of the games.~
9 changes: 8 additions & 1 deletion zgtweaks/zgtweaks.tp2
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
BACKUP ~weidu_external/backup/zgtweaks~ // location to store files for uninstall purposes
AUTHOR ~Graion Dilach~
VERSION ~1.1~
VERSION ~1.2~

LANGUAGE ~English~ ~english~ ~zgtweaks/english/setup.tra~

Expand Down Expand Up @@ -256,3 +256,10 @@ REQUIRE_PREDICATE (GAME_IS ~bgee bg2ee iwdee eet~) @1000
END
SET max_spell_level = 0
BUT_ONLY


BEGIN @100
LABEL ZG-BOBW-WISDOM-TABLE
DESIGNATED 100

COPY ~%MOD_FOLDER%/2da/mxsplwis.2da~ ~override~

0 comments on commit ec72b24

Please sign in to comment.