Skip to content

Commit

Permalink
Merge pull request #13 from dwasint/parity-3
Browse files Browse the repository at this point in the history
Pre-Release Parity Patch
  • Loading branch information
dwasint authored Apr 21, 2023
2 parents 363a38a + 1c0ed5c commit 7d48656
Show file tree
Hide file tree
Showing 1,039 changed files with 370,948 additions and 8,769 deletions.
43 changes: 21 additions & 22 deletions .github/CODEOWNERS
Validating CODEOWNERS rules …
Original file line number Diff line number Diff line change
Expand Up @@ -6,26 +6,23 @@

# MAINTAINERS

# Cyberboss
# Dominion/Cyberboss

/.github/workflows/update_tgs_dmapi.yml @Cyberboss
/.tgs.yml @Cyberboss
/code/world.dm @Cyberboss
/code/__DEFINES/tgs.config.dm @Cyberboss
/code/__DEFINES/tgs.dm @Cyberboss
/code/__DEFINES/_globals.dm @Cyberboss
/code/__HELPERS/chat.dm @Cyberboss
/code/__HELPERS/jatum.dm @Cyberboss
/code/game/world.dm @Cyberboss
/code/controllers/subsystem/atoms.dm @Cyberboss
/code/controllers/subsystem/mapping.dm @Cyberboss
/code/controllers/globals.dm @Cyberboss
/code/datums/helper_datums/getrev.dm @Cyberboss
/code/datums/map_config.dm @Cyberboss
/code/datums/forced_movement.dm @Cyberboss
/code/datums/holocall.dm @Cyberboss
/code/modules/admin/verbs/adminhelp.dm @Cyberboss
/code/modules/admin/verbs/adminpm.dm @Cyberboss
/code/modules/mapping/ @Cyberboss
/tools/tgs_scripts/ @Cyberboss
/code/modules/tgs/ @Cyberboss
/tools/tgs_test/ @Cyberboss

# Dragomagol/Tattle

/code/__HELPERS/logging/ @dragomagol

# Fikou

Expand Down Expand Up @@ -128,6 +125,16 @@
/code/modules/wiremod/ @Watermelon914
/code/modules/antagonists/traitor/ @Watermelon914

# ZephyrTFA

/code/__HELPERS/admin_verb.dm @ZephyrTFA
/code/controllers/subsystem/admin_verbs.dm @ZephyrTFA
/code/datums/json_savefile.dm @ZephyrTFA
/code/datums/armor/ @ZephyrTFA
/code/modules/admin/verbs/ @ZephyrTFA
/code/modules/logging/ @ZephyrTFA


# CONTRIBUTORS

# Cobby
Expand Down Expand Up @@ -173,21 +180,14 @@
/code/modules/atmospherics/ @Pickle-Coding
/code/modules/power/ @Pickle-Coding

# ZephyrTFA

/code/__HELPERS/admin_verb.dm @ZephyrTFA
/code/controllers/subsystem/admin_verbs.dm @ZephyrTFA
/code/datums/json_savefile.dm @ZephyrTFA
/code/datums/armor/ @ZephyrTFA
/code/modules/admin/verbs/ @ZephyrTFA

# MULTIPLE OWNERS

/_maps/ @EOBGames @Maurukas @MMMiracles @san7890 @ShizCalev
/icons/ @Imaginos16 @Krysonism @Twaticus
/icons/ass/ @Ghilker @tralezab

/code/__DEFINES/atmospherics/ @Ghilker @LemonInTheDark
/code/__HELPERS/logging/ @dragomagol @ZephyrTFA
/code/controllers/subsystem/air.dm @LemonInTheDark @MrStonedOne
/code/modules/atmospherics/ @Ghilker @LemonInTheDark
/code/modules/client/preferences.dm @Mothblocks @ZephyrTFA
Expand All @@ -197,8 +197,7 @@
/code/modules/jobs/job_types/paramedic.dm @ExcessiveUseOfCobblestone @Ryll-Ryll
/code/modules/surgery/ @ExcessiveUseOfCobblestone @Ryll-Ryll
/tools/build/ @MrStonedOne @stylemistake
/tools/LinuxOneShot/ @Cyberboss @MrStonedOne
/tools/tgs4_scripts/ @Cyberboss @MrStonedOne
/tools/tgs_scripts/ @Cyberboss @MrStonedOne

/tools/WebhookProcessor/ @BraveMole @TiviPlus

Expand Down
6 changes: 2 additions & 4 deletions .github/PULL_REQUEST_TEMPLATE.md
Original file line number Diff line number Diff line change
Expand Up @@ -20,10 +20,8 @@ del: Removed old things
qol: made something easier to use
balance: rebalanced something
fix: fixed a few things
soundadd: added a new sound thingy
sounddel: removed an old sound thingy
imageadd: added some icons and images
imagedel: deleted some icons and images
sound: added/modified/removed audio or sound effects
image: added/modified/removed some icons or images
spellcheck: fixed a few typos
code: changed some code
refactor: refactored some code
Expand Down
8 changes: 4 additions & 4 deletions .github/guides/STANDARDS.md
Original file line number Diff line number Diff line change
Expand Up @@ -214,7 +214,7 @@ In a lot of our older code, `process()` is frame dependent. Here's some example
var/health = 100
var/health_loss = 4 //We want to lose 2 health per second, so 4 per SSmobs process
/mob/testmob/process(delta_time) //SSmobs runs once every 2 seconds
/mob/testmob/process(seconds_per_tick) //SSmobs runs once every 2 seconds
health -= health_loss
```

Expand All @@ -229,11 +229,11 @@ How do we solve this? By using delta-time. Delta-time is the amount of seconds y
var/health = 100
var/health_loss = 2 //Health loss every second
/mob/testmob/process(delta_time) //SSmobs runs once every 2 seconds
health -= health_loss * delta_time
/mob/testmob/process(seconds_per_tick) //SSmobs runs once every 2 seconds
health -= health_loss * seconds_per_tick
```

In the above example, we made our health_loss variable a per second value rather than per process. In the actual process() proc we then make use of deltatime. Because SSmobs runs once every 2 seconds. Delta_time would have a value of 2. This means that by doing health_loss * delta_time, you end up with the correct amount of health_loss per process, but if for some reason the SSmobs subsystem gets changed to be faster or slower in a PR, your health_loss variable will work the same.
In the above example, we made our health_loss variable a per second value rather than per process. In the actual process() proc we then make use of deltatime. Because SSmobs runs once every 2 seconds. Delta_time would have a value of 2. This means that by doing health_loss * seconds_per_tick, you end up with the correct amount of health_loss per process, but if for some reason the SSmobs subsystem gets changed to be faster or slower in a PR, your health_loss variable will work the same.

For example, if SSmobs is set to run once every 4 seconds, it would call process once every 4 seconds and multiply your health_loss var by 4 before subtracting it. Ensuring that your code is frame independent.

Expand Down
3 changes: 3 additions & 0 deletions .github/guides/STYLE.md
Original file line number Diff line number Diff line change
Expand Up @@ -211,6 +211,9 @@ While DM allows other ways of declaring variables, this one should be used for c
### Use descriptive and obvious names
Optimize for readability, not writability. While it is certainly easier to write `M` than `victim`, it will cause issues down the line for other developers to figure out what exactly your code is doing, even if you think the variable's purpose is obvious.

#### Any variable or argument that holds time and uses a unit of time other than decisecond must include the unit of time in the name.
For example, a proc argument named `seconds_per_tick` that marks the seconds between fires could confuse somebody who assumes it stores deciseconds. Naming it `seconds_per_tick_seconds` makes this clearer, naming it `seconds_per_tick` makes its purpose even clearer.

### Don't use abbreviations
Avoid variables like C, M, and H. Prefer names like "user", "victim", "weapon", etc.

Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/update_tgs_dmapi.yml
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ jobs:
source_branch: "tgs-dmapi-update"
destination_branch: "master"
pr_title: "Automatic TGS DMAPI Update"
pr_body: "This pull request updates the TGS DMAPI to the latest version. Please note any breaking or unimplemented changes before merging."
pr_body: "This pull request updates the TGS DMAPI to the latest version. Please note any changes that may be breaking or unimplemented in your codebase by checking what changes are in the definitions file: code/__DEFINES/tgs.dm before merging."
pr_label: "Tools"
pr_allow_empty: false
github_token: ${{ secrets.COMFY_ORANGE_PAT }}
5 changes: 2 additions & 3 deletions _maps/RandomRuins/IceRuins/icemoon_surface_engioutpost.dmm
Original file line number Diff line number Diff line change
Expand Up @@ -44,9 +44,8 @@
dir = 8
},
/obj/structure/cable,
/obj/machinery/power/apc/auto_name/directional/east{
start_charge = 0
},
/obj/machinery/power/apc/auto_name/directional/east,
/obj/effect/mapping_helpers/apc/no_charge,
/turf/open/floor/iron,
/area/ruin/planetengi)
"au" = (
Expand Down
10 changes: 4 additions & 6 deletions _maps/RandomRuins/IceRuins/icemoon_surface_pizza.dmm
Original file line number Diff line number Diff line change
Expand Up @@ -260,9 +260,8 @@
/area/ruin/pizzeria/kitchen)
"jY" = (
/obj/structure/cable,
/obj/machinery/power/apc/auto_name/directional/north{
start_charge = 0
},
/obj/machinery/power/apc/auto_name/directional/north,
/obj/effect/mapping_helpers/apc/no_charge,
/obj/effect/decal/cleanable/ash,
/obj/effect/turf_decal/tile/blue/opposingcorners{
dir = 1
Expand Down Expand Up @@ -563,9 +562,8 @@
/area/ruin/pizzeria/kitchen)
"yS" = (
/obj/structure/cable,
/obj/machinery/power/apc/auto_name/directional/north{
start_charge = 0
},
/obj/machinery/power/apc/auto_name/directional/north,
/obj/effect/mapping_helpers/apc/no_charge,
/obj/effect/turf_decal/tile/blue/opposingcorners{
dir = 1
},
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@
},
/area/ruin/powered/shuttle)
"qd" = (
/mob/living/simple_animal/hostile/tree,
/mob/living/basic/tree,
/turf/open/misc/asteroid/snow/icemoon,
/area/icemoon/surface/outdoors/nospawn)
"sF" = (
Expand Down
9 changes: 4 additions & 5 deletions _maps/RandomRuins/LavaRuins/lavaland_surface_pizzaparty.dmm
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,8 @@
"ah" = (
/obj/structure/sink/directional/north,
/obj/structure/mirror/directional/south,
/obj/item/instrument/saxophone/spectral,
/obj/item/instrument/saxophone,
/obj/item/clothing/head/helmet/skull,
/turf/open/floor/iron/freezer/lavaland,
/area/ruin/unpowered)
"aq" = (
Expand Down Expand Up @@ -386,10 +387,8 @@
/obj/effect/decal/cleanable/cobweb,
/obj/effect/spawner/random/decoration/glowstick,
/obj/effect/spawner/random/decoration/paint,
/obj/machinery/power/apc/unlocked{
pixel_y = 25;
dir = 1
},
/obj/machinery/power/apc/auto_name/directional/north,
/obj/effect/mapping_helpers/apc/unlocked,
/turf/open/floor/plating/lavaland_atmos,
/area/ruin/unpowered)
"xP" = (
Expand Down
61 changes: 18 additions & 43 deletions _maps/RandomRuins/LavaRuins/lavaland_surface_syndicate_base1.dmm
Original file line number Diff line number Diff line change
Expand Up @@ -325,11 +325,8 @@
/area/ruin/syndicate_lava_base/cargo)
"dA" = (
/obj/structure/closet/l3closet,
/obj/machinery/power/apc/syndicate{
dir = 8;
name = "Chemistry APC";
pixel_x = -25
},
/obj/machinery/power/apc/auto_name/directional/west,
/obj/effect/mapping_helpers/apc/syndicate_access,
/obj/machinery/atmospherics/pipe/smart/manifold4w/scrubbers/hidden/layer4{
dir = 6
},
Expand Down Expand Up @@ -493,11 +490,8 @@
/area/ruin/syndicate_lava_base/cargo)
"ef" = (
/obj/machinery/light/small/directional/north,
/obj/machinery/power/apc/syndicate{
dir = 1;
name = "Cargo Bay APC";
pixel_y = 25
},
/obj/machinery/power/apc/auto_name/directional/north,
/obj/effect/mapping_helpers/apc/syndicate_access,
/obj/structure/closet/emcloset/anchored,
/obj/effect/decal/cleanable/dirt,
/obj/structure/cable,
Expand Down Expand Up @@ -720,11 +714,8 @@
pixel_y = 2
},
/obj/item/storage/box/syringes,
/obj/machinery/power/apc/syndicate{
dir = 1;
name = "Virology APC";
pixel_y = 25
},
/obj/machinery/power/apc/auto_name/directional/north,
/obj/effect/mapping_helpers/apc/syndicate_access,
/obj/effect/decal/cleanable/dirt,
/obj/structure/cable,
/turf/open/floor/iron/white/side{
Expand Down Expand Up @@ -1515,11 +1506,8 @@
/turf/open/floor/plating/lavaland_atmos,
/area/lavaland/surface/outdoors)
"ji" = (
/obj/machinery/power/apc/syndicate{
dir = 8;
name = "Primary Hallway APC";
pixel_x = -25
},
/obj/machinery/power/apc/auto_name/directional/west,
/obj/effect/mapping_helpers/apc/syndicate_access,
/obj/structure/cable,
/obj/effect/turf_decal/tile/red/half/contrasted{
dir = 8
Expand Down Expand Up @@ -2081,10 +2069,8 @@
"mv" = (
/obj/structure/table/wood,
/obj/machinery/light/small/directional/south,
/obj/machinery/power/apc/syndicate{
name = "Bar APC";
pixel_y = -25
},
/obj/machinery/power/apc/auto_name/directional/south,
/obj/effect/mapping_helpers/apc/syndicate_access,
/obj/structure/cable,
/turf/open/floor/wood,
/area/ruin/syndicate_lava_base/bar)
Expand Down Expand Up @@ -2271,11 +2257,8 @@
"oc" = (
/obj/machinery/light/small/directional/south,
/obj/structure/extinguisher_cabinet/directional/south,
/obj/machinery/power/apc/syndicate{
dir = 4;
name = "Medbay APC";
pixel_x = 25
},
/obj/machinery/power/apc/auto_name/directional/east,
/obj/effect/mapping_helpers/apc/syndicate_access,
/obj/effect/decal/cleanable/dirt,
/obj/structure/cable,
/turf/open/floor/iron/white/side{
Expand Down Expand Up @@ -2418,11 +2401,8 @@
dir = 4
},
/obj/effect/decal/cleanable/dirt,
/obj/machinery/power/apc/syndicate{
dir = 1;
name = "Arrival Hallway APC";
pixel_y = 25
},
/obj/machinery/power/apc/auto_name/directional/north,
/obj/effect/mapping_helpers/apc/syndicate_access,
/obj/structure/cable,
/obj/machinery/atmospherics/pipe/smart/manifold4w/supply/hidden/layer2,
/obj/effect/turf_decal/tile/red/half/contrasted{
Expand Down Expand Up @@ -3570,11 +3550,8 @@
/area/ruin/syndicate_lava_base/dormitories)
"JQ" = (
/obj/machinery/light/small/directional/north,
/obj/machinery/power/apc/syndicate{
dir = 1;
name = "Engineering APC";
pixel_y = 25
},
/obj/machinery/power/apc/auto_name/directional/north,
/obj/effect/mapping_helpers/apc/syndicate_access,
/obj/effect/decal/cleanable/dirt,
/obj/structure/cable,
/turf/open/floor/iron,
Expand Down Expand Up @@ -4372,10 +4349,8 @@
/obj/machinery/atmospherics/pipe/smart/manifold4w/scrubbers/hidden/layer4{
dir = 4
},
/obj/machinery/power/apc/syndicate{
name = "Dormitories APC";
pixel_y = -25
},
/obj/machinery/power/apc/auto_name/directional/south,
/obj/effect/mapping_helpers/apc/syndicate_access,
/obj/structure/cable,
/obj/machinery/atmospherics/pipe/smart/manifold4w/supply/hidden/layer2,
/obj/effect/turf_decal/tile/neutral,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -77,10 +77,8 @@
/obj/structure/chair{
dir = 8
},
/obj/machinery/power/apc/syndicate{
name = "Telecommunications APC";
pixel_y = -25
},
/obj/machinery/power/apc/auto_name/directional/south,
/obj/effect/mapping_helpers/apc/syndicate_access,
/obj/structure/cable,
/obj/effect/turf_decal/tile/neutral/fourcorners,
/turf/open/floor/iron/dark,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -31,10 +31,8 @@
/obj/effect/turf_decal/siding/wood{
dir = 4
},
/obj/machinery/power/apc/syndicate{
name = "Telecommunications APC";
pixel_y = -25
},
/obj/machinery/power/apc/auto_name/directional/south,
/obj/effect/mapping_helpers/apc/syndicate_access,
/turf/open/floor/wood,
/area/ruin/syndicate_lava_base/telecomms)
"k" = (
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -46,10 +46,8 @@
/obj/structure/chair{
dir = 8
},
/obj/machinery/power/apc/syndicate{
name = "Telecommunications APC";
pixel_y = -25
},
/obj/machinery/power/apc/auto_name/directional/south,
/obj/effect/mapping_helpers/apc/syndicate_access,
/obj/structure/cable,
/turf/open/floor/iron,
/area/ruin/syndicate_lava_base/telecomms)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -272,9 +272,8 @@
"X" = (
/obj/effect/decal/cleanable/dirt,
/obj/structure/cable,
/obj/machinery/power/apc/auto_name/directional/south{
req_access = list("syndicate")
},
/obj/machinery/power/apc/auto_name/directional/south,
/obj/effect/mapping_helpers/apc/syndicate_access,
/obj/effect/turf_decal/tile/neutral/fourcorners,
/turf/open/floor/iron/dark,
/area/ruin/syndicate_lava_base/testlab)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,8 @@
/area/ruin/syndicate_lava_base/testlab)
"be" = (
/obj/structure/cable,
/obj/machinery/power/apc/auto_name/directional/south{
req_access = list("syndicate")
},
/obj/machinery/power/apc/auto_name/directional/south,
/obj/effect/mapping_helpers/apc/syndicate_access,
/turf/open/floor/iron/dark,
/area/ruin/syndicate_lava_base/testlab)
"bs" = (
Expand Down
Loading

0 comments on commit 7d48656

Please sign in to comment.