本文整理汇总了C#中Character.GetEnlistmentBonus方法的典型用法代码示例。如果您正苦于以下问题:C# Character.GetEnlistmentBonus方法的具体用法?C# Character.GetEnlistmentBonus怎么用?C# Character.GetEnlistmentBonus使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类Character
的用法示例。
在下文中一共展示了Character.GetEnlistmentBonus方法的3个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。
示例1: Qualify
internal override bool Qualify(Character character, Dice dice)
{
if (!character.LongTermBenefits.MayEnrollInSchool)
return false;
if (character.CurrentTerm > 3)
return false;
var dm = character.EducationDM;
if (character.CurrentTerm == 2)
dm += -1;
if (character.CurrentTerm == 3)
dm += -2;
if (character.SocialStanding >= 9)
dm += 1;
dm += character.GetEnlistmentBonus("University", null);
return dice.RollHigh(dm, 7);
}
示例2: Qualify
internal override bool Qualify(Character character, Dice dice)
{
var dm = character.EnduranceDM;
dm += -1 * character.CareerHistory.Count;
if (character.Age >= 30)
dm += -2;
dm += character.GetEnlistmentBonus(Name, Assignment);
return dice.RollHigh(dm, 6);
}
示例3: Qualify
internal override bool Qualify(Character character, Dice dice)
{
var dm = character.IntellectDM;
dm += -1 * character.CareerHistory.Count;
dm += character.GetEnlistmentBonus(Name, Assignment);
return dice.RollHigh(dm, 6);
}