forked from tgstation/tgstation
-
Notifications
You must be signed in to change notification settings - Fork 44
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
## About The Pull Request мерге
- Loading branch information
Showing
53 changed files
with
2,059 additions
and
1,998 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -27,7 +27,7 @@ jobs: | |
touch dmdoc/.nojekyll | ||
echo codedocs.tgstation13.org > dmdoc/CNAME | ||
- name: Deploy | ||
uses: JamesIves/[email protected].1 | ||
uses: JamesIves/[email protected].2 | ||
with: | ||
branch: gh-pages | ||
clean: true | ||
|
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
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,52 @@ | ||
/// Helper proc that tests to ensure all whiteship templates can spawn at their docking port, and logs their sizes | ||
/// This should be a unit test, but too much of our other code breaks during shuttle movement, so not yet, not yet. | ||
/proc/test_whiteship_sizes() | ||
var/obj/docking_port/stationary/port_type = /obj/docking_port/stationary/picked/whiteship | ||
var/datum/turf_reservation/docking_yard = SSmapping.request_turf_block_reservation( | ||
initial(port_type.width), | ||
initial(port_type.height), | ||
1, | ||
) | ||
var/turf/bottom_left = docking_yard.bottom_left_turfs[1] | ||
var/turf/spawnpoint = locate( | ||
bottom_left.x + initial(port_type.dwidth), | ||
bottom_left.y + initial(port_type.dheight), | ||
bottom_left.z, | ||
) | ||
|
||
var/obj/docking_port/stationary/picked/whiteship/port = new(spawnpoint) | ||
var/list/ids = port.shuttlekeys | ||
var/height = 0 | ||
var/width = 0 | ||
var/dheight = 0 | ||
var/dwidth = 0 | ||
var/delta_height = 0 | ||
var/delta_width = 0 | ||
for(var/id in ids) | ||
var/datum/map_template/shuttle/our_template = SSmapping.shuttle_templates[id] | ||
// We do a standard load here so any errors will properly runtimes | ||
var/obj/docking_port/mobile/ship = SSshuttle.action_load(our_template, port) | ||
if(ship) | ||
ship.jumpToNullSpace() | ||
ship = null | ||
// Yes this is very hacky, but we need to both allow loading a template that's too big to be an error state | ||
// And actually get the sizing information from every shuttle | ||
SSshuttle.load_template(our_template) | ||
var/obj/docking_port/mobile/theoretical_ship = SSshuttle.preview_shuttle | ||
if(theoretical_ship) | ||
height = max(theoretical_ship.height, height) | ||
width = max(theoretical_ship.width, width) | ||
dheight = max(theoretical_ship.dheight, dheight) | ||
dwidth = max(theoretical_ship.dwidth, dwidth) | ||
delta_height = max(theoretical_ship.height - theoretical_ship.dheight, delta_height) | ||
delta_width = max(theoretical_ship.width - theoretical_ship.dwidth, delta_width) | ||
theoretical_ship.jumpToNullSpace() | ||
qdel(port, TRUE) | ||
log_world("Whiteship sizing information. Use this to set the docking port, and the map size\n\ | ||
Max Height: [height] \n\ | ||
Max Width: [width] \n\ | ||
Max DHeight: [dheight] \n\ | ||
Max DWidth: [dwidth] \n\ | ||
The following are the safest bet for map sizing. Anything smaller then this could in the worst case not fit in the docking port\n\ | ||
Max Combined Width: [height + dheight] \n\ | ||
Max Combinded Height [width + dwidth]") |
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
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
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 |
---|---|---|
|
@@ -7,3 +7,4 @@ | |
show_to_ghosts = FALSE | ||
silent = TRUE | ||
block_midrounds = FALSE | ||
show_in_roundend = FALSE |
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
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.