Atrinik Server  4.0
Data Structures | Macros | Typedefs | Enumerations
skills.h File Reference

Go to the source code of this file.

Data Structures

struct  skill_struct
 

Macros

#define SKILL_IS_MELEE(nr)
 
#define SKILL_IS_ARCHERY(nr)   ((nr) >= SK_BOW_ARCHERY && (nr) <= SK_SLING_ARCHERY)
 

Typedefs

typedef struct skill_struct skill_struct
 

Enumerations

enum  skillnrs {
  SK_ALCHEMY, SK_LITERACY, SK_BARGAINING, SK_CONSTRUCTION,
  SK_UNARMED, SK_KARATE, SK_THROWING, SK_WIZARDRY_SPELLS,
  SK_MAGIC_DEVICES, SK_MEDITATION, SK_FIND_TRAPS, SK_REMOVE_TRAPS,
  SK_BOW_ARCHERY, SK_CROSSBOW_ARCHERY, SK_SLING_ARCHERY, SK_SLASH_WEAPONS,
  SK_CLEAVE_WEAPONS, SK_PIERCE_WEAPONS, SK_IMPACT_WEAPONS, SK_TWOHANDS,
  SK_POLEARMS, SK_INSCRIPTION, NROFSKILLS
}
 

Detailed Description

Skills header.

Definition in file skills.h.

Macro Definition Documentation

#define SKILL_IS_ARCHERY (   nr)    ((nr) >= SK_BOW_ARCHERY && (nr) <= SK_SLING_ARCHERY)

Checks if the specified skill is an archery skill.

Parameters
nrThe skill number to check.
Returns
Whether the skill number is an archery skill.

Definition at line 112 of file skills.h.

#define SKILL_IS_MELEE (   nr)
Value:

Checks if the specified skill number is a melee weapons skill.

Parameters
nrThe skill number to check.
Returns
Whether the skill number is a melee weapons skill.

Definition at line 99 of file skills.h.

Typedef Documentation

typedef struct skill_struct skill_struct

Skill structure for the skills array.

Enumeration Type Documentation

enum skillnrs

Skill numbers.

Enumerator
SK_ALCHEMY 

Player can attempt alchemical recipes.

SK_LITERACY 

Can read books

SK_BARGAINING 

Sells items to shops at Cha + level-based bonus (30 max)

SK_CONSTRUCTION 

Player is able to alter maps like apartment in real-time.

SK_UNARMED 

Can attack hand-to-hand

SK_KARATE 
Deprecated:
SK_THROWING 

Player can throw items

SK_WIZARDRY_SPELLS 

Player can cast magic spells

SK_MAGIC_DEVICES 

Player use wands/horns/rods

SK_MEDITATION 

Passively increases HP/SP regeneration when out of combat.

SK_FIND_TRAPS 

Player can find traps better

SK_REMOVE_TRAPS 

Player can remove traps

SK_BOW_ARCHERY 

Player can use bows.

SK_CROSSBOW_ARCHERY 

Player can use crossbows.

SK_SLING_ARCHERY 

Player can use slings.

SK_SLASH_WEAPONS 

Player can use slash weapons.

SK_CLEAVE_WEAPONS 

Player can use cleave weapons.

SK_PIERCE_WEAPONS 

Player can use pierce weapons.

SK_IMPACT_WEAPONS 

Player can attack with impact weapons

SK_TWOHANDS 

Player can use two-handed weapons.

SK_POLEARMS 

Player can use polearms.

SK_INSCRIPTION 

Inscription.

NROFSKILLS 

Number of the skills, always last.

Definition at line 34 of file skills.h.