mirror of
https://codeberg.org/noisytoot/notnotdnethack.git
synced 2024-11-21 16:55:06 +00:00
d58f10c249
Allows faster progression through this part of the str stat, and brings it more into the range where flat + modifiers could be useful. Semi-arbitrarily reduce str-based extended attack checks to compensate.
46 lines
1.2 KiB
C
46 lines
1.2 KiB
C
/* SCCS Id: @(#)attrib.h 3.4 1990/22/02 */
|
|
/* Copyright 1988, Mike Stephenson */
|
|
/* NetHack may be freely redistributed. See license for details. */
|
|
|
|
/* attrib.h - Header file for character class processing. */
|
|
|
|
#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
|
|
|
|
#define A_MAX 6 /* used in rn2() selection of attrib */
|
|
|
|
#define ABASE(x) (u.acurr.a[x])
|
|
#define ABON(x) (u.abon.a[x])
|
|
#define AEXE(x) (u.aexe.a[x])
|
|
#define ACURR(x) (acurr_player(x))
|
|
#define ACURRSTR (acurrstr(ACURR(A_STR)))
|
|
#define ACURR_MON(x, mon) (acurr(x, mon))
|
|
#define ABASE_MON(x, mon) (mon->acurr.a[x])
|
|
/* should be: */
|
|
/* #define ACURR(x) (ABON(x) + ATEMP(x) + (Upolyd ? MBASE(x) : ABASE(x)) */
|
|
#define MCURR(x) (u.macurr.a[x])
|
|
#define AMAX(x) (u.amax.a[x])
|
|
#define MMAX(x) (u.mamax.a[x])
|
|
|
|
#define ATEMP(x) (u.atemp.a[x])
|
|
#define ATIME(x) (u.atime.a[x])
|
|
|
|
/* KMH -- Conveniences when dealing with strength constants */
|
|
#define STR18(x) (18+(x/5)) /* 18/xx */
|
|
#define STR19(x) (20+(x)) /* For 19 and above */
|
|
|
|
struct attribs {
|
|
schar a[A_MAX];
|
|
};
|
|
|
|
#define ATTRMAX(x) ((x == A_STR && Upolyd && strongmonst(youmonst.data)) ? STR18(100) : urace.attrmax[x])
|
|
#define ATTRMIN(x) (urace.attrmin[x])
|
|
|
|
#endif /* ATTRIB_H */
|