Skip to content

Commit

Permalink
Merge branch 'master' into SpaceSecOrder
Browse files Browse the repository at this point in the history
  • Loading branch information
Schrodinger71 authored Jun 27, 2024
2 parents 5adf557 + 5e361ed commit 5049b73
Show file tree
Hide file tree
Showing 26 changed files with 170 additions and 13 deletions.
31 changes: 31 additions & 0 deletions Content.Server/ADT/Hemophilia/HemophiliaSystem.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
using Content.Server.Body.Components;
using Content.Shared.Traits;

namespace Content.Server.Hemophilia;

public sealed partial class HemophiliaSystem : EntitySystem
{
public override void Initialize()
{
base.Initialize();

SubscribeLocalEvent<HemophiliaComponent, MapInitEvent>(OnInitHemophilia);
SubscribeLocalEvent<HemophiliaComponent, ComponentShutdown>(OnShutdown);

}

private void OnInitHemophilia(EntityUid uid, HemophiliaComponent component, MapInitEvent args)
{
if (TryComp<BloodstreamComponent>(uid, out var bldcomp))
{
bldcomp.BleedReductionAmount *= component.Modifier;
}
}
private void OnShutdown(EntityUid uid, HemophiliaComponent component, ComponentShutdown args)
{
if (TryComp<BloodstreamComponent>(uid, out var bldcomp))
{
bldcomp.BleedReductionAmount /= component.Modifier;
}
}
}
3 changes: 2 additions & 1 deletion Content.Server/Body/Components/BloodstreamComponent.cs
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,11 @@
using Content.Shared.FixedPoint;
using Robust.Shared.Audio;
using Robust.Shared.Serialization.TypeSerializers.Implementations.Custom.Prototype;
using Content.Server.Hemophilia;

namespace Content.Server.Body.Components
{
[RegisterComponent, Access(typeof(BloodstreamSystem), (typeof(ChemistrySystem)))]
[RegisterComponent, Access(typeof(BloodstreamSystem), (typeof(ChemistrySystem)), (typeof(HemophiliaSystem)))]
public sealed partial class BloodstreamComponent : Component
{
public static string DefaultChemicalsSolutionName = "chemicals";
Expand Down
6 changes: 4 additions & 2 deletions Content.Server/Research/Systems/ResearchSystem.Console.cs
Original file line number Diff line number Diff line change
Expand Up @@ -38,12 +38,14 @@ private void OnConsoleUnlock(EntityUid uid, ResearchConsoleComponent component,
if (!UnlockTechnology(uid, args.Id, ent))
return;


/// try to fix in robust v224.0.0; thanks to languages
/*var message = Loc.GetString("research-console-unlock-technology-radio-broadcast",
("technology", Loc.GetString(technologyPrototype.Name)),
("amount", technologyPrototype.Cost));
_radio.SendRadioMessage(uid, message, component.AnnouncementChannel, uid);
_radio.SendRadioMessage(uid, message, component.AnnouncementChannel, uid);*/
SyncClientWithServer(uid);
UpdateConsoleInterface(uid, component);*/
UpdateConsoleInterface(uid, component);
}

private void OnConsoleBeforeUiOpened(EntityUid uid, ResearchConsoleComponent component, BeforeActivatableUIOpenEvent args)
Expand Down
10 changes: 10 additions & 0 deletions Content.Shared/ADT/hemophilia/HemophiliaComponent.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
namespace Content.Shared.Traits;

[RegisterComponent]
public sealed partial class HemophiliaComponent : Component
{
[DataField]
public float Modifier = 0.3f;


}
7 changes: 7 additions & 0 deletions Resources/Changelog/ChangelogADT.yml
Original file line number Diff line number Diff line change
Expand Up @@ -1889,3 +1889,10 @@ Entries:
- { message: "Добавлена фигурка Офицера Синего Щита.", type: Add}
id: 55760 #костыль отображения в Обновлениях
time: '2024-06-09T18:59:00.0000000+00:00'

- author: Torgovec
changes:
- {message: Добавлено 4 новых плаката, type: Add}
- {message: Теперь нианы могут сьесть берет СИ, type: Fix}
id: 55761 #костыль отображения в Обновлениях
time: '2024-06-23T04:19:00.0000000+00:00'
2 changes: 2 additions & 0 deletions Resources/Locale/en-US/ADT/traits/traits.ftl
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
trait-hemophilia-name = Hemophilia
trait-hemophilia-desc = Your blood is clotting extremely badly.
3 changes: 3 additions & 0 deletions Resources/Locale/ru-RU/ADT/traits/disabilities.ftl
Original file line number Diff line number Diff line change
Expand Up @@ -4,3 +4,6 @@ trait-monochromacy-description = Ваши глаза получили необр
trait-nearsighted-name = Близорукость
trait-nearsighted-description = Вам требуются очки, чтобы нормально видеть.
trait-nearsighted-examined = [color=lightblue]{CAPITALIZE(POSS-ADJ($target))} глаза довольно расфокусированы. Не похоже, что {SUBJECT($target)} может видеть вещи настолько хорошо.[/color]
trait-hemophilia-name = Гемофилия
trait-hemophilia-desc = Ваша кровь сворачивается крайне плохо.
Original file line number Diff line number Diff line change
Expand Up @@ -337,3 +337,15 @@ ent-ADTPosterPlasmaMan = Плазма(мены)
ent-ADTPosterContrabandRoza = Роза
.desc = Символ Атмосии.
ent-ADTPosterError = Что-то здесь не так
.desc = Кажется кто-то забыл добавить сюда осмысленное изображение
ent-ADTPosterNoBad = Где-то, но не здесь
.desc = Вы могли бы быть там, если бы не работали на НТ
ent-ADTPosterNoGood = Где-то, но не тут
.desc = Вы могли бы быть там, если бы вы не работали на НТ
ent-ADTPosterGasAttack = Газовая атака!
.desc = НТ предупреждает о тритиевых гранатах у синдиката, а так же о саботаже атмоса от вражеских агентов!
1 change: 1 addition & 0 deletions Resources/Prototypes/ADT/Entities/Clothing/Head/hats.yml
Original file line number Diff line number Diff line change
Expand Up @@ -398,6 +398,7 @@
sprite: ADT/Clothing/Head/Hats/beret_CE.rsi
- type: Tag
tags:
- ClothMade
- HamsterWearable

- type: entity
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -796,4 +796,45 @@
components:
- type: Sprite
sprite: ADT/Structures/Wallmounts/space_sec_poster.rsi
state: poster_spacesec
state: poster_spacesec

# Странные постеры
- type: entity
parent: PosterBase
id: ADTPosterError
name: Error Poster
description: This is an error poster.
components:
- type: Sprite
sprite: ADT/Objects/Decoration/poster_syndicate.rsi
state: error

- type: entity
parent: PosterBase
id: ADTPosterNoBad
name: No Bad
description: This poster promotes good behavior.
components:
- type: Sprite
sprite: ADT/Objects/Decoration/poster_syndicate.rsi
state: nobad

- type: entity
parent: PosterBase
id: ADTPosterNoGood
name: No Good
description: This poster warns against bad behavior.
components:
- type: Sprite
sprite: ADT/Objects/Decoration/poster_syndicate.rsi
state: nogood

- type: entity
parent: PosterBase
id: ADTPosterGasAttack
name: Gas Attack
description: This poster warns about gas attacks.
components:
- type: Sprite
sprite: ADT/Objects/Decoration/poster_syndicate.rsi
state: gasattack
10 changes: 9 additions & 1 deletion Resources/Prototypes/ADT/Traits/neutral.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,12 @@
name: trait-moth-accent-name
description: trait-moth-accent-desc
components:
- type: MothAccent
- type: MothAccent

- type: trait
id: ADTHemophilia
name: trait-hemophilia-name
description: trait-hemophilia-desc
components:
- type: Hemophilia
modifier: 0.01
Original file line number Diff line number Diff line change
Expand Up @@ -103,6 +103,8 @@
- ADTPosterLustyMoth
- ADTPosterWatchOutChem
- ADTPosterPanem
- ADTPosterGasAttack
- ADTPosterNoGood
chance: 1

- type: entity
Expand Down Expand Up @@ -172,4 +174,6 @@
- ADTPosterDontTalkToArty
- ADTPosterWorkUnderWay
- ADTPosterPlasmaMan
- ADTPosterError
- ADTPosterNoBad
chance: 1
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
{
"version": 1,
"license": "CC-BY-SA-3.0",
"copyright": "Created by discord:unlumy для Времени Приключений МРП сервер",
"size": {
"x": 32,
"y": 32
},
"states": [
{
"name": "error"
},
{
"name": "nobad"
},
{
"name": "nogood"
},
{
"name": "gasattack"
}
]
}
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Original file line number Diff line number Diff line change
Expand Up @@ -8,17 +8,23 @@
},
"states": [
{
"name": "assembly"
},
{
"name": "bolted_unlit"
},
"name": "assembly"
},
{
"name": "bolted_unlit"
},
{
"name": "bolted_open_unlit"
},
{
"name": "closed"
},
{
"name": "closed_unlit"
},
{
"name": "open_unlit"
},
{
"name": "closing",
"delays": [
Expand Down Expand Up @@ -61,8 +67,8 @@
{
"name": "open",
"delays": [
[
1
[
1
]
]
},
Expand Down Expand Up @@ -105,6 +111,9 @@
]
]
},
{
"name": "panel_closed"
},
{
"name": "panel_open",
"delays": [
Expand Down Expand Up @@ -162,6 +171,9 @@
0.4
]
]
},
{
"name": "emergency_open_unlit"
}
]
}
}
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit 5049b73

Please sign in to comment.