Skip to content

Commit

Permalink
Merge branch 'master' into roboticist_job
Browse files Browse the repository at this point in the history
  • Loading branch information
PyotrIgn authored Aug 1, 2024
2 parents f1c2c06 + 61c838d commit af35857
Show file tree
Hide file tree
Showing 300 changed files with 5,421 additions and 10 deletions.
114 changes: 114 additions & 0 deletions .github/workflows/publish-adt.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,114 @@
name: Publish ADT

#concurrency:
# group: publish

on:
workflow_dispatch:
schedule:
- cron: '0 6 * * *'
workflow_run:
workflows: [Build & Test Release]
types: [completed]

jobs:
build:
if: ${{ github.event.workflow_run.conclusion == 'success' || github.event_name == 'workflow_dispatch' }}
runs-on: ubuntu-latest

steps:
- name: Install dependencies
run: sudo apt-get install -y python3-paramiko python3-lxml

- uses: actions/[email protected]
with:
submodules: 'recursive'
- name: Setup .NET Core
uses: actions/[email protected]
with:
dotnet-version: 8.0.x

- name: Get Engine Tag
run: |
cd RobustToolbox
git fetch --depth=1
- name: Install dependencies
run: dotnet restore

- name: Build Packaging
run: dotnet build Content.Packaging --configuration Release --no-restore /m

- name: Package server
run: dotnet run --project Content.Packaging server --platform linux-x64

- name: Package client
run: dotnet run --project Content.Packaging client --no-wipe-release

- name: Update Build Info
run: |
chmod +x Tools/gen_build_info.py
Tools/gen_build_info.py
- name: Shuffle files around
run: |
mkdir "release/${{ github.sha }}"
mv release/*.zip "release/${{ github.sha }}"
- name: Upload files to mothership
uses: burnett01/[email protected]
with:
switches: -avzr --ignore-existing
path: "release/${{ github.sha }}"
remote_path: ${{ secrets.BUILDS_PATH }}
remote_host: ${{ secrets.BUILDS_HOST }}
remote_port: ${{ secrets.BUILDS_PORT }}
remote_user: ${{ secrets.BUILDS_USERNAME }}
remote_key: ${{ secrets.BUILDS_SSH_KEY }}

- name: Update manifest JSON
uses: appleboy/[email protected]
with:
host: ${{ secrets.BUILDS_HOST }}
username: ${{ secrets.BUILDS_USERNAME }}
key: ${{ secrets.BUILDS_SSH_KEY }}
port: ${{ secrets.BUILDS_PORT }}
script: python3 ~/manifest.py --version ${{ github.sha }}

- name: Update CDN repository
run: |
curl -X POST -d "" -H 'Authorization: Bearer ${{ secrets.BUILDS_TOKEN }}' "http://${{ secrets.BUILDS_HOST }}:27690/control/update"
#- name: Upload build artifact
# id: artifact-upload-step
# uses: actions/upload-artifact@v4
# with:
# name: build
# path: release/*.zip
# compression-level: 0
# retention-days: 0

#- name: Publish version
# run: Tools/publish_github_artifact.py
# env:
# GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
# PUBLISH_TOKEN: ${{ secrets.PUBLISH_TOKEN }}
# ARTIFACT_ID: ${{ steps.artifact-upload-step.outputs.artifact-id }}
# GITHUB_REPOSITORY: ${{ vars.GITHUB_REPOSITORY }}

# - name: Publish changelog (Discord)
# run: Tools/actions_changelogs_since_last_run.py
# env:
# GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
# DISCORD_WEBHOOK_URL: ${{ secrets.CHANGELOG_DISCORD_WEBHOOK }}

# - name: Publish changelog (RSS)
# run: Tools/actions_changelog_rss.py
# env:
# CHANGELOG_RSS_KEY: ${{ secrets.CHANGELOG_RSS_KEY }}

#- uses: geekyeggo/delete-artifact@v5
# if: always()
# with:
# name: build
2 changes: 1 addition & 1 deletion Content.Server/GameTicking/GameTicker.Player.cs
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ private async void PlayerStatusChanged(object? sender, SessionStatusEventArgs ar

var record = await _dbManager.GetPlayerRecordByUserId(args.Session.UserId);
var firstConnection = record != null &&
Math.Abs((record.FirstSeenTime - record.LastSeenTime).TotalMinutes) < 1;
Math.Abs((record.FirstSeenTime - record.LastSeenTime).TotalMinutes) < 600; //пока у игрока не будет наиграно 10ч, будет высвечиваться надпись что он новичок, для облегчении слежки модерации, ADT

_chatManager.SendAdminAnnouncement(firstConnection
? Loc.GetString("player-first-join-message", ("name", args.Session.Name))
Expand Down
2 changes: 2 additions & 0 deletions Resources/Locale/ru-RU/ADT/Adverisements/patholog.ftl
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
advertisement-patholog-1 = Только не запачкайтесь.
advertisement-patholog-2 = Самая красивая одежда среди обитателей морга!
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
ent-ADTClothingBackpackPathologistFilled = { ent-ADTClothingBackpackPathologist }
.desc = { ent-ADTClothingBackpackPathologist.desc }
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
ent-ADTClothingBackpackDuffelPathologistFilled = { ent-ADTClothingBackpackDuffelPathologist }
.desc = { ent-ADTClothingBackpackDuffelPathologist.desc }
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
ent-ADTClothingBackpackSatchelPathologistFilled = { ent-ADTClothingBackpackSatchelPathologist }
.desc = { ent-ADTClothingBackpackSatchelPathologist.desc }
6 changes: 6 additions & 0 deletions Resources/Locale/ru-RU/ADT/Clothing/Back/backpack.ftl
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
ent-ADTClothingBackpackDuffelPathologist = вещмешок патологоанатома
.desc = Большой вещмешок для хранения инструментов и бумаг.
ent-ADTClothingBackpackPathologist = рюкзак патологоанатома
.desc = Рюкзак для хранения инструментов и бумаг.
ent-ADTClothingBackpackSatchelPathologist = сумка патологоанатома
.desc = Сумка для хранения инструментов и бумаг.
4 changes: 4 additions & 0 deletions Resources/Locale/ru-RU/ADT/Clothing/OuterClothing/coats.ftl
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
ent-ADTClothingOuterCoatLabPathologist = халат патологоанатома
.desc = { ent-ClothingOuterCoatLab.desc }
ent-ADTClothingOuterApronPathologist = фартук патологоанатома
.desc = Фартук для работы с трупами.
8 changes: 8 additions & 0 deletions Resources/Locale/ru-RU/ADT/Clothing/Uniform/jumpsuits.ftl
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
ent-ADTClothingUniformPathologistSuit = костюм патологоанатома
.desc = Лёгкий комбинезон для работника морга.
ent-ADTClothingUniformPathologistSkirt = юбка-костюм патологоанатома
.desc = Лёгкая юбка-комбинезон для работницы морга.
ent-ADTClothingUniformPathologistSuitAlt = чёрный костюм патологоанатома
.desc = Лёгкий комбинезон для работника морга. Более угрюмая версия.
ent-ADTClothingUniformPathologistSkirtAlt = чёрная юбка-костюм патологоанатома
.desc = Лёгкая юбка-комбинезон для работницы морга. Более угрюмая версия.
2 changes: 2 additions & 0 deletions Resources/Locale/ru-RU/ADT/Entities/Objects/Device/pda.ftl
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
ent-ADTPathologistPDA = КПК патологоанатома
.desc = От него веет прохладой.
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
ent-ADTPathologistIDCard = ID карта патологоанатома
.desc = { ent-IDCardStandard.desc }
2 changes: 2 additions & 0 deletions Resources/Locale/ru-RU/ADT/Entities/Spawners/jobs.ftl
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
ent-SpawnPointADTPathologist = патологоанатом
.desc = { ent-MarkerBase.desc }
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
ent-ADTVendingMachinePatholoDrobe = ПатологоШкаф
.desc = Самая стильная одежда в самом отдалёном месте медицинского отдела.
1 change: 1 addition & 0 deletions Resources/Locale/ru-RU/ADT/Job/job-description.ftl
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
job-description-ADTPathologist = Осматривайте тела мёртвого экипажа, выявляйте причины их смерти и не забывайте клонировать трупы.
2 changes: 2 additions & 0 deletions Resources/Locale/ru-RU/ADT/Job/job-names.ftl
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
job-name-ADTPathologist = Патологоанатом
JobADTPathologist = Патологоанатом
5 changes: 5 additions & 0 deletions Resources/Locale/ru-RU/ADT/Preferences/loadout-groups.ftl
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
loadout-group-patholog-head = Патологоанатом, голова
loadout-group-patholog-jumpsuit = Патологоанатом, комбинезон
loadout-group-patholog-outerclothing = Патологоанатом, верхняя одежда
loadout-group-patholog-shoes = Патологоанатом, обувь
loadout-group-patholog-backpack = Патологоанатом, рюкзак
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
marking-ADTVulpkanintail1 = Хвост 1
marking-ADTVulpkanintail2 = Хвост 2
marking-ADTVulpkanintailAll = Весь хвост
marking-ADTVulpkaninear = Окрас ушей
marking-ADTVulpkaninearBack = Окраска ушей
marking-ADTVulpkaninmuzzle = Окрас лица
marking-ADTVulpkaninmuzzleear = Окрас лица и ушей
marking-ADTVulpkaninnose = Окрас носа
marking-ADTVulpkaninpoints_fade = Окрас лица и ушей
marking-ADTVulpkaninpoints_sharp = Окрас лица и ушей (острые)
marking-ADTVulpkaninskull_sponsor = Рисунок черепа
marking-ADTVulpkanintiger_face = Тигриные полосы (лицо)
marking-ADTVulpkanintiger_head = Тигриные полосы (голова)
marking-ADTVulpkaninaltpointsfadebelly = Окрас лап, груди и живота
marking-ADTVulpkaninbellycrest = Окрас живота
marking-ADTVulpkanincrestpoints = Точки на лапах, груди и животе
marking-ADTVulpkaninfoxbelly = Лисий живот
marking-ADTVulpkaninfullbelly = Окрас живота
marking-ADTVulpkaninpointsfade = Окрас лап
marking-ADTVulpkaninpointsfadebelly = Пятнистый окрас лап, груди и живота
marking-ADTVulpkaninsharppoints = Резкие пятна
Loading

0 comments on commit af35857

Please sign in to comment.