IBKZ
Initiate
magic resist won't gain at 0.0, will at 0.1+
Is there a way to fix it so it will gain at 0.0?
or.. how do I add .1 resist to the custom skills list? I added 1 magic resist to the warrior, mage, and crafter pre-made templates in CharacterCreation.cs
example:
case 1: // Warrior
but I cannot figure out how to add that to "advanced" (custom skill pick) creation - looks like the code is here:
the commented out part at the bottom is a few of what I tried-but did not work. Thanks!
Is there a way to fix it so it will gain at 0.0?
or.. how do I add .1 resist to the custom skills list? I added 1 magic resist to the warrior, mage, and crafter pre-made templates in CharacterCreation.cs
example:
case 1: // Warrior
Code:
{
skills = new SkillNameValue[]
{
new SkillNameValue( SkillName.Anatomy, 30 ),
new SkillNameValue( SkillName.Healing, 45 ),
new SkillNameValue( SkillName.Swords, 35 ),
new SkillNameValue( SkillName.Tactics, 50 ),
new SkillNameValue( SkillName.MagicResist, 1 )
};
break;
but I cannot figure out how to add that to "advanced" (custom skill pick) creation - looks like the code is here:
the commented out part at the bottom is a few of what I tried-but did not work. Thanks!
Code:
private static bool ValidSkills( SkillNameValue[] skills )
{
int total = 0;
for ( int i = 0; i < skills.Length; ++i )
{
if ( skills.Value < 0 || skills.Value > 50 )
return false;
total += skills.Value;
for ( int j = i + 1; j < skills.Length; ++j )
{
if ( skills[j].Value > 0 && skills[j].Name == skills.Name )
return false;
}
}
return ( total == 100 || total == 120 ); //return ( total == 100 || total == 120 );
/*if (SkillName.MagicResist <= 0)
{
skills = new SkillNameValue[]
{
new SkillNameValue( SkillName.Tactics, 50 ),
new SkillNameValue( SkillName.MagicResist, 1 )
};
}*/
//if (SkillName.MagicResist == 0)
//new SkillNameValue( SkillName.MagicResist, 1 );
}