public static void ChangePrisonerWandererToSpouse(Hero hero)
        {
            if (null == hero && hero.CharacterObject.Occupation != Occupation.Wanderer)
            {
                return;
            }

            ChangePrisonerToParty(hero);
            OccuptionChange.ChangeOccupationToLord(hero.CharacterObject);
            MarryHero(hero);
        }
        public static void NPCToSouse(CharacterObject character, CampaignGameStarter campaignGameStarter)
        {
            Hero hero = DealNPC(character, campaignGameStarter);

            if (null != hero)
            {
                //去掉它的伙伴属性
                hero.CompanionOf = null;
                OccuptionChange.ChangeOccupationToLord(hero.CharacterObject);
                MarryHero(hero);
                hero.IsNoble = true;
                RefreshClanPanelList(hero);
            }
        }
Exemplo n.º 3
0
 public static void ChangeCompanionToSpouse(Hero hero)
 {
     if (null == hero || !hero.IsPlayerCompanion)
     {
         return;
     }
     if (Hero.MainHero.Spouse == hero || Hero.MainHero.ExSpouses.Contains(hero))
     {
         return;
     }
     //去掉它的伙伴属性
     hero.CompanionOf = null;
     OccuptionChange.ChangeOccupationToLord(hero.CharacterObject);
     MarryHero(hero);
     hero.IsNoble = true;
     RefreshClanPanelList(hero);
 }