vek17 / wrathmods-multiplearchetypes Goto Github PK
View Code? Open in Web Editor NEWSmall mod that enables multiple compatable archetypes to be applied at the same time.
License: MIT License
Small mod that enables multiple compatable archetypes to be applied at the same time.
License: MIT License
Archetypes that replace class prerequisites (for example Drunken Master) can't be picked at all while this mod is active.
How to replicate:
Replacement for the patch that seems to solve the problem:
[HarmonyPatch(typeof(CharGenClassPhaseVM), nameof(CharGenClassPhaseVM.OnSelectorArchetypeChanged), [typeof(BlueprintArchetype)])]
static class CharGenClassPhaseVM_OnSelectorArchetypeChanged_Patch
{
static bool Prefix(CharGenClassPhaseVM __instance, BlueprintArchetype archetype)
{
if (!Settings.MultiArchetype) { return true; }
__instance.UpdateTooltipTemplate(false);
if (__instance.LevelUpController.State.SelectedClass == null && archetype != null)
{
__instance.LevelUpController.SelectClass(archetype.GetParentClass(), ignoreAlignment: true);
}
if (__instance.LevelUpController.State.SelectedClass != null && archetype == null)
{
BlueprintCharacterClass selectedClass = __instance.LevelUpController.State.SelectedClass;
__instance.LevelUpController.RemoveArchetype();
__instance.LevelUpController.RemoveClass();
__instance.LevelUpController.SelectClass(selectedClass);
}
UnitProgressionData Progression = __instance.LevelUpController.Preview.Progression;
ClassData classData = __instance.LevelUpController.Preview
.Progression.GetClassData(__instance.LevelUpController.State.SelectedClass);
if (classData != null && (archetype != null ? !Progression.CanAddArchetype(classData.CharacterClass, archetype) : true))
{
classData.Archetypes.ForEach(delegate (BlueprintArchetype a)
{
__instance.LevelUpController.RemoveArchetype(a);
});
}
__instance.LevelUpController.RemoveArchetype(archetype);
if (archetype != null)
{
__instance.LevelUpController.AddArchetype(archetype);
}
__instance.UpdateClassInformation();
return false;
}
}
So I started my character as a Hex Channeler/Winter Witch (CO+ Archetype) and then realised that Hex Channeler was useless so respecced however on level ups I can still see feats and hexes that require Hex Channeler as valid choices for my character.
I wouldn't care about this but for some reason my character can't benefit from Quicken Rods or Bewitching Hex so I wonder if they are somehow related.
Any insight would be welcome!
Using the latest release of the mod (v1.0.0).
As far as I can tell, Sage Sorcerer should be compatible with Seeker Sorcerer.
It probably doesn't work because for some reason, Seeker removes the Bloodline and adds it back again as an archetype feature (I can't say if there's any actual change)
How can I workaround this situation?
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.