-
-
Notifications
You must be signed in to change notification settings - Fork 285
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Electrochromic Helpers, Placing Said Helpers in Atlas, and fixing Car…
…go's Conveyor ID's (#6698) <!-- 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 This PR adds a new mapping helper that lets you ID electrochromic windows placed below, and IDs conveyors. <!-- 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 Because we needed more control over what windows are affected by which tint other than the surface area covered on windows placed by builders, which could not be ID'd and because having the two conveyor belts be synced sucks. <!-- 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 Adds new mapping helper: /obj/map_helper/electrochromatic_linker and litters Riftmap with them. Separates the controls of the two cargo belts in Riftmap. <!-- 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. Be sure to properly mark your PRs to prevent unnecessary GBP loss. You can read up on GBP and it's effects on PRs in the tgstation guides for contributors. 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. --> :cl: tweak: tweaked conveyor belt ids imageadd: edited access helper into a fitting icon code: added mapping helper /:cl: <!-- Both :cl:'s are required for the changelog to work! You can put your name to the right of the first :cl: 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. -->
- Loading branch information
1 parent
997e5e5
commit f4c95bb
Showing
7 changed files
with
230 additions
and
33 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
17 changes: 17 additions & 0 deletions
17
code/modules/mapping/map_helpers/electrochromatic_linker.dm
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
/obj/map_helper/electrochromatic_linker | ||
icon = 'icons/mapping/helpers/electrochromatic_helper.dmi' | ||
icon_state = "electrochromatic" | ||
early = FALSE | ||
late = TRUE | ||
/** | ||
* the ID to bind electrochromatic objects on our tile to | ||
*/ | ||
var/id | ||
|
||
/obj/map_helper/electrochromatic_linker/LateInitialize() | ||
for(var/obj/structure/window/reinforced/polarized/chromatic_window in loc) | ||
chromatic_window.id = id | ||
/** | ||
* Same behaviour needs to be applied to polarised airlocks, currently unable too | ||
*/ | ||
qdel(src) |
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.