blob: d82c925b94fbd150409adcf963bb26f765284636 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
|
#pragma once
#include "h-basic.h"
/**
* Trap descriptor.
*/
struct trap_type
{
s16b probability; /* probability of existence */
s16b another; /* does this trap easily combine */
s16b p1valinc; /* how much does this trap attribute to p1val */
byte difficulty; /* how difficult to disarm */
byte minlevel; /* what is the minimum level on which the traps should be */
byte color; /* what is the color on screen */
u32b flags; /* where can these traps go - and perhaps other flags */
bool_ ident; /* do we know the name */
s16b known; /* how well is this trap known */
const char *name; /* normal name like weakness */
s16b dd, ds; /* base damage */
char *text; /* longer description once you've met this trap */
byte g_attr; /* Overlay graphic attribute */
char g_char; /* Overlay graphic character */
};
|