… | |
… | |
597 | #define EXIT_Y(xyz) (xyz)->stats.sp |
597 | #define EXIT_Y(xyz) (xyz)->stats.sp |
598 | #define EXIT_ALT_X(xyz) (xyz)->stats.maxhp |
598 | #define EXIT_ALT_X(xyz) (xyz)->stats.maxhp |
599 | #define EXIT_ALT_Y(xyz) (xyz)->stats.maxsp |
599 | #define EXIT_ALT_Y(xyz) (xyz)->stats.maxsp |
600 | |
600 | |
601 | /* for use by the lighting code */ |
601 | /* for use by the lighting code */ |
602 | #define MAX_LIGHT_RADII 4 /* max radii for 'light' object, really |
602 | #define MAX_LIGHT_RADIUS 9 /* max radius for 'light' object, really |
603 | * large values allow objects that can |
603 | * large values allow objects that can |
604 | * slow down the game */ |
604 | * slow down the game */ |
605 | #define MAX_DARKNESS 5 /* maximum map darkness, there is no |
605 | #define MAX_DARKNESS 5 /* maximum map darkness, there is no |
606 | * practical reason to exceed this */ |
606 | * practical reason to exceed this */ |
|
|
607 | #define LOS_MAX 4 /* max. los value for non-blocked spaces */ |
|
|
608 | #define LOS_BLOCKED 100 /* fully blocked spaces */ |
607 | #define BRIGHTNESS(xyz) (xyz)->glow_radius>MAX_LIGHT_RADII? \ |
609 | #define BRIGHTNESS(xyz) (xyz)->glow_radius>MAX_LIGHT_RADII? \ |
608 | MAX_LIGHT_RADII:(xyz)->glow_radius; |
610 | MAX_LIGHT_RADII:(xyz)->glow_radius; |
|
|
611 | // player position in blocked_los code |
|
|
612 | #define LOS_X0 (MAP_CLIENT_X / 2 - 1) |
|
|
613 | #define LOS_Y0 (MAP_CLIENT_Y / 2 - 1) |
|
|
614 | |
609 | |
615 | |
610 | #define F_BUY 0 |
616 | #define F_BUY 0 |
611 | #define F_SELL 1 |
617 | #define F_SELL 1 |
612 | #define F_TRUE 2 /* True value of item, unadjusted */ |
618 | #define F_TRUE 2 /* True value of item, unadjusted */ |
613 | #define F_NO_BARGAIN 4 /* combine with F_BUY or F_SELL to disable bargaining calc */ |
619 | #define F_NO_BARGAIN 4 /* combine with F_BUY or F_SELL to disable bargaining calc */ |