skills.h
rogue25b2/src/skills.h · 3.4 KB
From the archive rogue2.5b2FIXED.tar.gz
Download the archive « Back to the archive contents
/***************************************************************************\
[*] ___ ____ ____ __ __ ____ [*] ROGUE: ROM With Attitude [*]
[*] /#/ ) /#/ ) /#/ ) /#/ /#/ /#/ [*] All rights reserved [*]
[*] /#/ < /#/ / /#/ _ /#/ /#/ /#/-- [*] Copyright(C) 2000-2003 [*]
[*] /#/ \(#(__/ (#(__/ (#(__/#/ (#(___ [*] Kenneth Conley (Mendanbar) [*]
[*] Expression of Digital Creativity.. [*] roguemud@yahoogroups.com [*]
[-]---------------------------------------+-+-----------------------------[-]
[*] File: skills.h [*]
[*] Usage: New 3e Skill Templates [*]
\***************************************************************************/
#ifndef __SKILLS_H__
#define __SKILLS_H__
#include "types.h"
class ReqData; // this needs to go in types.h
class SkillData {
public:
SkillData(void);
~SkillData(void);
char * name;
char * description;
bool retry; // useless?
bool armor; // armor check penalty?
bool trained; // trained only?
SInt8 ability; // key ability, -1 for none
LList<ReqData *> requirements;
LList<SkillData *> synergy_bonus;
protected:
void Init(void);
};
/*
* Knowledge Nature
* Could be used if we implement plants and herbs. Stuff that wizards,
* or anyone whom might want to sell components to a wizard, could plant and
* grow. They would be affected by seasons (need to code), weather (need to
* enhance) and just about anything else.
*
* The skill could be called when you find "a seedling" that to anyone else
* looks like any damn plant they might find in a garden. It could be a rose
* for all they care, not the primary ingredient to a flesh rot spell. >;)
* The skill would allow you a check to see what type of seedling it is. This
* wouldn't suddenly rename it to "a flower seed", it would be up to the player
* to sort the seed in a special pouch or something. Perhaps keep a record in
* the pfile that he successfully identified that plant, and from that point
* on will recognise all plants like that. If he fails, it will be recorded
* also, and this is a !RETRY skill so if you fail, you don't know what it is.
* Perhaps stick a timestamp on it so eventually he'll get another chance. The
* only way to truely identify it would be to have someone else tell you what
* it is ;)
*
*
* Different seeds or plant types could have different needs. Perhaps some
* could only grow in darkness (evil plants, grr!) or in low light. Maybe some
* eat bugs. Some might grow better in different soil, or in a different
* season all together!
*
* Anyone that is not the owner of the garden would walk in and see a bunch of
* "strange", "mysterious", or "beautiful" plants. They would have to use their
* nature knowledge to identify them. (Perhaps if they have already gotten a
* successful check they would see that plant for what it is?).
* The owner of the garden would naturally know his plants.. or would he?
* Perhaps he's just growing something?
*
* What about the selling of plants? Some components only require clippings,
* not the whole potted plant to be carried around. Can you imagine seeing
* an army of wizards carrying around mini-gardens for their components? No, no
* this wouldn't work. Some components need to be dried, or mixed. We need to
* do all of this!
*
* This is such cool stuff...
*/
#endif