EvalInt script patch. Was checking against wrong attribute.

Made a small change or new addition to the Distro that makes a difference? You can post the changes here in .patch or .diff file format, for others to use or even added to the official Distro SVN!

Moderators: POL Developer, Distro Developer

Locked
Nando
POL Developer
Posts: 282
Joined: Wed Sep 17, 2008 6:53 pm
Contact:

EvalInt script patch. Was checking against wrong attribute.

Post by Nando »

Hi,

evalInt.src was using wrong attribute name in CheckSkill.

Change

Code: Select all

if( SkillCheck(who, ANATOMY, -1) > 0 )
for

Code: Select all

if( SkillCheck(who, ANATOMY, -1) > 0 )
and

Code: Select all

if(AP_GetSkill(who, ANATOMY) >= 65)
for

Code: Select all

if(AP_GetSkill(who, EVALUATING_INTELLIGENCE) >= 65)
The patch is attached. Is this board being read at all?
Attachments
evalInt.patch
Patch to change ANATOMY to EVALUATING_INTELLIGENCE in two places.
(806 Bytes) Downloaded 316 times
Madman
POL Developer
Posts: 62
Joined: Sun Feb 05, 2006 7:20 pm

Re: EvalInt script patch. Was checking against wrong attribute.

Post by Madman »

Yes, it's being read. Again, for the record, that patch has been applied.

A random request for future patches in this forum- if you can give the full path to the file to be patched, that'd be shiny. Not like it was hard to find EvalInt, but at some point someone's going to patch pkg.cfg or something. ;)
Locked