Re: [CODE] SPELLS, SKILLS

From: Ross O'Connor (r.oconnor@lancaster.ac.uk)
Date: 02/24/97


On Thu, 20 Feb 1997 tigerdyr@internet.dk wrote:

> Hi all..
> 
> Since I got tired of the practice command showing both skills and 
> spells in a clear mess, here's what I did to get the thing around
> /* Put these in act.informative.c */ 
> 
> ACMD(do_spells)
> {
*SNIP*
> }
> 
> ACMD(do_skills)
> {
*SNIP*
> }
> 
> All you have to do after that is just to put the ACMD(do_spell) & 
> ACMD(do_skills) in interpreter.c 
> 
> Only thing about this one, It doesn't sort the things alphabetically. 
> If you happen to make that, please send me a mail on 
> tigerdyr@internet.dk.

Why not just have one function, which can either take a parameter, or be
called by two different commands which have appropriate sub-commands.

No point repeating code if ya dont have to ;-)


-------------------------------------------------------------------------
Hmm, so whats a signature anyway ?

"They aren't margueritas, that's urine recyc!", Lister - series VI, Out
Of Time - the original ending.

Mail  : Flat 1
	14 South Road
	Lancaster
	LA1 4XD
EMail : r.oconnor@lancaster.ac.uk
WWW   : ****THEY'RE BACK**** http://www.lancs.ac.uk/ug/oconnorr
-------------------------------------------------------------------------



+-----------------------------------------------------------+
| Ensure that you have read the CircleMUD Mailing List FAQ: |
|   http://cspo.queensu.ca/~fletcher/Circle/list_faq.html   |
|    Or send 'info circle' to majordomo@cspo.queensu.ca     |
+-----------------------------------------------------------+



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