Skip to content

Commit

Permalink
Merge branch 'master' into 6
Browse files Browse the repository at this point in the history
  • Loading branch information
DarkSide-droids authored Nov 1, 2024
2 parents 5e88fe4 + 0394782 commit 853e457
Show file tree
Hide file tree
Showing 33 changed files with 647 additions and 36 deletions.
3 changes: 1 addition & 2 deletions .github/CODEOWNERS
Validating CODEOWNERS rules …
Original file line number Diff line number Diff line change
@@ -1,2 +1 @@
**/_LostParadise/** @Flybik @Evgencheg
* @BL02DL
* @BL02DL @Flybik @Evgencheg
4 changes: 4 additions & 0 deletions Content.IntegrationTests/Tests/PostMapInitTest.cs
Original file line number Diff line number Diff line change
Expand Up @@ -67,6 +67,10 @@ public sealed class PostMapInitTest
"LPPNormandy", //LPP
"LPPPebble", //LPP
"LPPSubmarine", //LPP
"H_LPPKerberos", //LPP
"H_LPPAsterisk", //LPP
"H_LPPNormandy", //LPP
"H_LPPPebble", //LPP
"Gax",
"Rad"
};
Expand Down
21 changes: 21 additions & 0 deletions Content.Server/Supermatter/Systems/SupermatterSystem.Processing.cs
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 radioChannel = _prototypeManager.Index<RadioChannelPrototype>(channelName);
_radioSystem.SendRadioMessage(source, message, radioChannel, source);
}

/// <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);
}
}

/// <summary>
Expand Down
115 changes: 115 additions & 0 deletions Resources/Changelog/ChangelogLPP.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2411,3 +2411,118 @@
id: 133
time: '2024-10-28T10:52:49.0000000+00:00'
url: https://github.com/Lost-Paradise-Project/Lost-Paradise/pull/306
- author: BL02DL
changes:
- message: "\u0423\u0431\u0440\u0430\u043D\u043E \u0432\u0435\u0441\u0435\u043B\u044C\
\u0435!"
type: Remove
- message: "\u0414\u043E\u0431\u0430\u0432\u043B\u0435\u043D\u044B \u0441\u0442\u0440\
\u0430\u0448\u0438\u043B\u043A\u0438!"
type: Add
id: 134
time: '2024-10-28T14:57:15.0000000+00:00'
url: https://github.com/Lost-Paradise-Project/Lost-Paradise/pull/308
- author: MrDarkSide
changes:
- message: "\u0418\u0437\u043C\u0435\u043D\u0435\u043D\u0430 \u0437\u0430\u0434\u0435\
\u0440\u0436\u043A\u0430 \u043F\u0435\u0440\u0435\u0434 \u0438\u0441\u0447\u0435\
\u0437\u043D\u043E\u0432\u0435\u043D\u0438\u0435\u043C \u0443 \u0433\u043E\u043B\
\u043E\u0431\u0430\u0440\u044C\u0435\u0440\u0430 \u0421\u0411 \u0441 180 \u0441\
\u0435\u043A. \u0434\u043E 600 \u0441\u0435\u043A."
type: Tweak
- message: "\u0418\u0437\u043C\u0435\u043D\u0435\u043D\u043E \u043A\u043E\u043B\
-\u0432\u043E \u0443\u0440\u043E\u043D\u0430 \u043A\u043E\u0442\u043E\u0440\u044B\
\u0435 \u043B\u0435\u0447\u0430\u0442 \u043F\u0440\u043E\u0432\u043E\u0434\u0430\
\ \u0434\u043B\u044F \u041A\u041F\u0411. \u0421 -1.66 \u0434\u043E -3.50."
type: Tweak
- message: "\u0418\u0437\u043C\u0435\u043D\u0435\u043D\u0430 \u0437\u0430\u0434\u0435\
\u0440\u0436\u043A\u0430 \u0438\u0441\u043F\u043E\u043B\u044C\u0437\u043E\u0432\
\u0430\u043D\u0438\u044F \u043F\u0440\u043E\u0432\u043E\u0434\u043E\u0432 \u043D\
\u0430 \u041A\u041F\u0411 \u0441 0.6 \u0434\u043E 0.7"
type: Tweak
id: 135
time: '2024-10-31T23:53:33.0000000+00:00'
url: https://github.com/Lost-Paradise-Project/Lost-Paradise/pull/309
- author: Farrellka
changes:
- message: "\u0414\u043E\u0431\u0430\u0432\u043B\u0435\u043D \u0433\u0430\u0437\u043E\
\u0430\u043D\u0430\u043B\u0438\u0437\u0430\u0442\u043E\u0440 \u0432 \u041A\u041F\
\u041A \u0432\u0441\u0435\u043C \u0438\u043D\u0436\u0435\u043D\u0435\u0440\u0430\
\u043C!"
type: Add
- message: "\u0414\u043E\u0431\u0430\u0432\u043B\u0435\u043D\u0430 \u0432\u043E\u0437\
\u043C\u043E\u0436\u043D\u043E\u0441\u0442\u044C \u0421\u0443\u043F\u0435\u0440\
\u043C\u0430\u0442\u0435\u0440\u0438\u0438 \u0433\u043E\u0432\u043E\u0440\u0438\
\u0442\u044C \u0432 \u0440\u0430\u0446\u0438\u044E \u0418\u043D\u0436\u0435\u043D\
\u0435\u0440\u0430\u043C \u043E \u0435\u0451 \u043D\u0435\u0441\u0442\u0430\u0431\
\u0438\u043B\u044C\u043D\u043E\u0441\u0442\u0438!"
type: Add
- message: "\u0414\u043E\u0431\u0430\u0432\u043B\u0435\u043D\u044B \u043C\u0430\u0433\
\u043D\u0438\u0442\u0431\u0443\u0442\u0441\u044B \u0432 \u0448\u043A\u0430\u0444\
\u044B \u0430\u0442\u043C\u043E\u0441\u0430\u043C."
type: Add
- message: "\u0412 \u043B\u043E\u0434\u0430\u0443\u0442 \u0421\u0418 \u0434\u043E\
\u0431\u0430\u0432\u043B\u0435\u043D\u044B \u0435\u0433\u043E \u043E\u0434\u0435\
\u0436\u0434\u0430, \u0430 \u0442\u0430\u043A \u0436\u0435 \u043A\u0430\u0441\
\u043A\u0438."
type: Add
- message: "\u0414\u043E\u0431\u0430\u0432\u043B\u0435\u043D \u0431\u043E\u0435\u0432\
\u043E\u0439 \u0433\u0438\u043F\u043E \u0432 \u0448\u043A\u0430\u0444 \u041F\
\u043E\u043B\u0435\u0432\u043E\u0433\u043E \u0412\u0440\u0430\u0447\u0430!"
type: Add
- message: "\u0414\u043E\u0431\u0430\u0432\u043B\u0435\u043D \u0431\u043E\u0435\u0432\
\u043E\u0439 \u0433\u0438\u043F\u043E \u0437\u0430 4 \u043E\u0447\u043A\u0430\
, \u0430 \u0442\u0430\u043A \u0436\u0435 \u0431\u043E\u0435\u0432\u0430\u044F\
\ \u0430\u043F\u0442\u0435\u0447\u043A\u0430 \u0437\u0430 2 \u043E\u0447\u043A\
\u0430 \u0432 \u043B\u043E\u0434\u0430\u0443\u0442 \u041E\u0444\u0438\u0446\u0435\
\u0440\u0430 \"\u0421\u0438\u043D\u0438\u0439 \u0429\u0438\u0442\"!"
type: Add
- message: "\u0414\u043E\u0431\u0430\u0432\u043B\u0435\u043D\u044B \u0442\u0440\u0443\
\u0441\u0438\u043A\u0438 \u0433\u043B\u0430\u0432\u0430\u043C \u043E\u0442\u0434\
\u0435\u043B\u043E\u0432 \u0432 \u0438\u0445 \u0448\u043A\u0430\u0444\u0447\u0438\
\u043A\u0438, \u0430 \u0442\u0430\u043A \u0436\u0435 \u0440\u0443\u0447\u043A\
\u0438 \u0432 \u0438\u0445 \u041A\u041F\u041A!"
type: Add
- message: "\u0418\u0437\u043C\u0435\u043D\u0435\u043D\u044B \u0441\u043A\u0430\u0444\
\u0430\u043D\u0434\u0440\u044B \u0438\u043D\u0436\u0435\u043D\u0435\u0440\u043E\
\u0432. \u0422\u0435\u043F\u0435\u0440\u044C \u0438\u0445 \u0448\u043B\u0435\
\u043C\u0430 \u0437\u0430\u0449\u0438\u0449\u0430\u044E\u0442 \u043E\u0442 \u0441\
\u0432\u0430\u0440\u043A\u0438."
type: Tweak
- message: "\u0418\u0437\u043C\u0435\u043D\u0451\u043D \u043F\u0435\u0440\u043A\
\ \"\u0411\u0438\u043E\u043D\u0438\u0447\u0435\u0441\u043A\u0430\u044F \u0440\
\u0443\u043A\u0430\". \u0422\u0435\u043F\u0435\u0440\u044C \u043E\u043D\u0430\
\ \u0440\u0430\u0431\u043E\u0442\u0430\u0435\u0442 \u043A\u0430\u043A \u043B\
\u043E\u043C, \u043E\u0442\u043A\u0440\u044B\u0432\u0430\u044F \u0442\u043E\u043B\
\u044C\u043A\u043E \u0432\u044B\u043A\u043B\u044E\u0447\u0435\u043D\u043D\u044B\
\u0435 \u0448\u043B\u044E\u0437\u044B. \u0422\u0430\u043A \u0436\u0435 \u0441\
\u0442\u043E\u0438\u043C\u043E\u0441\u0442\u044C \u0443\u043C\u0435\u043D\u044C\
\u0448\u0435\u043D\u0430 \u0441 9 \u0434\u043E 4."
type: Tweak
- message: "\u0418\u0437\u043C\u0435\u043D\u0435\u043D\u044B \u0433\u0430\u0440\u043D\
\u0438\u0442\u0443\u0440\u044B \u0413\u043B\u0430\u0432\u044B \u041F\u0435\u0440\
\u0441\u043E\u043D\u0430\u043B\u0430. \u0422\u0435\u043F\u0435\u0440\u044C \u043E\
\u043D\u0438 \u0438\u043C\u0435\u044E\u0442 \u0432\u0441\u0435 \u043A\u043B\u044E\
\u0447\u0438 \u0448\u0438\u0444\u0440\u043E\u0432\u0430\u043D\u0438\u044F, \u043A\
\u0430\u043A \u044D\u0442\u043E \u0431\u044B\u043B\u043E \u0440\u0430\u043D\u044C\
\u0448\u0435."
type: Tweak
- message: "\u0418\u0441\u043F\u0440\u0430\u0432\u043B\u0435\u043D\u044B \u041A\u041F\
\u041A \u041F\u043E\u043B\u0435\u0432\u043E\u0433\u043E \u0418\u043D\u0436\u0435\
\u043D\u0435\u0440\u0430 \u0438 \u041F\u0438\u043B\u043E\u0442\u0430 \u0421\u0411\
! \u0422\u0435\u043F\u0435\u0440\u044C \u043E\u043D\u0438 \u0438\u043C\u0435\
\u044E\u0442 \u043F\u0440\u043E\u0433\u0440\u0430\u043C\u043C\u044B \u0421\u043B\
\u0443\u0436\u0431\u044B \u0411\u0435\u0437\u043E\u043F\u0430\u0441\u043D\u043E\
\u0441\u0442\u0438."
type: Fix
- message: "\u0418\u0441\u043F\u0440\u0430\u0432\u043B\u0435\u043D \u043B\u043E\u0434\
\u0430\u0443\u0442 \u041E\u0444\u0438\u0446\u0435\u0440\u0430 \"\u0421\u0438\
\u043D\u0438\u0439 \u0429\u0438\u0442\". \u0422\u0435\u043F\u0435\u0440\u044C\
\ \u043C\u043E\u0436\u043D\u043E \u0432\u044B\u0431\u0440\u0430\u0442\u044C\
\ \u043B\u0438\u0448\u044C \u043E\u0434\u0438\u043D \u043F\u0438\u0441\u0442\
\u043E\u043B\u0435\u0442 .45 \u0438 \u043E\u0431\u043E\u0439\u043C\u0443 \u043A\
\ \u043D\u0435\u043C\u0443."
type: Fix
id: 136
time: '2024-10-31T23:54:32.0000000+00:00'
url: https://github.com/Lost-Paradise-Project/Lost-Paradise/pull/310
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,7 +2,7 @@ ent-LPPHosPen = Ручка Главы Службы Безопасности
.desc = { ent-Pen.desc }
ent-LPPCEPen = Ручка Старшего Инженера
.desc = { ent-Pen.desc }
ent-LPPQMPen = Ручка Квартир Мейстера
ent-LPPQMPen = Ручка Квартирмейстера
.desc = { ent-Pen.desc }
ent-LPPCMOPen = Ручка Главного Врача
.desc = { ent-Pen.desc }
Expand Down
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 = Улучшенное, модульное устройство перехвата, которое помещается на голову.
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
17 changes: 17 additions & 0 deletions Resources/Prototypes/Catalog/Fills/Lockers/heads.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@
- id: LunchboxCommandFilledRandom # Delta-V Lunchboxes!
prob: 0.3
- id: WeaponEnergyGunMini #LPP
- id: LPPQMPanties #LPP

- type: entity
id: LockerCaptainFilledHardsuit
Expand Down Expand Up @@ -56,6 +57,7 @@
- id: MedalCase
- id: LunchboxCommandFilledRandom # Delta-V Lunchboxes!
prob: 0.3
- id: LPPCapPanties #LPP

- type: entity
id: LockerCaptainFilled
Expand Down Expand Up @@ -89,6 +91,7 @@
- id: ClothingHeadHatBeretCap # Nyanotrasen - Captain's Beret
- id: LunchboxCommandFilledRandom # Delta-V Lunchboxes!
prob: 0.3
- id: LPPCapPanties #LPP

- type: entity
id: LockerCaptainFilledNoLaser
Expand Down Expand Up @@ -121,6 +124,7 @@
- id: ClothingHeadHatBeretCap # Nyanotrasen - Captain's Beret
- id: LunchboxCommandFilledRandom # Delta-V Lunchboxes!
prob: 0.3
- id: LPPCapPanties #LPP

- type: entity
id: LockerHeadOfPersonnelFilled
Expand Down Expand Up @@ -156,6 +160,7 @@
- id: LPPBoxFolderSecretBlue
prob: 0.6
# - >
- id: LPPHOPPanties #LPP

- type: entity
id: LockerChiefEngineerFilledHardsuit
Expand All @@ -181,9 +186,12 @@
- id: BoxPDAEngineering # Delta-V
- id: RCD
- id: RCDAmmo
- id: LPPRCDFAPDevice
- id: LPPRCDFAPAmmo
- id: CEIDCard # Delta-V
- id: LunchboxCommandFilledRandom # Delta-V Lunchboxes!
prob: 0.3
- id: LPPCEPanties #LPP

- type: entity
id: LockerChiefEngineerFilled
Expand All @@ -206,8 +214,11 @@
- id: CEIDCard # Delta-V
- id: RCD
- id: RCDAmmo
- id: LPPRCDFAPDevice
- id: LPPRCDFAPAmmo
- id: LunchboxCommandFilledRandom # Delta-V Lunchboxes!
prob: 0.3
- id: LPPCEPanties #LPP

- type: entity
id: LockerChiefMedicalOfficerFilledHardsuit
Expand Down Expand Up @@ -236,6 +247,7 @@
- id: CMOIDCard # Delta-V
- id: LunchboxCommandFilledRandom # Delta-V Lunchboxes!
prob: 0.3
- id: LPPCMOPanties #LPP

- type: entity
id: LockerChiefMedicalOfficerFilled
Expand All @@ -260,6 +272,7 @@
- id: CMOIDCard # Delta-V
- id: LunchboxCommandFilledRandom # Delta-V Lunchboxes!
prob: 0.3
- id: LPPCMOPanties #LPP

- type: entity
id: LockerResearchDirectorFilledHardsuit
Expand All @@ -283,6 +296,7 @@
- id: EncryptionKeyBinary
- id: LunchboxCommandFilledRandom # Delta-V Lunchboxes!
prob: 0.3
- id: LPPRDPanties #LPP

- type: entity
id: LockerResearchDirectorFilled
Expand All @@ -305,6 +319,7 @@
- id: EncryptionKeyBinary
- id: LunchboxCommandFilledRandom # Delta-V Lunchboxes!
prob: 0.3
- id: LPPRDPanties #LPP

- type: entity
id: LockerHeadOfSecurityFilledHardsuit
Expand Down Expand Up @@ -338,6 +353,7 @@
prob: 0.3
#LPP
- id: LPPBoxArmband
- id: LPPHOSPanties

- type: entity
id: LockerHeadOfSecurityFilled
Expand Down Expand Up @@ -369,6 +385,7 @@
prob: 0.3
#LPP
- id: LPPBoxArmband
- id: LPPHOSPanties

- type: entity
id: LockerFreezerVaultFilled
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
Loading

0 comments on commit 853e457

Please sign in to comment.