mirror of
https://github.com/PolarisSS13/Polaris.git
synced 2025-12-28 11:02:41 +00:00
* Prototype of generalized snow * documentation to flimsily justify my madness + polishing * it is often beneficial to have the code actually work * Review stuff * helpers, fixes, cleanliness * Fix generic submaps * Lazylists, ft. lung damage on the example map * I'm such a STUPID KITTY * sanity courtesy of loaf * Fix appearance of roundstart snowy turfs
35 lines
1.4 KiB
Plaintext
35 lines
1.4 KiB
Plaintext
#define TURF_REMOVE_CROWBAR 1
|
|
#define TURF_REMOVE_SCREWDRIVER 2
|
|
#define TURF_REMOVE_SHOVEL 4
|
|
#define TURF_REMOVE_WRENCH 8
|
|
#define TURF_CAN_BREAK 16
|
|
#define TURF_CAN_BURN 32
|
|
#define TURF_HAS_EDGES 64
|
|
#define TURF_HAS_CORNERS 128
|
|
#define TURF_IS_FRAGILE 256
|
|
#define TURF_ACID_IMMUNE 512
|
|
|
|
//Used for floor/wall smoothing
|
|
#define SMOOTH_NONE 0 //Smooth only with itself
|
|
#define SMOOTH_ALL 1 //Smooth with all of type
|
|
#define SMOOTH_WHITELIST 2 //Smooth with a whitelist of subtypes
|
|
#define SMOOTH_BLACKLIST 3 //Smooth with all but a blacklist of subtypes
|
|
#define SMOOTH_GREYLIST 4 // Use a whitelist and a blacklist at the same time. atom smoothing only
|
|
|
|
#define isCardinal(x) (x == NORTH || x == SOUTH || x == EAST || x == WEST)
|
|
#define isDiagonal(x) (x == NORTHEAST || x == SOUTHEAST || x == NORTHWEST || x == SOUTHWEST)
|
|
|
|
#define FOOTSTEP_SPRITE_AMT 2
|
|
|
|
// Used to designate if a turf (or its area) should initialize as outdoors or not.
|
|
#define OUTDOORS_YES 1 // This being 1 helps with backwards compatibility.
|
|
#define OUTDOORS_NO 0 // Ditto.
|
|
#define OUTDOORS_AREA -1 // If a turf has this, it will defer to the area's settings on init.
|
|
// Note that after init, it will be either YES or NO.
|
|
|
|
// Used to represent how much snow a turf has.
|
|
#define NEVER_HAS_SNOW -1 // If a floor's `snow_layers` is set to this, it can never accrue snow.
|
|
#define SNOW_NONE 0
|
|
#define SNOW_LIGHT 1
|
|
#define SNOW_HEAVY 2
|