本文整理汇总了C#中AosSkillBonuses.GetValues方法的典型用法代码示例。如果您正苦于以下问题:C# AosSkillBonuses.GetValues方法的具体用法?C# AosSkillBonuses.GetValues怎么用?C# AosSkillBonuses.GetValues使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类AosSkillBonuses
的用法示例。
在下文中一共展示了AosSkillBonuses.GetValues方法的3个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。
示例1: ApplySkillBonus
private static void ApplySkillBonus( AosSkillBonuses attrs, int min, int max, int index, int low, int high )
{
SkillName sk, check;
double bonus;
bool found;
do
{
found = false;
sk = m_PossibleBonusSkills[Utility.Random( m_PossibleBonusSkills.Length )];
for ( int i = 0; !found && i < 5; ++i )
found = ( attrs.GetValues( i, out check, out bonus ) && check == sk );
} while ( found );
attrs.SetValues( index, sk, Scale( min, max, low, high ) );
}
示例2: ApplySkillBonus
private static void ApplySkillBonus( AosSkillBonuses attrs, int min, int max, int index, int low, int high )
{
SkillName[] possibleSkills = ( attrs.Owner is Spellbook ? m_PossibleSpellbookSkills : m_PossibleBonusSkills );
int count = ( Core.SE ? possibleSkills.Length : possibleSkills.Length - 2 );
SkillName sk, check;
double bonus;
bool found;
do
{
found = false;
sk = possibleSkills[Utility.Random( count )];
for ( int i = 0; !found && i < 5; ++i )
found = ( attrs.GetValues( i, out check, out bonus ) && check == sk );
} while ( found );
attrs.SetValues( index, sk, Scale( min, max, low, high ) );
}
示例3: ApplySkillBonus
private static void ApplySkillBonus(AosSkillBonuses attrs, int min, int max, int index, int low, int high)
{
var possibleSkills = (attrs.Owner is Spellbook ? m_PossibleSpellbookSkills : m_PossibleBonusSkills).ToList();
var count = (Core.SE ? possibleSkills.Count : possibleSkills.Count - 2);
SkillName sk, check;
double bonus;
bool found;
do
{
found = false;
sk = possibleSkills[Utility.Random(count)];
for (var i = 0; !found && i < 5; ++i)
{
found = (attrs.GetValues(i, out check, out bonus) && check == sk);
}
possibleSkills.Remove(sk);
--count;
}
while (found && count > 0);
attrs.SetValues(index, sk, Scale(min, max, low, high));
}