Use more enums

We're already using enums, so convert some already existing defines.
This commit is contained in:
Pasi Kallinen
2016-10-10 16:18:14 +03:00
parent 856252702f
commit 552647fb36
12 changed files with 368 additions and 327 deletions

View File

@@ -7,14 +7,16 @@
#ifndef ATTRIB_H
#define ATTRIB_H
#define A_STR 0
#define A_INT 1
#define A_WIS 2
#define A_DEX 3
#define A_CON 4
#define A_CHA 5
enum attrib_types {
A_STR = 0,
A_INT,
A_WIS,
A_DEX,
A_CON,
A_CHA,
#define A_MAX 6 /* used in rn2() selection of attrib */
A_MAX /* used in rn2() selection of attrib */
};
#define ABASE(x) (u.acurr.a[x])
#define ABON(x) (u.abon.a[x])