#include <monst.h>
Data file only. See #data/monsters.m4. This structure definition must remain synchronized with the data there.
Definition at line 55 of file monst.h.
Data Fields | |
| filelink | name |
| Points to monster's name. | |
| uchar | drawchar |
| Symbol used to represent monster on map. | |
| uchar | level |
| Monster's level (affects its chance to hit). | |
| uchar | dv |
| Monster's defense value. | |
| uchar | pv |
| Monster's protection value. | |
| sint | hps_max |
| Monster's max. hit points. | |
| uchar | speed |
| Monster speed (normal speed is 10). | |
| uchar | power_max |
| Monster's max power. | |
| ushort | ai |
| filelink | ai_active |
| Function to use when active (if any). | |
| filelink | ai_idle |
| Function to use when idle (if any). | |
| filelink | ai_anger |
| Function to use when angered (if any). | |
| filelink | deathfunc |
| Function to use when killed (if any). | |
| filelink | chatfunc |
| Function to use when chatted with (if any). | |
| uchar | numattacks |
| Number of attacks in attacks. | |
| uint | xp |
| uint | flags |
| Special monster abilities/properties. | |
| monstattack | attacks [1] |
| Attack details. | |
|
|
Starting AI state
Definition at line 69 of file monst.h. Referenced by addmonster(). |
|
|
Function to use when active (if any).
|
|
|
Function to use when angered (if any).
|
|
|
Function to use when idle (if any).
|
|
|
Attack details.
|
|
|
Function to use when chatted with (if any).
|
|
|
Function to use when killed (if any).
|
|
|
Symbol used to represent monster on map.
|
|
|
Monster's defense value.
|
|
|
Special monster abilities/properties. May be any combination of the abilities in Monster Flags #sa monstflags Definition at line 88 of file monst.h. Referenced by addmonster(). |
|
|
Monster's max. hit points.
Definition at line 62 of file monst.h. Referenced by addmonster(). |
|
|
Monster's level (affects its chance to hit).
|
|
|
Points to monster's name.
|
|
|
Number of attacks in attacks.
|
|
|
Monster's max power.
Definition at line 64 of file monst.h. Referenced by addmonster(). |
|
|
Monster's protection value.
|
|
|
Monster speed (normal speed is 10).
|
|
|
XP given for a kill
|
1.3.6