-
Notifications
You must be signed in to change notification settings - Fork 18
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Doublechest
committed
Jul 10, 2024
1 parent
4bde71b
commit 8f309d0
Showing
409 changed files
with
69,528 additions
and
1,220 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
17 changes: 17 additions & 0 deletions
17
Content.Server/Stories/Prison/Components/PrisonComponent.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
namespace Content.Server.Stories.Prison; | ||
|
||
[RegisterComponent] | ||
public sealed partial class PrisonComponent : Component | ||
{ | ||
/// <summary> | ||
/// Станция, к которой приписана тюрьма. | ||
/// </summary> | ||
[DataField] | ||
public EntityUid? Station; | ||
|
||
/// <summary> | ||
/// Тюремные шаттлы. | ||
/// </summary> | ||
[DataField] | ||
public List<EntityUid> Shuttles = new(); | ||
} |
11 changes: 11 additions & 0 deletions
11
Content.Server/Stories/Prison/Components/PrisonShuttleComponent.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
namespace Content.Server.Stories.Prison; | ||
|
||
[RegisterComponent] | ||
public sealed partial class PrisonShuttleComponent : Component | ||
{ | ||
/// <summary> | ||
/// Тюрьма, которой принадлежит шаттл. | ||
/// </summary> | ||
[DataField] | ||
public EntityUid? Prison; | ||
} |
17 changes: 17 additions & 0 deletions
17
Content.Server/Stories/Prison/Components/StationPrisonComponent.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
using Content.Server.Maps; | ||
using Robust.Shared.Prototypes; | ||
|
||
namespace Content.Server.Stories.Prison; | ||
|
||
[RegisterComponent] | ||
public sealed partial class StationPrisonComponent : Component | ||
{ | ||
[DataField] | ||
public ProtoId<GameMapPrototype> GameMap = "StoriesPrison"; | ||
|
||
/// <summary> | ||
/// Тюрьма, приписанная к станции. | ||
/// </summary> | ||
[DataField] | ||
public EntityUid? Prison; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,55 @@ | ||
using Content.Server.GameTicking; | ||
using Content.Server.Station.Systems; | ||
using Robust.Server.GameObjects; | ||
using Robust.Shared.Map; | ||
using Robust.Shared.Prototypes; | ||
|
||
namespace Content.Server.Stories.Prison; | ||
|
||
public sealed partial class PrisonSystem : EntitySystem | ||
{ | ||
[Dependency] private readonly GameTicker _gameTicker = default!; | ||
[Dependency] private readonly MapSystem _map = default!; | ||
[Dependency] private readonly IMapManager _mapManager = default!; | ||
[Dependency] private readonly IPrototypeManager _prototypeManager = default!; | ||
[Dependency] private readonly StationSystem _station = default!; | ||
private ISawmill _sawmill = default!; | ||
|
||
public override void Initialize() | ||
{ | ||
_sawmill = Logger.GetSawmill("prison"); | ||
SubscribeLocalEvent<StationPrisonComponent, MapInitEvent>(OnStationInit); | ||
} | ||
|
||
private void OnStationInit(EntityUid uid, StationPrisonComponent component, MapInitEvent args) | ||
{ | ||
var prototype = _prototypeManager.Index(component.GameMap); | ||
|
||
_map.CreateMap(out var mapId, false); | ||
_gameTicker.LoadGameMap(prototype, mapId, null); | ||
|
||
var prison = _station.GetStationInMap(mapId); | ||
|
||
if (prison == null) | ||
{ | ||
_mapManager.DeleteMap(mapId); | ||
_sawmill.Error("Failed to find prison station"); | ||
return; | ||
} | ||
|
||
var prisonComp = EnsureComp<PrisonComponent>(prison.Value); | ||
prisonComp.Station = uid; | ||
component.Prison = prison; | ||
|
||
// Тюремные шаттлы могут быть на карте. | ||
foreach (var grid in _mapManager.GetAllGrids(mapId)) | ||
if (TryComp<PrisonShuttleComponent>(grid.Owner, out var shuttle)) | ||
{ | ||
_station.AddGridToStation(prison.Value, grid.Owner); | ||
shuttle.Prison = component.Prison; | ||
prisonComp.Shuttles.Add(grid.Owner); | ||
} | ||
|
||
_mapManager.DoMapInitialize(mapId); | ||
} | ||
} |
4 changes: 0 additions & 4 deletions
4
.../Locale/ru-RU/ss14-ru/prototypes/stories/catalog/fills/backpacks/startergear/backpack.ftl
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 0 additions & 2 deletions
2
...Locale/ru-RU/ss14-ru/prototypes/stories/catalog/fills/backpacks/startergear/duffelbag.ftl
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
3 changes: 0 additions & 3 deletions
3
Resources/Locale/ru-RU/ss14-ru/prototypes/stories/catalog/fills/lockers/jedi_nt.ftl
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +0,0 @@ | ||
ent-LockerJediNtFilled = { ent-LockerJediNt } | ||
.suffix = Заполненный | ||
.desc = { ent-LockerJediNt.desc } | ||
9 changes: 0 additions & 9 deletions
9
Resources/Locale/ru-RU/ss14-ru/prototypes/stories/catalog/fills/lockers/suit_storage.ftl
This file was deleted.
Oops, something went wrong.
4 changes: 0 additions & 4 deletions
4
Resources/Locale/ru-RU/ss14-ru/prototypes/stories/entities/clothing/back/backpacks.ftl
This file was deleted.
Oops, something went wrong.
2 changes: 0 additions & 2 deletions
2
Resources/Locale/ru-RU/ss14-ru/prototypes/stories/entities/clothing/back/duffel.ftl
This file was deleted.
Oops, something went wrong.
2 changes: 0 additions & 2 deletions
2
Resources/Locale/ru-RU/ss14-ru/prototypes/stories/entities/clothing/back/satchel.ftl
This file was deleted.
Oops, something went wrong.
2 changes: 0 additions & 2 deletions
2
Resources/Locale/ru-RU/ss14-ru/prototypes/stories/entities/clothing/ears/headsets.ftl
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,2 @@ | ||
ent-ClothingHeadsetIAA = гарнитура АВД | ||
.desc = Гарнитура агента внутренних дел, чтобы услышать последние слова капитана. | ||
ent-ClothingHeadsetPrison = гарнитура космической тюрьмы | ||
.desc = Гарнитура, используемая сотрудниками космической тюрьмы. |
4 changes: 1 addition & 3 deletions
4
Resources/Locale/ru-RU/ss14-ru/prototypes/stories/entities/clothing/ears/headsets_alt.ftl
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,2 @@ | ||
ent-ClothingHeadsetJediNtAlt = полноразмерная гарнитура стража клинка | ||
.desc = Почему тут нет командной частоты? | ||
ent-ClothingHeadsetPrisonAlt = полноразмерная гарнитура ГКТ | ||
.desc = { ent-ClothingHeadsetAlt.desc } | ||
.desc = Почему тут нет командной частоты? |
2 changes: 0 additions & 2 deletions
2
Resources/Locale/ru-RU/ss14-ru/prototypes/stories/entities/clothing/eyes/glasses.ftl
This file was deleted.
Oops, something went wrong.
2 changes: 0 additions & 2 deletions
2
Resources/Locale/ru-RU/ss14-ru/prototypes/stories/entities/clothing/head/hats.ftl
This file was deleted.
Oops, something went wrong.
2 changes: 0 additions & 2 deletions
2
Resources/Locale/ru-RU/ss14-ru/prototypes/stories/entities/clothing/head/soft.ftl
This file was deleted.
Oops, something went wrong.
2 changes: 0 additions & 2 deletions
2
Resources/Locale/ru-RU/ss14-ru/prototypes/stories/entities/clothing/neck/cloaks.ftl
This file was deleted.
Oops, something went wrong.
2 changes: 0 additions & 2 deletions
2
Resources/Locale/ru-RU/ss14-ru/prototypes/stories/entities/clothing/outerclothing/coats.ftl
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,2 @@ | ||
ent-ClothingOuterCoatJedi = накидка джедая | ||
.desc = Длинный вид одежды, который свободно лежит на плечах, охватывая шею, но не имеет капюшона. | ||
ent-ClothingOuterCoatHoSP = пальто начальника космической тюрьмы | ||
.desc = Прочное холщовое пальто, разработанное и созданное компанией TX Fabrication Corp. Его ношение заставляет сочувствовать судьбе тибетцев. |
2 changes: 0 additions & 2 deletions
2
...s/Locale/ru-RU/ss14-ru/prototypes/stories/entities/clothing/outerclothing/wintercoats.ftl
This file was deleted.
Oops, something went wrong.
4 changes: 0 additions & 4 deletions
4
Resources/Locale/ru-RU/ss14-ru/prototypes/stories/entities/clothing/uniforms/jumpskirts.ftl
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 0 additions & 2 deletions
2
...rces/Locale/ru-RU/ss14-ru/prototypes/stories/entities/objects/devices/encryption_keys.ftl
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,2 @@ | ||
ent-EncryptionKeyIAA = ключ шифрования авд | ||
.desc = Ключ шифрования, используемый самым дотошным человеком. | ||
ent-EncryptionKeyPrison = ключ шифрования космической тюрьмы | ||
.desc = Ключ шифрования |
8 changes: 0 additions & 8 deletions
8
Resources/Locale/ru-RU/ss14-ru/prototypes/stories/entities/objects/devices/pda.ftl
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,12 +1,4 @@ | ||
ent-JediNtPDA = КПК стража клинка | ||
.desc = Черный, чтобы скрыть повреждения от неправильного использования светового меча. | ||
ent-HeadOfSPPDA = КПК главы космической тюрьмы | ||
.desc = Синий, чтобы скрыть пятна крови пассажира. | ||
ent-SpacePrisonOfficerPDA = КПК офицера космической тюрьмы | ||
.desc = Синий, чтобы скрыть пятна крови пассажира. | ||
ent-SpacePrisonEngineerPDA = КПК инженера космической тюрьмы | ||
.desc = Синий, чтобы скрыть пятна крови пассажира. | ||
ent-SpacePrisonMedicPDA = КПК медика космической тюрьмы | ||
.desc = Синий, чтобы скрыть пятна крови пассажира. | ||
ent-IAAPDA = КПК агента внутрених дел | ||
.desc = Корпорация и прибыль - лучшие друзья. |
10 changes: 1 addition & 9 deletions
10
...es/Locale/ru-RU/ss14-ru/prototypes/stories/entities/objects/misc/identification_cards.ftl
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,12 +1,4 @@ | ||
ent-HeadOfSPIDCard = ID карта главы космической тюрьмы | ||
.desc = { ent-IDCardStandard.desc } | ||
ent-SpacePrisonOfficerIDCard = ID карта офицера космической тюрьмы | ||
.desc = { ent-HeadOfSPIDCard.desc } | ||
ent-SpacePrisonEngineerIDCard = ID карта инженера космической тюрьмы | ||
.desc = { ent-HeadOfSPIDCard.desc } | ||
ent-SpacePrisonMedicIDCard = ID карта медика космической тюрьмы | ||
.desc = { ent-HeadOfSPIDCard.desc } | ||
ent-IAAIDCard = ID карта агента внутрених дел | ||
.desc = { ent-HeadOfSPIDCard.desc } | ||
.desc = { ent-PRISONIDCardHeadOfPrison.desc } | ||
ent-JediNtIDCard = ID карта стража клинка | ||
.desc = Карта, необходимая для доступа в различные области станции. |
3 changes: 0 additions & 3 deletions
3
Resources/Locale/ru-RU/ss14-ru/prototypes/stories/entities/objects/misc/stamps.ftl
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 0 additions & 2 deletions
2
Resources/Locale/ru-RU/ss14-ru/prototypes/stories/entities/objects/weapons/melee/sword.ftl
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +0,0 @@ | ||
ent-HoSPSabre = сабля главы космической тюрьмы | ||
.desc = Парадное оружие, принадлежащее главе космической тюрьмы. | ||
4 changes: 0 additions & 4 deletions
4
.../ru-RU/ss14-ru/prototypes/stories/entities/structures/storage/closets/lockers/lockers.ftl
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,2 @@ | ||
ent-LockerJediNt = шкаф стража клинка | ||
.desc = Арсенал моды каждого стража клинка. | ||
ent-LockerSpacePrison = шкаф офицера космической тюрьмы | ||
.desc = { ent-LockerBaseSecure.desc } | ||
ent-LockerWardenOfSP = шкаф главы космической тюрьмы | ||
.desc = { ent-LockerSpacePrison.desc } |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
department-SpacePrison = Космическая Тюрьма | ||
department-Prison = Космическая Тюрьма |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,7 @@ | ||
job-name-hosp = глава космической тюрьмы | ||
job-name-space-prison-officer = офицер космической тюрьмы | ||
job-name-space-prison-engineer = инженер космической тюрьмы | ||
job-name-space-prison-medic = медик космической тюрьмы | ||
job-name-iaa = агент внутрених дел | ||
# Role timers - Make these alphabetical or I cut you | ||
JobHeadOfSpacePrison = глава космической тюрьмы | ||
JobSpacePrisonOfficer = офицер космической тюрьмы | ||
JobSpacePrisonEngineer = инженер космической тюрьмы | ||
JobSpacePrisonMedic = медик космической тюрьмы | ||
JobHeadOfSpacePrison = глава тюрьмы | ||
JobSpacePrisonOfficer = офицер тюрьмы | ||
JobSpacePrisonEngineer = инженер тюрьмы | ||
JobSpacePrisonMedic = медик тюрьмы | ||
JobIAA = агент внутрених дел |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +0,0 @@ | ||
job-supervisors-hosp = главе космической тюрьмы | ||
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,2 @@ | ||
stamp-component-stamped-name-hosp = Глава космической тюрьмы | ||
stamp-component-stamped-name-iaa = Агент внутрених дел | ||
stamp-component-stamped-name-psychologist = Психолог |
Oops, something went wrong.