more github issue #679 - orc strength
Handle alternate values for hero poly'd into a 'strongmonst' form more thoroughly by propagating max values other than 18/100 to the attribute manipulation routines. ATTRMAX(A_STR), which used to be a relatively simple expression, now contains a function call. Along the way, change the races[] terminator's value for 'mnum' from 0 (giant ant) to NON_PM.
This commit is contained in:
@@ -40,10 +40,8 @@ struct attribs {
|
||||
schar a[A_MAX];
|
||||
};
|
||||
|
||||
#define ATTRMAX(x) \
|
||||
((x == A_STR && Upolyd && strongmonst(g.youmonst.data)) \
|
||||
? STR18(100) \
|
||||
: g.urace.attrmax[x])
|
||||
#define ATTRMAX(x) \
|
||||
((x == A_STR && Upolyd) ? uasmon_maxStr() : g.urace.attrmax[x])
|
||||
#define ATTRMIN(x) (g.urace.attrmin[x])
|
||||
|
||||
#endif /* ATTRIB_H */
|
||||
|
||||
Reference in New Issue
Block a user