Re: Problem with skill lists

From: Belgian Underground Mud (bug@asteriks.rug.ac.be)
Date: 03/27/95


On Sat, 25 Mar 1995, Christopher J. Dickey wrote:
[...]
> skill number of a spell/skill seems a bit flawed.  In my case, I have a 
> skill called 'firearms', and a few spells, namely 'fire dart', 'fire cloud',
> and 'fireball'.  It would appear that find_skill_num replies with the 
> number for 'fire dart' everytime I try to do anything with 'firearms'.
>    'Fire dart' is above 'firearms' in the spells list because 'fire dart'
> is a spells, and 'firearms' is a skill.  I looked over the is_abbrev 
> routine and the comment above it is that it works both ways (assuming 
> that's what it meant by symmetrical).  If this is the case, then yes, the 
> first part of 'fire dart' is an abbreviation for 'firearms' and thus the 
> problem.

How about changing is_abbrev as follows: after the for loop, check if 
arg1 has more letters... It is very likely not an abbreviation then :*)

Bug.



This archive was generated by hypermail 2b30 : 12/07/00 PST