Holy crap, what is THIS?
Here's the #defines for skills:
Now look at this line of code:
Combined with this function that it uses:
Anyone spot a problem there?
SKILL_SNEAK is "Sneak", in other words a string (=text) and NOT a number
But it enters that function as an integer number to be converted into a text afterwards.
That makes no sense and could throw those functions out of whack quite nicely.
Here's the #defines for skills:
Code:
#define SKILL_LEADERSHIP "Leadership"
#define SKILL_FENCING "Fencing"
#define SKILL_SAILING "Sailing"
#define SKILL_ACCURACY "Accuracy"
#define SKILL_CANNONS "Cannons"
#define SKILL_GRAPPLING "Grappling"
#define SKILL_REPAIR "Repair"
#define SKILL_DEFENCE "Defence"
#define SKILL_COMMERCE "Commerce"
#define SKILL_SNEAK "Sneak"
Code:
dmg *= (0.75 + fRand(GetSummonSkill(attack, SKILL_SNEAK))/(40.0/3.0));
Code:
int GetSummonSkill(ref chref,int _SkillType)
{
return GetSummonSkillFromName(&chref,GetSkillName(_SkillType));
}
SKILL_SNEAK is "Sneak", in other words a string (=text) and NOT a number
But it enters that function as an integer number to be converted into a text afterwards.
That makes no sense and could throw those functions out of whack quite nicely.