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

            ChangePrisonerToParty(hero);
            OccuptionChange.ChangeOccupationToLord(hero.CharacterObject);
            MarryHero(hero);
        }
示例#2
0
        public static void NPCToCompanion(CharacterObject character, CampaignGameStarter campaignGameStarter)
        {
            Hero hero = DealNPC(character, campaignGameStarter);

            OccuptionChange.ChangeToWanderer(hero.CharacterObject);
            // hero.IsNoble = true;
            if (!MobileParty.MainParty.MemberRoster.Contains(hero.CharacterObject))
            {
                MobileParty.MainParty.MemberRoster.AddToCounts(hero.CharacterObject, 1);
            }
            AddCompanionAction.Apply(Clan.PlayerClan, 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);
            }
        }
示例#4
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);
 }