Skip to content

Commit

Permalink
Merge upstream 03.04.2024 (#1149)
Browse files Browse the repository at this point in the history
<!-- Пишите **НИЖЕ** заголовков и **ВЫШЕ** комментариев, иначе что то
может пойти не так. -->
<!-- Вы можете прочитать Contributing.MD, если хотите узнать больше. -->

## Что этот PR делает
Мержит оффов.
<!-- Вкратце опишите изменения, которые вносите. -->
<!-- Опишите **все** изменения, так как противное может сказаться на
рассмотрении этого PR'а! -->
<!-- Если вы исправляете Issue, добавьте "Fixes #xxxx" (где xxxx - номер
Issue) где-нибудь в описании PR'а. Это автоматически закроет Issue после
принятия PR'а. -->

## Тестирование
Все наши карты загружаются.

## Changelog

:cl: Maxiemar
add: Мержим оффов.
add: В меню создания персонажа появилась возможность выбрать тип мозга
для КПБ.
add: Добавлен протоадреналиновый биочип (18 ТК). Снимает стан,
восстанавливает стамину. Не ускоряет. Не лечит. Только несколько секунд
антистана. 1 использование.
add: Клоунские ботинки можно закинуть в стиралку с мелком, чтобы придать
им вид нормальных ботинок.
add: Борги научились изменять количество вещества, переливаемое за один
клик из их емкостей.
add: Менторам добавлена пачка заготовленных ответов на тикеты.
add: Каждому главе добавлено по своей собственной ручке, появляются в
ПДА. Также добавлена ручка в аплинк (1 ТК).
add: Добавлены вторичные цели. Запрашиваются через консоли запросов в
отделах. Каждый человек может иметь одновременно не более одной цели. В
данный момент доступны в Баре, Кухне, Ботанике, Робототехнике, Химии РНД
и Химии меда.
add: Добавлены личные ящики. Как шкафчики, но ящики. Используются для
отправки вторичных целей через карго, возвращаются на обратном пути.
Можно заказать 6 ящиков в карго за 100 кредитов.
add: Добавлен режим этикетирования цели для ручного этикетировщика. Для
активации режима проведите картой по этикетировщику. Используется для
нанесения этикеток на вещи, которые слишком велики, для того чтобы
влезть в личный ящик. Только так цель, например, на постройку Рипли,
может быть выполнена.
add: Статистика карго и вторичных целей отслеживается и будет отображена
в конце раундов.
tweak: Администрация может изменять вторичные цели тем же способом, что
и основные цели на смену.
tweak: АВД, детектив, варден и библиотекарь начинают раунд с цветной
ручкой в своих ПДА.
tweak: Тряпкой теперь можно протирать кухонную технику.
tweak: Вирусы, лечащиеся этанолом, теперь также лечатся употреблением
любого алкоголя.
tweak: Шкафчик мима теперь беззвучен.
tweak: Кнопки действий снова можно заблокировать/разблокировать с
помощью Ctrl+Click.
fix: Переключение между z-уровнями в Crew Monitor теперь должно работать
исправно.
fix: Госты теперь могут переключаться между игроками через Crew Monitor.
fix: ГП больше не отмечен в идентификационной консоли дважды.
fix: Обновлен забытый спрайт гарнитуры отдела сервиса.
fix: Исправлены кнопки действий у мегафауны.
fix: Исправлена логика кровотечений во время операций. Бинт больше не
прекращает кровотечение вскрытой части тела.
fix: Кибернетические уши, выбранные в меню создания персонажа, теперь
применяются корректно.
fix: Те же последние слова больше не произносятся при следующей смерти.
fix: Автоклонерка греев из аплинка больше не превращает греев в людей.
fix: Мильтитайловые объекты теперь должны перевозиться на шаттлах без
смещения.
imageadd: Спрайты всех ручек были перерисованы.
/:cl:

<!-- Оба :cl:'а должны быть на месте, что-бы чейнджлог работал! Вы
можете написать свой ник справа от первого :cl:, если хотите. Иначе
будет использован ваш ник на ГитХабе. -->
<!-- Вы можете использовать несколько записей с одинаковым префиксом
(Они используются только для иконки в игре) и удалить ненужные. Помните,
что чейнджлог должен быть понятен обычным игроком. -->
<!-- Если чейнджлог не влияет на игроков(например, это рефактор), вы
можете исключить всю секцию. -->
  • Loading branch information
Legendaxe committed Apr 3, 2024
2 parents b15e2da + f219093 commit 85da847
Show file tree
Hide file tree
Showing 300 changed files with 4,980 additions and 2,333 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,7 @@ jobs:
strategy:
fail-fast: false # Let all map tests run to completion
matrix:
maptype: ['/datum/map/cyberiad', '/datum/map/delta', '/datum/map/metastation', '/datum/map/cerestation']
maptype: ['/datum/map/boxstation', '/datum/map/deltastation', '/datum/map/metastation', '/datum/map/cerestation']
byondtype: ['STABLE']
services:
mariadb:
Expand Down
24 changes: 24 additions & 0 deletions .github/workflows/label_stale.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
name: Label and close stale PRs and Issues

on:
schedule:
- cron: '0 0 * * *' # Runs at midnight UTC every day

jobs:
stale-prs:
runs-on: ubuntu-latest
steps:
- name: Seek and destroy stale PRs and Issues
uses: actions/stale@v9
with:
stale-pr-message: 'This pull request seems to be stale as there have been no changes in 14 days, please make changes within 7 days or the PR will be closed. If you believe this is a mistake, please inform a development team member on Discord.'
close-pr-message: 'This pull request has not received any updates since being marked stale, and as such is now being automatically closed. Please feel free to re-open this pull request or open a new one once you have new updates.'
stale-issue-message: 'This issue either requires verification or is unreproducible, but has had no updates for 60 days. Please provide an update within 14 days or this issue will be closed. If you believe this is a mistake, please contact an issue manager on Discord.'
close-issue-message: 'This issue was marked as stale, yet no changes have been observed in the specified time. The issue has been closed.'
days-before-stale: 14
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"'
43 changes: 34 additions & 9 deletions .github/workflows/merge_upstream_master.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
name: Merge Upstream Master
on:
issue_comment:
types: [created]
types: created

jobs:
merge-upstream:
Expand All @@ -15,13 +15,30 @@ jobs:
runs-on: ubuntu-latest
steps:
- id: create_token
uses: actions/create-github-app-token@v1
with:
app-id: ${{ secrets.APP_ID }}
private-key: ${{ secrets.PRIVATE_KEY }}

- run: echo "GH_TOKEN=${{ steps.create_token.outputs.token }}" >> "$GITHUB_ENV"
- run: echo "FAIL_NOTIFIED=false" >> "$GITHUB_ENV"

- name: Like the comment
run: |
gh api \
--method POST \
-H "Accept: application/vnd.github+json" \
-H "X-GitHub-Api-Version: 2022-11-28" \
/repos/ParadiseSS13/Paradise/issues/comments/${{ github.event.comment.id }}/reactions \
-f content='+1'
- name: PR Data
env:
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: |
pr_json=$(curl -L -s --fail-with-body -H "Authorization: token ${{ github.token }}" ${{ github.event.issue.pull_request.url }})
if [ `jq -r '.maintainer_can_modify' <<<$pr_json` == "false" ] ; then
gh pr comment ${{ github.event.issue.html_url }} --body 'GitHub Actions can not push to the repository without "Allow edits and access to secrets by maintainers" checked.'
echo "FAIL_NOTIFIED=true" >> "$GITHUB_ENV"
exit 1
fi
echo "PR_REPO=`jq -r '.head.repo.full_name' <<<$pr_json`" >> $GITHUB_ENV
Expand All @@ -32,6 +49,7 @@ jobs:
with:
repository: ${{ env.PR_REPO }}
ref: ${{ env.PR_BRANCH }}
token: ${{ env.GH_TOKEN }}

- uses: actions/setup-node@v4
with:
Expand Down Expand Up @@ -73,18 +91,25 @@ jobs:
chmod +x tools/hooks/*.merge tgui/bin/tgui
# Actual Merge
git config user.name github-actions
git config user.email "41898282+github-actions[bot]@users.noreply.github.com"
git config user.name paradisess13[bot]
git config user.email "165046124+paradisess13[bot]@users.noreply.github.com"
git remote add upstream "https://github.com/$BASE_REPOSITORY.git"
git fetch origin "$PR_BRANCH" --depth=$((ahead_by + 1))
git fetch upstream "$BASE_BRANCH" --depth=$((behind_by + 1))
# Check if a workflow file would be modified by the merge (permissions prevent pushes if so)
latest_workflow_commit=$(git log -n 1 --pretty=format:"%H" upstream/$BASE_BRANCH -- .github/workflows)
if ! git branch --contains $latest_workflow_commit | grep -q "$(git rev-parse --abbrev-ref HEAD)"; then
gh pr comment ${{ github.event.issue.html_url }} --body "GitHub Actions can not push to this branch as workflow files have been changed since your branch was last updated. Please update your branch past https://github.com/ParadiseSS13/Paradise/commit/$latest_workflow_commit before using this command again."#
echo "FAIL_NOTIFIED=true" >> "$GITHUB_ENV"
exit 1
fi
git merge FETCH_HEAD
git push origin
- name: Notify Failure
if: failure()
if: failure() && env.FAIL_NOTIFIED != 'true'
run: |
curl -s -H "Authorization: token ${{ github.token }}" \
-X POST -d '{"body": "Merging upstream failed:\nhttps://github.com/${{ github.repository }}/actions/runs/${{ github.run_id }}"}' \
"https://api.github.com/repos/${{ github.repository }}/issues/${{ github.event.issue.number }}/comments"
gh pr comment ${{ github.event.issue.html_url }} -b 'Merging upstream failed, see the action run log for details: https://github.com/${{ github.repository }}/actions/runs/${{ github.run_id }}'
29 changes: 12 additions & 17 deletions .github/workflows/render_nanomaps.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,19 +9,23 @@ on:
- cron: "0 0 * * *"
workflow_dispatch:

permissions:
contents: read

jobs:
generate_maps:
permissions:
contents: write # for Git to git push
pull-requests: write # for repo-sync/pull-request to create pull requests
name: 'Generate NanoMaps'
runs-on: ubuntu-22.04
steps:
- id: create_token
uses: actions/create-github-app-token@v1
with:
app-id: ${{ secrets.APP_ID }}
private-key: ${{ secrets.PRIVATE_KEY }}

- run: echo "GH_TOKEN=${{ steps.create_token.outputs.token }}" >> "$GITHUB_ENV"

- name: 'Update Branch'
uses: actions/checkout@v4
with:
token: ${{ steps.create_token.outputs.token }}

- name: Branch
run: |
Expand All @@ -32,20 +36,11 @@ jobs:
- name: 'Generate Maps'
run: './tools/github-actions/nanomap-renderer-invoker.sh'

- name: 'Commit Maps'
- name: 'Commit Maps and open PR'
run: |
git config --local user.email "[email protected]"
git config --local user.name "NanoMap Generation"
git pull origin master
git commit -m "NanoMap Auto-Update (`date`)" -a || true
git push -f -u origin nanomap-render
- name: Create Pull Request
uses: repo-sync/pull-request@v2
with:
source_branch: "nanomap-render"
destination_branch: "master"
pr_title: "Automatic NanoMap Update"
pr_body: "This pull request updates the server NanoMaps. Please review the diff images before merging."
pr_label: "NanoMaps"
pr_allow_empty: false
gh pr create -t "Automatic NanoMap Update" -b "This pull request updates the server NanoMaps. Please review the diff images before merging." -l "NanoMaps" -H "nanomap-render" -B "master"
1 change: 1 addition & 0 deletions SQL/paradise_schema.sql
Original file line number Diff line number Diff line change
Expand Up @@ -79,6 +79,7 @@ CREATE TABLE `characters` (
`hair_gradient_colour` varchar(7) COLLATE utf8mb4_unicode_ci NOT NULL DEFAULT '#000000',
`hair_gradient_alpha` tinyint(3) UNSIGNED NOT NULL DEFAULT '255',
`custom_emotes` LONGTEXT COLLATE 'utf8mb4_unicode_ci' DEFAULT NULL,
`cyborg_brain_type` ENUM('MMI', 'Robobrain', 'Positronic') NOT NULL DEFAULT 'MMI',
`tts_seed` varchar(32) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
PRIMARY KEY (`id`),
KEY `ckey` (`ckey`)
Expand Down
5 changes: 5 additions & 0 deletions SQL/updates/53-54.sql
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
#Updating SQL from 53 to 54 -Wilk
#Add a choice for what type of brain borgs want to have

ALTER TABLE `characters`
ADD COLUMN `cyborg_brain_type` VARCHAR(11) NOT NULL DEFAULT 'MMI' AFTER `height`;
6 changes: 4 additions & 2 deletions _maps/map_files/RandomRuins/SpaceRuins/whiteship.dmm
Original file line number Diff line number Diff line change
Expand Up @@ -157,7 +157,9 @@
/turf/simulated/floor/wood,
/area/shuttle/abandoned)
"tV" = (
/obj/machinery/door/airlock/titanium/glass,
/obj/machinery/door/airlock/multi_tile/glass{
dir = 1
},
/turf/simulated/floor/mineral/plastitanium,
/area/shuttle/abandoned)
"uo" = (
Expand Down Expand Up @@ -461,7 +463,7 @@ zO
zO
zO
zO
tV
wF
tV
zO
zO
Expand Down
41 changes: 24 additions & 17 deletions _maps/map_files/shuttles/emergency_raven.dmm
Original file line number Diff line number Diff line change
Expand Up @@ -1328,6 +1328,10 @@
},
/turf/simulated/floor/plasteel/dark,
/area/shuttle/escape)
"JM" = (
/obj/structure/shuttle/engine/large,
/turf/simulated/floor/plating/airless,
/area/shuttle/escape)
"JO" = (
/obj/effect/turf_decal/stripes/line{
dir = 10
Expand Down Expand Up @@ -1435,6 +1439,9 @@
icon_state = "darkred"
},
/area/shuttle/escape)
"So" = (
/turf/simulated/floor/plating/airless,
/area/shuttle/escape)
"Ux" = (
/obj/effect/turf_decal/stripes/white/corner,
/obj/effect/decal/cleanable/dirt,
Expand Down Expand Up @@ -1656,8 +1663,8 @@ dI
dE
Mm
cP
cP
aa
So
JM
"}
(6,1,1) = {"
aa
Expand Down Expand Up @@ -1690,8 +1697,8 @@ dE
dE
Nd
fn
em
aa
So
So
"}
(7,1,1) = {"
ab
Expand Down Expand Up @@ -1792,8 +1799,8 @@ dE
dE
vw
fn
em
aa
So
JM
"}
(10,1,1) = {"
ab
Expand Down Expand Up @@ -1826,8 +1833,8 @@ dE
dE
cP
cP
cP
aa
So
So
"}
(11,1,1) = {"
ab
Expand Down Expand Up @@ -1860,7 +1867,7 @@ Sa
Sa
ed
cP
aa
cP
aa
"}
(12,1,1) = {"
Expand Down Expand Up @@ -1894,8 +1901,8 @@ dE
dE
cP
cP
cP
aa
So
JM
"}
(13,1,1) = {"
ab
Expand Down Expand Up @@ -1928,8 +1935,8 @@ dE
dE
sr
fn
em
aa
So
So
"}
(14,1,1) = {"
ab
Expand Down Expand Up @@ -2030,8 +2037,8 @@ dE
dE
NK
fn
em
aa
So
JM
"}
(17,1,1) = {"
aa
Expand Down Expand Up @@ -2064,8 +2071,8 @@ dQ
dT
qC
cP
cP
aa
So
So
"}
(18,1,1) = {"
aa
Expand Down
Loading

0 comments on commit 85da847

Please sign in to comment.