本文整理汇总了C#中GameObjects.Person.muqinyingxiangnengli方法的典型用法代码示例。如果您正苦于以下问题:C# Person.muqinyingxiangnengli方法的具体用法?C# Person.muqinyingxiangnengli怎么用?C# Person.muqinyingxiangnengli使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类GameObjects.Person
的用法示例。
在下文中一共展示了Person.muqinyingxiangnengli方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。
示例1: haizichusheng
public void haizichusheng(Person person, Person father, Person muqin, bool doAffect)
{
person.Available = true;
foreach (Treasure treasure in person.Treasures)
{
treasure.Available = true;
}
person.LocationArchitecture = muqin.BelongedArchitecture;
person.ChangeFaction(muqin.BelongedFaction);
if (muqin.IsCaptive)
{
person.Loyalty = muqin.Loyalty;
Captive c = Captive.Create(this, person, muqin.BelongedCaptive.BelongedFaction);
}
else
{
if (GlobalVariables.lockChildrenLoyalty && father != null && father.BelongedFaction == person.LocationArchitecture.BelongedFaction)
{
person.Loyalty = 120;
}
if (GameObject.Chance(father.childrenLoyaltyRate))
{
person.Loyalty = father.childrenLoyalty;
}
else if (GameObject.Chance(muqin.childrenLoyaltyRate))
{
person.Loyalty = muqin.childrenLoyalty;
}
}
if (doAffect)
{
person.muqinyingxiangnengli(muqin);
}
if (person.BaseCommand < 1) person.BaseCommand = 1;
if (person.BaseStrength < 1) person.BaseStrength = 1;
if (person.BaseIntelligence < 1) person.BaseIntelligence = 1;
if (person.BasePolitics < 1) person.BasePolitics = 1;
if (person.BaseGlamour < 1) person.BaseGlamour = 1;
this.GameScreen.haizizhangdachengren(person, person);
}