Files
Letter NandGitHub b378375888 update blueprints (#7499)
<!-- Write **BELOW** The Headers and **ABOVE** The comments else it may
not be viewable. -->
<!-- You can view Contributing.MD for a detailed description of the pull
request process. -->

## About The Pull Request
title, robots also get to see the blueprints now
<!-- Describe The Pull Request. Please be sure every change is
documented or this can delay review and even discourage maintainers from
merging your PR! -->

## Why It's Good For The Game

<!-- Argue for the merits of your changes and how they benefit the game,
especially if they are controversial and/or far reaching. If you can't
actually explain WHY what you are doing will improve the game, then it
probably isn't good for the game in the first place. -->

## Changelog

<!-- If your PR modifies aspects of the game that can be concretely
observed by players or admins you should add a changelog. If your change
does NOT meet this description, remove this section. Please note that
maintainers freely reserve the right to remove and add tags should they
deem it appropriate. You can attempt to finagle the system all you want,
but it's best to shoot for clear communication right off the bat. -->

🆑
tweak: updated blueprints, engi module robots now get blueprints as well
/🆑

<!-- Both 🆑's are required for the changelog to work! You can put
your name to the right of the first 🆑 if you want to overwrite your
GitHub username as author ingame. -->
<!-- You can use multiple of the same prefix (they're only used for the
icon ingame) and delete the unneeded ones. Despite some of the tags,
changelogs should generally represent how a player might be affected by
the changes rather than a summary of the PR's contents. -->
2026-01-24 14:34:39 -05:00

94 lines
4.0 KiB
Plaintext

GLOBAL_LIST_INIT(cardinal, list(
NORTH,
SOUTH,
EAST,
WEST,
))
GLOBAL_LIST_INIT(cardinalz, list(
NORTH,
SOUTH,
EAST,
WEST,
UP,
DOWN,
))
GLOBAL_LIST_INIT(cornerdirs, list(NORTHEAST, NORTHWEST, SOUTHEAST, SOUTHWEST))
// TODO: remove
GLOBAL_LIST_INIT(cornerdirsz, list(NORTHEAST, NORTHWEST, SOUTHEAST, SOUTHWEST, NORTH|UP, EAST|UP, WEST|UP, SOUTH|UP, NORTH|DOWN, EAST|DOWN, WEST|DOWN, SOUTH|DOWN))
// TODO: remove
GLOBAL_LIST_INIT(alldirs, list(NORTH, SOUTH, EAST, WEST, NORTHEAST, NORTHWEST, SOUTHEAST, SOUTHWEST))
/**
* Cardinal dirs
*/
GLOBAL_REAL_LIST(cardinals) = list(NORTH, SOUTH, EAST, WEST)
/**
* Cardinal dirs plus up/down
*/
GLOBAL_REAL_LIST(cardinalsz) = list(NORTH, SOUTH, EAST, WEST, UP, DOWN)
/**
* Diagonal dirs
*/
GLOBAL_REAL_LIST(cornerdirs) = list(NORTHEAST, NORTHWEST, SOUTHEAST, SOUTHWEST)
/**
* Diagonal dirs and up/down with each of the cardinals, resulting in a 'checkerboard' pattern
*/
GLOBAL_REAL_LIST(cornerdirsz) = list(NORTHEAST, NORTHWEST, SOUTHEAST, SOUTHWEST, NORTH|UP, EAST|UP, WEST|UP, SOUTH|UP, NORTH|DOWN, EAST|DOWN, WEST|DOWN, SOUTH|DOWN)
/**
* All cardinal + intercardinal (so horizontal) dirs
*/
GLOBAL_REAL_LIST(alldirs) = list(NORTH, SOUTH, EAST, WEST, NORTHEAST, NORTHWEST, SOUTHEAST, SOUTHWEST)
//* Real var for speed *//
GLOBAL_REAL_LIST(reverse_dir) = list( // reverse_dir[dir] = reverse of dir
2, 1, 3, 8, 10, 9, 11, 4, 6, 5, 7, 12, 14, 13, 15,
32, 34, 33, 35, 40, 42, 41, 43, 36, 38, 37, 39, 44, 46, 45, 47,
16, 18, 17, 19, 24, 26, 25, 27, 20, 22, 21, 23, 28, 30, 29, 31,
48, 50, 49, 51, 56, 58, 57, 59, 52, 54, 53, 55, 60, 62, 61, 63
)
GLOBAL_REAL_LIST(flip_dir) = list( // flip_dir[dir] = 180 degree rotation of dir. Unlike reverse_dir, UP remains UP & DOWN remains DOWN.
2, 1, 3, 8, 10, 9, 11, 4, 6, 5, 7, 12, 14, 13, 15,
16, 18, 17, 19, 24, 26, 25, 27, 20, 22, 21, 23, 28, 30, 29, 31, // UP - Same as first line but +16
32, 34, 33, 35, 40, 42, 41, 43, 36, 38, 37, 39, 44, 46, 45, 47, // DOWN - Same as first line but +32
48, 50, 49, 51, 56, 58, 57, 59, 52, 54, 53, 55, 60, 62, 61, 63 // UP+DOWN - Same as first line but +48
)
GLOBAL_REAL_LIST(cw_dir) = list( // cw_dir[dir] = clockwise rotation of dir by 90 deg. Unlike reverse_dir, UP remains UP & DOWN remains DOWN.
4, 8, 12, 2, 6, 10, 14, 1, 5, 9, 13, 3, 7, 11, 15,
16, 20, 24, 28, 18, 22, 26, 30, 17, 21, 25, 19, 29, 23, 27, 31, // UP - Same as first line but +16
32, 36, 40, 44, 34, 38, 42, 46, 33, 37, 41, 45, 35, 39, 43, 47, // DOWN - Same as first line but +32
48, 52, 56, 40, 50, 54, 58, 62, 49, 53, 57, 61, 51, 55, 59, 63 // UP+DOWN - Same as first line but +48
)
GLOBAL_REAL_LIST(ccw_dir) = list( // cww_dir[dir] = counter-clockwise rotation of dir by 90 deg. Unlike reverse_dir, UP remains UP & DOWN remains DOWN.
8, 4, 12, 1, 9, 5, 13, 2, 10, 6, 14, 3, 11, 7, 15,
16, 24, 20, 28, 17, 25, 21, 29, 18, 26, 22, 30, 19, 27, 23, 31, // UP - Same as first line but +16
32, 40, 36, 44, 33, 41, 37, 45, 34, 42, 38, 46, 35, 43, 39, 47, // DOWN - Same as first line but +32
48, 56, 52, 60, 49, 57, 53, 61, 50, 58, 54, 62, 51, 59, 55, 63 // UP+DOWN - Same as first line but +48
)
/// used by jump-to-area etc. Updated by area/updateName()
GLOBAL_LIST_EMPTY(sortedAreas)
/// An association from typepath to area instance. Only includes areas with `unique` set.
GLOBAL_LIST_EMPTY_TYPED(areas_by_type, /area)
/// A list of player-created areas.
GLOBAL_LIST_EMPTY_TYPED(custom_areas, /area)
GLOBAL_LIST_INIT(ore_types, list(
MAT_HEMATITE = /obj/item/stack/ore/iron,
MAT_URANIUM = /obj/item/stack/ore/uranium,
MAT_GOLD = /obj/item/stack/ore/gold,
MAT_SILVER = /obj/item/stack/ore/silver,
MAT_DIAMOND = /obj/item/stack/ore/diamond,
MAT_PHORON = /obj/item/stack/ore/phoron,
MAT_OSMIUM = /obj/item/stack/ore/osmium,
"hydrogen" = /obj/item/stack/ore/hydrogen,
"silicates" = /obj/item/stack/ore/glass,
MAT_CARBON = /obj/item/stack/ore/coal,
MAT_VERDANTIUM = /obj/item/stack/ore/verdantium,
MAT_MARBLE = /obj/item/stack/ore/marble,
MAT_LEAD = /obj/item/stack/ore/lead
))