private static void Postfix(CharGenClassSelectorItemVM __instance, BlueprintCharacterClass cls, BlueprintArchetype archetype, LevelUpController levelUpController, INestedListSource source, ReactiveProperty <CharGenClassSelectorItemVM> selectedArchetype, ReactiveProperty <TooltipBaseTemplate> tooltipTemplate, bool prerequisitesDone, bool canSelect, bool allowSwitchOff) { if (__instance.HasClassLevel) { var classData = levelUpController.Unit.Progression.GetClassData(cls); if (!classData.Archetypes.Any()) { return; } var name = classData.ArchetypesName(); var DisplayName = AccessTools.Field(typeof(CharGenClassSelectorItemVM), "DisplayName"); DisplayName.SetValue(__instance, $"{cls.Name} — {name}"); } }
private static void Postfix(CharGenClassSelectorItemVM __instance, List <NestedSelectionGroupEntityVM> __result) { archetypes = __result; }