RedChimera / IWD2EE

This is the most recent semiOverhaul mod, containing most of the rebalancing components and a few other tweaks.
139 stars 7 forks source link

Compat checks for EoU > v15 #98

Closed CamDawg closed 7 months ago

CamDawg commented 7 months ago

v16 of Ease of Use makes a lot of these compatibility checks no longer needed or needed but with minor adjustments. For most of them EoU simply won't install if the conflicting component from IWD2EE is present, making the checks redundant. I've left them intact in case someone really, really wants to play with a version of EoU that's old enough to legally vote.

For the ones where EoU is now decidedly less destructive I've added additional version guards against EoU, c.f. lines 99. EoU's damage reduction from armor no longer destructively overwrites 140 files, so for now it skips this section if it detects v16 or newer of EoU. The additional druid spells (EoU 19) no longer nukes listspll, so I've added a version check at line 588 as well. There may still be some compat work with v16 and these components but I'm not familiar enough with IWD2EE yet to definitively make that call.

I corrected a few component numbers from checks that look incorrect (lines 41, 66, 99); please check my work.

Since I saw that EoU's stacking is handled but not stacking from Tweaks Anthology, I added the appropriate checks starting around line 1580. Ugly, but that's what I get for turning one component into sixteen. Alternatively, we could simply test the current max stack and only change it if it's lower than the new stacking max and get rid of the umpteen Tweaks M_I_I checks--it's what I do for Tweaks after all.