Exemplo n.º 1
0
        private void SetSkill(TaleWorlds.CampaignSystem.Hero hero, string skill, int value)
        {
            var s = SkillObject.FindFirst(n => n.StringId.ToUpper() == skill);

            hero.SetSkillValue(s, hero.GetSkillValue(s) + value);
        }
Exemplo n.º 2
0
 private void SetAttribute(TaleWorlds.CampaignSystem.Hero hero, CharacterAttributesEnum attribute, int value)
 {
     hero.SetAttributeValue(attribute, hero.GetAttributeValue(attribute) + value);
 }