Skip to content

Commit

Permalink
Merge branch 'master' into brainrot-filter
Browse files Browse the repository at this point in the history
  • Loading branch information
Legendaxe authored Jul 30, 2024
2 parents d2a26d5 + 4d93987 commit 4db2537
Show file tree
Hide file tree
Showing 1,521 changed files with 50,901 additions and 35,943 deletions.
4 changes: 1 addition & 3 deletions .github/CONTRIBUTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -40,9 +40,7 @@ actual development.

### Pull Request Guidelines

- Pull requests should be atomic; Make one commit for each distinct change, so if a part of a pull request needs to be removed/changed, you may simply modify that single commit. Due to limitations of the engine, this may not always be possible; but do try your best.

- Keep your pull requests small and reviewable whenever possible. Do not bundle unrelated fixes even if not bundling them generates more pull requests. In case of mapping PRs that add features - consult a member of the development team on whether it would be appropriate to split up the PR to add the feature to multiple maps individually.
- Keep your pull requests atomic. Each pull request should strive to address one primary goal, and should not include fixes or changes that aren't related to the main purpose of the pull request. Unrelated changes should be applied in new pull requests. In case of mapping PRs that add features - consult a member of the development team on whether it would be appropriate to split up the PR to add the feature to multiple maps individually.

- Document and explain your pull requests thoroughly. Failure to do so will delay a PR as we question why changes were made. This is especially important if you're porting a PR from another codebase (i.e. TG) and divert from the original. Explaining with single comment on why you've made changes will help us review the PR faster and understand your decision making process.

Expand Down
93 changes: 68 additions & 25 deletions .github/labeler.yml
Original file line number Diff line number Diff line change
@@ -1,39 +1,82 @@
'TGUI':
- 'tgui/**'
- changed-files:
- any-glob-to-any-file: ['tgui/**']

'Звук':
- '**/*.ogg'
':sound: Звук':
- changed-files:
- any-glob-to-any-file: ['**/*.ogg']

'Изменение Карты':
- '**/*.dmm'
':world_map: Изменение Карты':
- all:
- changed-files:
- any-glob-to-any-file: ['**/*.dmm']
- all-globs-to-all-files: ['!_maps/map_files220/stations/*.dmm']

'Инструменты':
- '.gihub/workflows/**'
- 'tools/**'
'Кибериада':
- changed-files:
- any-glob-to-any-file: ['_maps/map_files220/stations/boxstation.dmm']

'Керберос':
- '_maps/map_files220/stations/deltastation.dmm'

'Кибериада':
- '_maps/map_files220/stations/boxstation.dmm'
- changed-files:
- any-glob-to-any-file: ['_maps/map_files220/stations/deltastation.dmm']

'Цереброн':
- '_maps/map_files220/stations/metastation.dmm'
- changed-files:
- any-glob-to-any-file: ['_maps/map_files220/stations/metastation.dmm']

'Фаррагус':
- changed-files:
- any-glob-to-any-file: ['_maps/map_files220/stations/cerestation.dmm']

':paintbrush: Спрайты':
- changed-files:
- any-glob-to-any-file: ['**/*.dmi']

':guitar: Инструменты':
- changed-files:
- any-glob-to-any-file: ['.gihub/**', 'tools/**', '.vscode/**', '.bin/**']

':floppy_disk: Изменение конфига':
- changed-files:
- any-glob-to-any-file: ['config/**']

':neckbeard: Документация':
- changed-files:
- any-glob-to-any-file: ['**/*.md']

':cd: SQL':
- changed-files:
- any-glob-to-any-file: ['SQL/**']

':feelsgood: Частичная модульность':
- all:
- changed-files:
- any-glob-to-any-file: ['code/**', 'icons/**', 'sounds/**', '_maps/map_files/**', 'tgui/**']
- any-glob-to-any-file: [modular_ss220/**]
- base-branch: 'master'
- head-branch: '!merge-upstream'

'НЕ МОДУЛЬНО':
- all: ['code/**']
':finnadie: НЕ МОДУЛЬНО':
- all:
- changed-files:
- any-glob-to-any-file: ['code/**', 'icons/**', 'sounds/**', '_maps/map_files/**']
- all-globs-to-all-files: '!modular_ss220/**'
- base-branch: 'master'
- head-branch: '!merge-upstream'

'Спрайты':
- '**/*.dmi'
':pray: Слияние с восходящим потоком':
- all:
- base-branch: 'master'
- head-branch: 'merge-upstream'

'Требуется изменение конфига':
- 'config/**'
':pencil: Перевод':
- base-branch: 'translate'

'Документация':
- '**/*.md'
':wrench: Фикс':
- head-branch: ['^fix', 'fix']

'Частичная модульность':
- all: ['code/**', modular_ss220/**]
':trollface: Фича':
- head-branch: ['^feat', 'feat']

'SQL':
- 'SQL/**'
':shipit: Улучшение':
- head-branch: ['^tweak', 'tweak']
2 changes: 1 addition & 1 deletion .github/workflows/label.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ jobs:
labeler:
runs-on: ubuntu-latest
steps:
- uses: actions/labeler@v4
- uses: actions/labeler@v5
with:
repo-token: "${{ secrets.GITHUB_TOKEN }}"
sync-labels: true
6 changes: 3 additions & 3 deletions .github/workflows/label_stale.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,6 @@ jobs:
days-before-issue-stale: 60
days-before-close: 7
days-before-issue-close: 14
exempt-issue-labels: '"Stale Exempt"'
exempt-pr-labels: '"Stale Exempt", "-Status: Awaiting approval", "-Status: Awaiting Merge", "-Status: Awaiting type assignment"'
any-of-issue-labels: '"Need Verification", "Cannot Reproduce", "Not A Bug", "(99% Sure) Not A Bug"'
exempt-issue-labels: 'Stale Exempt'
exempt-pr-labels: 'Stale Exempt, -Status: Awaiting approval, -Status: Awaiting Merge, -Status: Awaiting type assignment'
any-of-issue-labels: 'Need Verification, Cannot Reproduce, Not A Bug, (99% Sure) Not A Bug'
49 changes: 49 additions & 0 deletions .github/workflows/wiki_label.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,49 @@
name: 'PR Wiki Label'
on:
issue_comment:
types: [created]

jobs:
wiki-label:
runs-on: ubuntu-latest
if: github.event.issue.pull_request && github.event.comment.body == '!wiki_label'
permissions:
issues: write
pull-requests: write
steps:
- name: Check commenter authorization
id: check-auth
run: |
IFS=',' read -ra WIKI_MANAGERS <<< "${{ vars.WIKI_MANAGERS }}"
COMMENTER_ID="${{ github.event.comment.user.id }}"
if [[ " ${WIKI_MANAGERS[@]} " =~ " ${COMMENTER_ID} " ]]; then
echo "authorized=true" >> $GITHUB_OUTPUT
else
echo "authorized=false" >> $GITHUB_OUTPUT
fi
- name: Add thumbs up reaction and Wiki label
if: steps.check-auth.outputs.authorized == 'true'
run: |
# Add thumbs up reaction
curl -X POST \
-H "Authorization: token ${{ secrets.GITHUB_TOKEN }}" \
-H "Accept: application/vnd.github.v3+json" \
"https://api.github.com/repos/${{ github.repository }}/issues/comments/${{ github.event.comment.id }}/reactions" \
-d '{"content":"+1"}'
# Add label to PR
curl -X POST \
-H "Authorization: token ${{ secrets.GITHUB_TOKEN }}" \
-H "Accept: application/vnd.github.v3+json" \
"https://api.github.com/repos/${{ github.repository }}/issues/${{ github.event.issue.number }}/labels" \
-d '["Requires Wiki Update"]'
- name: Unauthorized user thumbs down reaction
if: steps.check-auth.outputs.authorized == 'false'
run: |
curl -X POST \
-H "Authorization: token ${{ secrets.GITHUB_TOKEN }}" \
-H "Accept: application/vnd.github.v3+json" \
"https://api.github.com/repos/${{ github.repository }}/issues/comments/${{ github.event.comment.id }}/reactions" \
-d '{"content":"-1"}'
18 changes: 13 additions & 5 deletions .vscode/launch.json
Original file line number Diff line number Diff line change
@@ -1,18 +1,26 @@
{
"version": "0.2.0",
"configurations": [
{
{
"type": "byond",
"request": "launch",
"name": "Build & DS Debug",
"preLaunchTask": "dm: build - ${command:CurrentDME}",
"dmb": "${workspaceFolder}/${command:CurrentDMB}"
},
{
},
{
"type": "byond",
"request": "launch",
"name": "Build & DD Debug",
"preLaunchTask": "dm: build - ${command:CurrentDME}",
"dmb": "${workspaceFolder}/${command:CurrentDMB}",
"dreamDaemon": true
},
{
"type": "byond",
"request": "launch",
"name": "DS Debug",
"dmb": "${workspaceFolder}/${command:CurrentDMB}"
}
}
]
}
}
10 changes: 5 additions & 5 deletions .vscode/settings.json
Original file line number Diff line number Diff line change
Expand Up @@ -20,27 +20,27 @@
],

"[javascript]": {
"editor.rulers": [80],
"editor.rulers": [120],
"editor.defaultFormatter": "esbenp.prettier-vscode",
"editor.formatOnSave": true
},
"[javascriptreact]": {
"editor.rulers": [80],
"editor.rulers": [120],
"editor.defaultFormatter": "esbenp.prettier-vscode",
"editor.formatOnSave": true
},
"[typescript]": {
"editor.rulers": [80],
"editor.rulers": [120],
"editor.defaultFormatter": "esbenp.prettier-vscode",
"editor.formatOnSave": true
},
"[typescriptreact]": {
"editor.rulers": [80],
"editor.rulers": [120],
"editor.defaultFormatter": "esbenp.prettier-vscode",
"editor.formatOnSave": true
},
"[scss]": {
"editor.rulers": [80],
"editor.rulers": [120],
"editor.defaultFormatter": "esbenp.prettier-vscode",
"editor.formatOnSave": true
},
Expand Down
4 changes: 4 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
> [!IMPORTANT]
> We are currently in a period of focus on "Quality releases", this means no new balance or feature PRs are permitted without prior approval.</br>
> [For more info, see the following discord post on our public discord](https://discord.com/channels/145533722026967040/499000353312735233/1256632472196878337)
<a href="#"><img src=".github/assets/paradise.png" alt="Paradise Station"></a>

## <p align="center">Добро пожаловать в репозиторий Paradise WyccStation SS220 по игре [Space Station 13](https://spacestation13.com/).</p>
Expand Down
2 changes: 1 addition & 1 deletion SQL/paradise_schema.sql
Original file line number Diff line number Diff line change
Expand Up @@ -508,7 +508,7 @@ CREATE TABLE `connection_log` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`datetime` datetime NOT NULL,
`ckey` varchar(32) NOT NULL,
`ip` varchar(32) NOT NULL,
`ip` INT UNSIGNED NOT NULL,
`computerid` varchar(32) NOT NULL,
`server_id` VARCHAR(50) NULL DEFAULT NULL,
`result` ENUM('ESTABLISHED','DROPPED - IPINTEL','DROPPED - BANNED','DROPPED - INVALID') NOT NULL DEFAULT 'ESTABLISHED' COLLATE 'utf8mb4_general_ci',
Expand Down
17 changes: 17 additions & 0 deletions SQL/updates/57-58.sql
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
# Updating DB from 57-58 ~Burza
# Changes the data type for the `ip` column in `connection_log` from VARCHAR to INT

# Creates a temporary column for our new data type
ALTER TABLE `connection_log`
ADD COLUMN `ip_int` INT UNSIGNED NULL;

# Copies the data from the `ip` column to `ip_int` as our new data type
UPDATE `connection_log`
SET `ip_int` = INET_ATON(`ip`);

# Deletes the old `ip` column from the table
ALTER TABLE `connection_log` DROP COLUMN `ip`;

# Updates the name of the temporary column to take place of the original
ALTER TABLE `connection_log`
CHANGE COLUMN `ip_int` `ip` INT UNSIGNED NOT NULL AFTER `ckey`;
2 changes: 1 addition & 1 deletion _build_dependencies.sh
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# This file has all the information on what versions of libraries are thrown into the code
# For dreamchecker
export SPACEMANDMM_TAG=suite-1.8
export SPACEMANDMM_TAG=suite-1.9
# For TGUI
export NODE_VERSION=20
# Stable Byond Major
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,7 @@
/area/ruin/powered/snow_cabin)
"ax" = (
/obj/structure/table/wood,
/obj/item/food/snacks/beans,
/obj/item/food/beans,
/turf/simulated/floor/wood,
/area/ruin/powered/snow_cabin)
"ay" = (
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -665,7 +665,7 @@
/area/lavaland/surface/outdoors)
"ie" = (
/obj/structure/table,
/obj/item/food/snacks/badrecipe,
/obj/item/food/badrecipe,
/turf/simulated/floor/plating/lavaland_air,
/area/ruin/unpowered/althland_excavation)
"iv" = (
Expand Down Expand Up @@ -1088,8 +1088,8 @@
"Cs" = (
/obj/effect/decal/cleanable/dirt,
/obj/structure/table_frame,
/obj/item/food/snacks/badrecipe,
/obj/item/food/snacks/badrecipe{
/obj/item/food/badrecipe,
/obj/item/food/badrecipe{
pixel_y = 14;
pixel_x = 14
},
Expand Down Expand Up @@ -1313,7 +1313,7 @@
/area/lavaland/surface/outdoors)
"OX" = (
/obj/structure/table_frame,
/obj/item/food/snacks/badrecipe,
/obj/item/food/badrecipe,
/turf/simulated/floor/plating/lavaland_air,
/area/ruin/unpowered/althland_excavation)
"Pe" = (
Expand Down
Loading

0 comments on commit 4db2537

Please sign in to comment.