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

Бафф Инжей и не только #310

Merged
merged 17 commits into from
Oct 31, 2024
Merged
Show file tree
Hide file tree
Changes from 3 commits
Commits
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
Original file line number Diff line number Diff line change
Expand Up @@ -6,11 +6,16 @@
using System.Linq;
using Content.Shared.Audio;
using Content.Shared.CCVar;
using Content.Shared.Radio;
using Content.Server.Radio.EntitySystems;
using Robust.Shared.Prototypes;

namespace Content.Server.Supermatter.Systems;

public sealed partial class SupermatterSystem
{
[Dependency] private readonly IPrototypeManager _prototypeManager = default!;
[Dependency] private readonly RadioSystem _radioSystem = default!;
/// <summary>
/// Handle power and radiation output depending on atmospheric things.
/// </summary>
Expand Down Expand Up @@ -293,6 +298,17 @@ private void AnnounceCoreDamage(EntityUid uid, SupermatterComponent sm)
SendSupermatterAnnouncement(uid, message, global);
}

private void Report(EntityUid source, string channelName, string messageKey, params (string, object)[] args)
{
var message = args.Length == 0 ? Loc.GetString(messageKey) : Loc.GetString(messageKey, args);

if (string.IsNullOrWhiteSpace(message))
return;

var secondaryChannel = _prototypeManager.Index<RadioChannelPrototype>(channelName);
_radioSystem.SendRadioMessage(source, message, secondaryChannel, source);
}
Farrellka-dev marked this conversation as resolved.
Show resolved Hide resolved

/// <param name="global">If true, sends a station announcement</param>
/// <param name="customSender">Localisation string for a custom announcer name</param>
public void SendSupermatterAnnouncement(EntityUid uid, string message, bool global = false, string? customSender = null)
Expand All @@ -305,6 +321,11 @@ public void SendSupermatterAnnouncement(EntityUid uid, string message, bool glob
}

_chat.TrySendInGameICMessage(uid, message, InGameICChatType.Speak, hideChat: false, checkRadioPrefix: true);

if (!string.IsNullOrWhiteSpace(message))
{
Report(uid, "Engineering", message);
}
Farrellka-dev marked this conversation as resolved.
Show resolved Hide resolved
}

/// <summary>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,9 @@ ent-LPPSecurityEngineerPDA = КПК полевого инженера
.desc = Красный, чтобы скрыть пятна крови пассажиров.
ent-LPPBlueShieldOfficerPDA = КПК офицера "Синий Щит"
.desc = Пахнет защитой.
ent-LPPAdjutantPDA = КПК Адъютанта
ent-LPPAdjutantPDA = КПК адъютанта
.desc = Пора почувствовать себя крутым.
ent-LPPExpeditorPDA = КПК Исследователя
ent-LPPExpeditorPDA = КПК исследователя
.desc = Потёртый, поцарапанный, но все еще работает.
ent-LPPSecPilotPDA = КПК Пилота СБ
ent-LPPSecPilotPDA = КПК пилота СБ
.desc = Выглядит новеньким и пахнет космосом.
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,10 @@ ent-ClothingHeadsetHoP = Гарнитура главы персонала
.desc = Гарнитура используемая Главой Персонала.
ent-ClothingHeadsetAltService = Полноразмерная гарнитура главы персонала
.desc = { ent-ClothingHeadsetAlt.desc }
ent-ClothingHeadsetAltSyndicateListening = Кроваво-красная полнаразмерная гарнитура перехвата
.desc = Улудшенное, модульное устройство перехвата, которое помещаеться на голову.
ent-ClothingHeadsetJustice = Гарнитура Юридического отдела
.desc = Гарнитура, используемая Юридическим отделом.
ent-ClothingHeadsetAltSyndicateListening = Кроваво-красная полноразмерная гарнитура перехвата
.desc = Улучшенное, модульное устройство перехвата, которое помещаеться на голову.
Farrellka-dev marked this conversation as resolved.
Show resolved Hide resolved
ent-ClothingHeadsetJustice = Гарнитура юридического отдела
.desc = Гарнитура, используемая юридическим отделом.
ent-ClothingHeadsetAltJustice = Гарнитура главного судьи
.desc = Гарнитура, используемая главным судьей.
ent-ClothingHeadsetPrison = Тюремная гарнитура
Expand Down
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
ent-Supermatter = Кристал суперматерии
ent-Supermatter = Кристалл суперматерии
.desc = Странно прозрачный и переливающийся кристалл.
2 changes: 2 additions & 0 deletions Resources/Prototypes/Catalog/Fills/Lockers/engineer.yml
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,9 @@
- id: MedkitOxygenFilled
- id: HolofanProjector
- id: DoorRemoteFirefight
- id: ClothingShoesBootsMag
- id: RCD
- id: RCDAmmo
- id: LPPRCDFAPDevice
- id: LPPRCDFAPAmmo
- id: LunchboxEngineeringFilledRandom # Delta-V Lunchboxes!
Expand Down
4 changes: 4 additions & 0 deletions Resources/Prototypes/Catalog/Fills/Lockers/heads.yml
Original file line number Diff line number Diff line change
Expand Up @@ -181,6 +181,8 @@
- id: BoxPDAEngineering # Delta-V
- id: RCD
- id: RCDAmmo
- id: LPPRCDFAPDevice
- id: LPPRCDFAPAmmo
- id: CEIDCard # Delta-V
- id: LunchboxCommandFilledRandom # Delta-V Lunchboxes!
prob: 0.3
Expand All @@ -206,6 +208,8 @@
- id: CEIDCard # Delta-V
- id: RCD
- id: RCDAmmo
- id: LPPRCDFAPDevice
- id: LPPRCDFAPAmmo
- id: LunchboxCommandFilledRandom # Delta-V Lunchboxes!
prob: 0.3

Expand Down
2 changes: 2 additions & 0 deletions Resources/Prototypes/Catalog/Fills/Lockers/security.yml
Original file line number Diff line number Diff line change
Expand Up @@ -170,6 +170,7 @@
prob: 0.7
## - id: ClothingNeckCloakMoth #bzzz Moth-pocalypse # DeltaV - why
## prob: 0.15
- id: LPPCombatHypospray
- id: LunchboxSecurityFilledRandom # Delta-v Lunchboxes!
prob: 0.3

Expand Down Expand Up @@ -203,6 +204,7 @@
prob: 0.3
- id: MedkitBurnFilled
prob: 0.7
- id: LPPCombatHypospray
- id: LunchboxSecurityFilledRandom # Delta-v Lunchboxes!
prob: 0.3

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -125,6 +125,7 @@
- type: StorageFill
contents:
- id: OxygenTankFilled
- id: ClothingShoesBootsMag
- id: ClothingOuterHardsuitAtmos
- id: ClothingMaskBreath
- type: AccessReader
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,7 @@
- type: ContainerFill
containers:
key_slots:
- EncryptionKeyService
- EncryptionKeyCommand
- EncryptionKeyCommon
- EncryptionKeyStationMaster

- type: entity
parent: ClothingHeadsetAlt
Expand All @@ -19,9 +17,7 @@
- type: ContainerFill
containers:
key_slots:
- EncryptionKeyService
- EncryptionKeyCommand
- EncryptionKeyCommon
- EncryptionKeyStationMaster
- type: Sprite
sprite: DeltaV/Clothing/Ears/Headsets/service.rsi
- type: Clothing
Expand Down
1 change: 1 addition & 0 deletions Resources/Prototypes/Entities/Clothing/Eyes/glasses.yml
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,7 @@
sprite: Clothing/Eyes/Glasses/meson.rsi
- type: Clothing
sprite: Clothing/Eyes/Glasses/meson.rsi
- type: FlashImmunity
- type: EyeProtection
- type: Tag
tags:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,8 @@
lowPressureMultiplier: 1000
- type: TemperatureProtection
coefficient: 0.005
- type: FlashImmunity
- type: EyeProtection

#Engineering Hardsuit
- type: entity
Expand All @@ -58,6 +60,8 @@
- type: PressureProtection
highPressureMultiplier: 0.1
lowPressureMultiplier: 1000
- type: FlashImmunity
- type: EyeProtection

#Spationaut Hardsuit
- type: entity
Expand Down Expand Up @@ -249,6 +253,8 @@
- type: PressureProtection
highPressureMultiplier: 0.08
lowPressureMultiplier: 1000
- type: FlashImmunity
- type: EyeProtection

#Chief Medical Officer's Hardsuit
- type: entity
Expand Down Expand Up @@ -590,7 +596,9 @@
Slash: 0.9
Piercing: 0.9
Heat: 0.9

- type: FlashImmunity
- type: EyeProtection

#ERT Medical Hardsuit
- type: entity
parent: ClothingHeadHelmetHardsuitSyndieElite
Expand Down
88 changes: 88 additions & 0 deletions Resources/Prototypes/Entities/Clothing/OuterClothing/hardsuits.yml
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,28 @@
- type: HeldSpeedModifier
- type: ToggleableClothing
clothingPrototype: ClothingHeadHelmetHardsuitAtmos
- type: GasTank
outputPressure: 42.6
air:
volume: 1.5
temperature: 293.15
moles:
- 0.307706858 # oxygen
- 0.307706858 # nitrogen
Farrellka-dev marked this conversation as resolved.
Show resolved Hide resolved
- type: ActivatableUI
key: enum.SharedGasTankUiKey.Key
- type: UserInterface
interfaces:
- key: enum.SharedGasTankUiKey.Key
type: GasTankBoundUserInterface
- type: Explosive
explosionType: Default
maxIntensity: 20
Farrellka-dev marked this conversation as resolved.
Show resolved Hide resolved
- type: Jetpack
moleUsage: 0.00085
- type: CanMoveInAir
- type: InputMover
toParent: true

#Engineering Hardsuit
- type: entity
Expand Down Expand Up @@ -97,6 +119,28 @@
clothingPrototype: ClothingHeadHelmetHardsuitEngineering
- type: StaminaDamageResistance
coefficient: 0.75 # 25%
- type: GasTank
outputPressure: 42.6
air:
volume: 1.5
temperature: 293.15
moles:
- 0.307706858 # oxygen
- 0.307706858 # nitrogen
- type: ActivatableUI
key: enum.SharedGasTankUiKey.Key
- type: UserInterface
interfaces:
- key: enum.SharedGasTankUiKey.Key
type: GasTankBoundUserInterface
- type: Explosive
explosionType: Default
maxIntensity: 20
- type: Jetpack
moleUsage: 0.00085
- type: CanMoveInAir
- type: InputMover
toParent: true

#Spationaut Hardsuit
- type: entity
Expand Down Expand Up @@ -384,6 +428,28 @@
- type: SupermatterImmune
- type: StaminaDamageResistance
coefficient: 0.65 # 35%
- type: GasTank
outputPressure: 42.6
air:
volume: 3
temperature: 293.15
moles:
- 0.615413716 # oxygen
- 0.615413716 # nitrogen
- type: ActivatableUI
key: enum.SharedGasTankUiKey.Key
- type: UserInterface
interfaces:
- key: enum.SharedGasTankUiKey.Key
type: GasTankBoundUserInterface
- type: Explosive
explosionType: Default
maxIntensity: 20
- type: Jetpack
moleUsage: 0.00085
- type: CanMoveInAir
- type: InputMover
toParent: true

#Chief Medical Officer's Hardsuit
- type: entity
Expand Down Expand Up @@ -879,6 +945,28 @@
- type: StaminaDamageResistance
coefficient: 0.5 # 50%
- type: BiocodedClothing #LPP
- type: GasTank
outputPressure: 42.6
air:
volume: 3
temperature: 293.15
moles:
- 0.615413716 # oxygen
- 0.615413716 # nitrogen
- type: ActivatableUI
key: enum.SharedGasTankUiKey.Key
- type: UserInterface
interfaces:
- key: enum.SharedGasTankUiKey.Key
type: GasTankBoundUserInterface
- type: Explosive
explosionType: Default
maxIntensity: 20
- type: Jetpack
moleUsage: 0.00085
- type: CanMoveInAir
- type: InputMover
toParent: true

#ERT Medic Hardsuit
- type: entity
Expand Down
17 changes: 13 additions & 4 deletions Resources/Prototypes/Entities/Objects/Devices/pda.yml
Original file line number Diff line number Diff line change
Expand Up @@ -99,6 +99,8 @@
type: InstrumentBoundUserInterface
- key: enum.HealthAnalyzerUiKey.Key
type: HealthAnalyzerBoundUserInterface
- key: enum.GasAnalyzerUiKey.Key
type: GasAnalyzerBoundUserInterface
- type: Tag
tags:
- DoorBumpOpener
Expand All @@ -115,6 +117,13 @@
scanningEndSound:
path: "/Audio/Items/Medical/healthscanner.ogg"

- type: entity
parent: BasePDA
id: BaseEngineerPDA
abstract: true
components:
- type: GasAnalyzer

- type: entity
parent: BasePDA
id: PassengerPDA
Expand All @@ -128,7 +137,7 @@
borderColor: "#717059"

- type: entity
parent: BasePDA
parent: BaseEngineerPDA
id: TechnicalAssistantPDA
name: technical assistant PDA
description: Why isn't it yellow?
Expand Down Expand Up @@ -517,7 +526,7 @@
state: pda-hop

- type: entity
parent: BasePDA
parent: BaseEngineerPDA
id: CEPDA
name: chief engineer PDA
description: Looks like it's barely been used.
Expand All @@ -532,7 +541,7 @@
state: pda-ce

- type: entity
parent: BasePDA
parent: BaseEngineerPDA
id: EngineerPDA
name: engineer PDA
description: Rugged and well-worn.
Expand Down Expand Up @@ -830,7 +839,7 @@
program: 2

- type: entity
parent: BasePDA
parent: BaseEngineerPDA
id: AtmosPDA
name: atmos PDA
description: Still smells like plasma.
Expand Down
4 changes: 2 additions & 2 deletions Resources/Prototypes/Traits/physical.yml
Original file line number Diff line number Diff line change
Expand Up @@ -414,7 +414,7 @@
- type: trait
id: BionicArm
category: Physical
points: -9
points: -4
requirements:
- !type:CharacterJobRequirement
inverted: true
Expand All @@ -423,7 +423,7 @@
components:
- type: Prying
speedModifier: 1
pryPowered: true
pryPowered: false
force: true

- type: trait
Expand Down
Loading
Loading