Skip to content

Commit

Permalink
Merge pull request #17 from PyotrIgn/no_grief2
Browse files Browse the repository at this point in the history
Изменение времени на ролях
  • Loading branch information
xtray85 authored Oct 7, 2023
2 parents ff71889 + bce9978 commit a4d9b7f
Show file tree
Hide file tree
Showing 13 changed files with 151 additions and 23 deletions.
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

0 comments on commit a4d9b7f

Please sign in to comment.