Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Изменение времени на ролях #17

Merged
merged 53 commits into from
Oct 7, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
53 commits
Select commit Hold shift + click to select a range
43f4b60
Update publish.yml
xtray85 Oct 6, 2023
29edd68
Merge pull request #15 from xtray85/xtray85-patch-1
xtray85 Oct 6, 2023
c5b0802
Update .gitlab-ci.yml file
xtray85 Oct 6, 2023
945651d
Update .gitlab-ci.yml file
xtray85 Oct 6, 2023
63dc7ee
Update .gitlab-ci.yml file
xtray85 Oct 6, 2023
2d45f90
Update .gitlab-ci.yml file
xtray85 Oct 6, 2023
ac76377
Update .gitlab-ci.yml file
xtray85 Oct 6, 2023
62f2ba4
Update .gitlab-ci.yml file
xtray85 Oct 6, 2023
14029be
Update .gitlab-ci.yml file
xtray85 Oct 6, 2023
eebf5e7
Update .gitlab-ci.yml file
xtray85 Oct 6, 2023
a15ea2b
Update .gitlab-ci.yml file
xtray85 Oct 6, 2023
a15d92d
Update .gitlab-ci.yml file
xtray85 Oct 6, 2023
d2965c2
Update .gitlab-ci.yml file
xtray85 Oct 6, 2023
ab7ba92
Update .gitlab-ci.yml file
xtray85 Oct 6, 2023
f6e10ae
Fix hooks location
xtray85 Oct 6, 2023
62890f0
Restore
xtray85 Oct 6, 2023
a422671
Update .gitlab-ci.yml file
xtray85 Oct 6, 2023
470b75a
Update .gitlab-ci.yml file
xtray85 Oct 6, 2023
becb764
Update .gitlab-ci.yml file
xtray85 Oct 6, 2023
e1cb257
Update .gitlab-ci.yml file
xtray85 Oct 6, 2023
d2c64f7
create directory
xtray85 Oct 6, 2023
ef22a57
Test
xtray85 Oct 6, 2023
e10c9e7
Update file .gitlab-ci.yml
xtray85 Oct 6, 2023
35ddcc8
rename pipe
xtray85 Oct 6, 2023
bb25f49
Rename
xtray85 Oct 6, 2023
6e7ba37
Change
xtray85 Oct 6, 2023
e990f86
Fix
xtray85 Oct 6, 2023
0e82ebb
test
xtray85 Oct 6, 2023
4871dcc
test
xtray85 Oct 6, 2023
a063865
Update file .gitlab-ci.yml
xtray85 Oct 6, 2023
634fc17
Update file .gitlab-ci.yml
xtray85 Oct 6, 2023
f740374
Update file .gitlab-ci.yml
xtray85 Oct 6, 2023
4707420
Update file .gitlab-ci.yml
xtray85 Oct 6, 2023
c51703b
Update .gitlab-ci.yml file
xtray85 Oct 6, 2023
bab8907
Update .gitlab-ci.yml file
xtray85 Oct 6, 2023
8af5714
Update file .gitlab-ci.yml
xtray85 Oct 6, 2023
cf04166
Update file .gitlab-ci.yml
xtray85 Oct 6, 2023
f6183ec
Update file .gitlab-ci.yml
xtray85 Oct 6, 2023
42151fc
Update file .gitlab-ci.yml
xtray85 Oct 6, 2023
2b5edf2
Update file .gitlab-ci.yml
xtray85 Oct 6, 2023
f67881e
Update file .gitlab-ci.yml
xtray85 Oct 6, 2023
c3b76c6
Update file .gitlab-ci.yml
xtray85 Oct 6, 2023
50201b0
Update file .gitlab-ci.yml
xtray85 Oct 6, 2023
df18f57
Update file .gitlab-ci.yml
xtray85 Oct 6, 2023
3b3e8c6
Update file .gitlab-ci.yml
xtray85 Oct 6, 2023
ef9dc96
Update file .gitlab-ci.yml
xtray85 Oct 6, 2023
b154dd3
Update file .gitlab-ci.yml
xtray85 Oct 6, 2023
447c878
Update file .gitlab-ci.yml
xtray85 Oct 6, 2023
96e1ef5
Update file .gitlab-ci.yml
xtray85 Oct 6, 2023
17b5156
Update .gitlab-ci.yml file
xtray85 Oct 6, 2023
aca44fc
Add JUnitTestLogger
xtray85 Oct 6, 2023
97935bd
Merge branch 'master' of https://github.com/PyotrIgn/adt2_space_station
PyotrIgn Oct 7, 2023
bce9978
Изменение времени на ролях
PyotrIgn Oct 7, 2023
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ on:

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

steps:
Expand Down
69 changes: 69 additions & 0 deletions .gitlab-ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,69 @@
stages:
- install
- build
- test

install-dep:
stage: install
variables:
GIT_SUBMODULE_STRATEGY: recursive
GIT_SUBMODULE_UPDATE_FLAGS: --init --depth 50 --recursive --jobs 4
script:
- echo "Install dependenses ..."

build-project:
stage: build
variables:
GITHUB_ACTIONS: 1
GIT_CLEAN_FLAGS: none
GIT_CHECKOUT: none
dependencies: []
script:
- |
echo "Restore Projects ..."
dotnet restore
echo "Build Projects ..."
dotnet build --configuration Release --no-restore /p:WarningsAsErrors= /m
dotnet run --project Content.YAMLLinter/Content.YAMLLinter.csproj --no-build
echo "Compile complete."

yaml-test:
stage: test
variables:
GITHUB_ACTIONS: 1
GIT_CLEAN_FLAGS: none
GIT_CHECKOUT: none
dependencies: []
script:
- dotnet run --project Content.YAMLLinter/Content.YAMLLinter.csproj --no-build

content-test:
stage: test
needs: ["yaml-test"]
variables:
GITHUB_ACTIONS: 1
GIT_CLEAN_FLAGS: none
GIT_CHECKOUT: none
dependencies: []
script:
- dotnet test --configuration Tools --no-build Content.Tests/Content.Tests.csproj -- NUnit.ConsoleOut=0

unit-test:
stage: test
needs: ["content-test"]
variables:
DOTNET_gcServer: 1
GITHUB_ACTIONS: 1
GIT_CLEAN_FLAGS: none
GIT_CHECKOUT: none
dependencies: []
script:
- dotnet test --configuration Tools --no-build Content.IntegrationTests/Content.IntegrationTests.csproj -- NUnit.ConsoleOut=0 NUnit.MapWarningTo=Failed


remove-build:
stage: .post
when: on_failure
script:
- cd ..
- rm -R space_station
5 changes: 5 additions & 0 deletions BuildChecker/git_helper.py
Original file line number Diff line number Diff line change
Expand Up @@ -83,6 +83,11 @@ def install_hooks():
hooks_target_dir = Path("..")/".git"/"hooks"
hooks_source_dir = Path("hooks")

os

if not os.path.exists(hooks_target_dir):
os.makedirs(hooks_target_dir)

# Clear entire tree since we need to kill deleted files too.
for filename in os.listdir(str(hooks_target_dir)):
os.remove(str(hooks_target_dir/filename))
Expand Down
1 change: 1 addition & 0 deletions Content.IntegrationTests/Content.IntegrationTests.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@
<LangVersion>11</LangVersion>
</PropertyGroup>
<ItemGroup>
<PackageReference Include="JUnitTestLogger" Version="1.1.0" />
<PackageReference Include="NUnit" Version="3.13.3" />
<PackageReference Include="NUnit3TestAdapter" Version="4.2.1" />
<PackageReference Include="Microsoft.NET.Test.Sdk" Version="17.2.0" />
Expand Down
1 change: 1 addition & 0 deletions Content.Tests/Content.Tests.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@
<OutputPath>..\bin\Content.Tests\</OutputPath>
</PropertyGroup>
<ItemGroup>
<PackageReference Include="JUnitTestLogger" Version="1.1.0" />
<PackageReference Include="NUnit" Version="3.13.3" />
<PackageReference Include="NUnit.ConsoleRunner" Version="3.15.0" />
<PackageReference Include="NUnit3TestAdapter" Version="4.2.1" />
Expand Down
15 changes: 15 additions & 0 deletions Resources/Changelog/ChangelogADT.yml
Original file line number Diff line number Diff line change
Expand Up @@ -262,3 +262,18 @@ Entries:
- {message: Коронавирус на станции закончился - вкусы напитков и прочих вновь вернулись., type: fix}
id: 55578 #костыль отображения в Обновлениях
time: '2023-10-06T09:19:00.0000000+00:00'


- author: Петр Игнатьевич
changes:
- {message: Изменены некоторые эффекты от пива для Октоберфеста., type: Tweak}
- {message: Боги услышали молитвы уборщиков. Для рвоты от алкогольного отравления надо теперь содержать в себе очень много этанола., type: Tweak}
- {message: Добавлен таймер для открытия роли инженера-стажера., type: Tweak}
id: 55578 #костыль отображения в Обновлениях
time: '2023-10-07T09:19:00.0000000+00:00'

- author: JustKekc
changes:
- {message: Возвращена возможность играть за кадета. интерна. лаборанта и инженера-стажера даже при открытии более высоких ролей в отделе., type: fix}
id: 55580 #костыль отображения в Обновлениях
time: '2023-10-07T09:19:00.0000000+00:00'
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
ent-ADTGoldenAleGlass = золотой эль
.desc = Прямиком из таверны "Розаверн".
.suffix = { "Октоберфест" }
ent-ADTSausageBeerGlass = лучшее сосисочное пиво
.desc = Варево с ароматом сосисок.
.suffix = { "Октоберфест" }
ent-ADTTechnoBeerGlass = пиво "Технарское"
.desc = Напиток, сваренный в глубинах инженерного отдела безумными атмосианами.
.suffix = { "Октоберфест" }
ent-ADTClassicPaulanerBeerGlass = классический пауланер
.desc = Сорт пива, дающий радость уже больше 500 лет.
.suffix = { "Октоберфест" }
ent-ADTLivseyBeerGlass = пиво "Доктор Ливси"
.desc = АХАХАХАХАХХА, то есть да. Напиток, сваренный криониками из медбэя.
.suffix = { "Октоберфест" }
ent-ADTLuckyJonnyBeerGlass = пиво "Счастливчик Джонни"
.desc = Крайне странный сорт, о котором каждый расскажет свою историю.
.suffix = { "Октоберфест" }
ent-ADTSecUnfilteredBeerGlass = охранное нефильтрованное пиво
.desc = Робаст, алкоголь и пена. Замешано на слезах клоуна.
.suffix = { "Октоберфест" }
ent-ADTGlyphidStoutBeerGlass = глифидский стаут
.desc = Напиток, подаренный теми четыремя безумными дворфами.
.suffix = { "Октоберфест" }
Original file line number Diff line number Diff line change
Expand Up @@ -70,8 +70,13 @@
- !type:AdjustReagent
reagent: Ethanol
amount: 0.35
Medicine:
effects:
- !type:AdjustTemperature
amount: 100
conditions:
- !type:Temperature
max: 350.15
amount: 10000 # thermal energy, not temperature!
metamorphicSprite:
sprite: ADT/Objects/Consumable/Drinks/oktoberfest_beer.rsi
state: technobeer
Expand Down Expand Up @@ -117,8 +122,13 @@
- !type:AdjustReagent
reagent: Ethanol
amount: 0.35
Medicine:
effects:
- !type:AdjustTemperature
amount: -100
conditions:
- !type:Temperature
min: 263.15
amount: -10000
metamorphicSprite:
sprite: ADT/Objects/Consumable/Drinks/oktoberfest_beer.rsi
state: livseybeer
Expand Down
8 changes: 4 additions & 4 deletions Resources/Prototypes/Reagents/Consumable/Drink/alcohol.yml
Original file line number Diff line number Diff line change
Expand Up @@ -125,7 +125,7 @@
- !type:HealthChange
conditions:
- !type:ReagentThreshold
min: 15
min: 25
- !type:OrganType
type: Dwarf
shouldHave: false
Expand All @@ -136,7 +136,7 @@
- !type:HealthChange
conditions:
- !type:ReagentThreshold
min: 15
min: 25
- !type:OrganType
type: Dwarf
damage:
Expand All @@ -145,7 +145,7 @@
- !type:HealthChange
conditions:
- !type:ReagentThreshold
min: 15
min: 25
- !type:OrganType
type: Dwarf
damage:
Expand All @@ -156,7 +156,7 @@
conditions:
- !type:ReagentThreshold
reagent: Ethanol
min: 12
min: 36
# dwarves immune to vomiting from alcohol
- !type:OrganType
type: Dwarf
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,14 @@
name: job-name-technical-assistant
description: job-description-technical-assistant
playTimeTracker: JobTechnicalAssistant
#requirements:
# - !type:DepartmentTimeRequirement
# department: Engineering
# time: 54000 #15 hrs
# inverted: true # stop playing intern if you're good at engineering!
requirements:
- !type:DepartmentTimeRequirement
department: Engineering
time: 54000 #15 hrs
inverted: true # stop playing intern if you're good at engineering!
- !type:OverallPlaytimeRequirement
time: 7200 #2 hrs
startingGear: TechnicalAssistantGear
icon: "JobIconTechnicalAssistant"
supervisors: job-supervisors-engineering
Expand Down
8 changes: 4 additions & 4 deletions Resources/Prototypes/Roles/Jobs/Medical/medical_intern.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,10 @@
description: job-description-intern
playTimeTracker: JobMedicalIntern
requirements:
- !type:DepartmentTimeRequirement
department: Medical
time: 54000 # 15 hrs
inverted: true # stop playing intern if you're good at med!
#- !type:DepartmentTimeRequirement
# department: Medical
# time: 54000 # 15 hrs
# inverted: true # stop playing intern if you're good at med!
startingGear: MedicalInternGear
icon: "JobIconMedicalIntern"
supervisors: job-supervisors-medicine
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,10 @@
description: job-description-research-assistant
playTimeTracker: JobResearchAssistant
requirements:
- !type:DepartmentTimeRequirement
department: Science
time: 54000 #15 hrs
inverted: true # stop playing intern if you're good at science!
#- !type:DepartmentTimeRequirement
# department: Science
# time: 54000 #15 hrs
# inverted: true # stop playing intern if you're good at science!
startingGear: ResearchAssistantGear
icon: "JobIconResearchAssistant"
supervisors: job-supervisors-science
Expand Down
8 changes: 4 additions & 4 deletions Resources/Prototypes/Roles/Jobs/Security/security_cadet.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,10 @@
requirements:
- !type:OverallPlaytimeRequirement
time: 36000 #10 hrs
- !type:DepartmentTimeRequirement
department: Security
time: 54000 #15 hrs
inverted: true # stop playing intern if you're good at security!
#- !type:DepartmentTimeRequirement
# department: Security
# time: 54000 #15 hrs
# inverted: true # stop playing intern if you're good at security!
startingGear: SecurityCadetGear
icon: "JobIconSecurityCadet"
supervisors: job-supervisors-security
Expand Down