Arkonahn
Recruit
Successful in enabling artisan in recruitment window, will post for future reference.
Step one, add notable to TaleWorlds.CampaignSysytem.Hero like below;
Step two, add notable too TaleWorlds.CampaignSysytem.ViewModelCollection.GameMenu.RecruitmentVM
And with my earlier post can have artisans give any recruits you want.
Step one, add notable to TaleWorlds.CampaignSysytem.Hero like below;
C#:
// Token: 0x1700062A RID: 1578
// (get) Token: 0x06001309 RID: 4873 RVA: 0x0000C959 File Offset: 0x0000AB59
public bool CanHaveRecruits
{
get
{
return this.IsPreacher || this.IsRuralNotable || this.IsMercenary || this.IsGangLeader || this.IsMerchant || this.IsArtisan || this.IsHeadman;
}
}
Step two, add notable too TaleWorlds.CampaignSysytem.ViewModelCollection.GameMenu.RecruitmentVM
C#:
// Token: 0x06000E01 RID: 3585 RVA: 0x0003C628 File Offset: 0x0003A828
public void RefreshScreen()
{
this.VolunteerList.Clear();
this.TroopsInCart.Clear();
int num = 0;
this.InitialPartySize = PartyBase.MainParty.NumberOfAllMembers;
this.RefreshPartyProperties();
foreach (Hero hero in Settlement.CurrentSettlement.Notables)
{
if (hero.IsPreacher || hero.IsGangLeader || hero.IsRuralNotable || hero.IsMerchant || hero.IsArtisan || hero.IsHeadman)
{
MBTextManager.SetTextVariable("INDIVIDUAL_NAME", hero.Name, false);
List<CharacterObject> volunteerTroopsOfHeroForRecruitment = HeroHelper.GetVolunteerTroopsOfHeroForRecruitment(hero);
RecruitVolunteerVM item = new RecruitVolunteerVM(hero, volunteerTroopsOfHeroForRecruitment, new Action<RecruitVolunteerVM, RecruitVolunteerTroopVM>(this.OnRecruit), new Action<RecruitVolunteerVM, RecruitVolunteerTroopVM>(this.OnRemoveFromCart));
this.VolunteerList.Add(item);
num++;
}
}
this.TotalWealth = Hero.MainHero.Gold;
this.UpdateRecruitAllProperties();
}
And with my earlier post can have artisans give any recruits you want.