Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
  • Loading branch information
Doublechest committed Jul 5, 2024
1 parent c46706e commit aff13f2
Show file tree
Hide file tree
Showing 70 changed files with 25,196 additions and 789 deletions.
2 changes: 1 addition & 1 deletion Content.Server/Spawners/EntitySystems/SpawnPointSystem.cs
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ private void OnPlayerSpawning(PlayerSpawningEvent args)

while ( points.MoveNext(out var uid, out var spawnPoint, out var xform))
{
if (args.Station != null) // && _stationSystem.GetOwningStation(uid, xform) != args.Station)
if (args.Station != null && _stationSystem.GetOwningStation(uid, xform) != args.Station)
continue;

if (_gameTicker.RunLevel == GameRunLevel.InRound && spawnPoint.SpawnType == SpawnPointType.LateJoin)
Expand Down
15 changes: 15 additions & 0 deletions Content.Server/Stories/Prison/StationPrisonComponent.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
using Content.Server.Maps;
using Robust.Shared.Prototypes;
using Content.Shared.Whitelist;

namespace Content.Server.Shuttles.Components;

[RegisterComponent]
public sealed partial class StationPrisonComponent : Component
{
[DataField]
public ProtoId<GameMapPrototype> GameMap = new("/Maps/prison.yml");

[DataField]
public EntityWhitelist Whitelist = new();
}
33 changes: 33 additions & 0 deletions Content.Server/Stories/Prison/StationPrisonSystem.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
using Content.Server.GameTicking;
using Content.Server.Shuttles.Components;
using Robust.Server.GameObjects;
using Robust.Server.Maps;
using Robust.Shared.Map;
using Robust.Shared.Prototypes;

namespace Content.Server.Shuttles.Systems;

public sealed partial class StationPrisonSystem : 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 ShuttleSystem _shuttle = default!;
public override void Initialize()
{
SubscribeLocalEvent<StationPrisonComponent, MapInitEvent>(OnStationInit);
}

private void OnStationInit(EntityUid uid, StationPrisonComponent component, MapInitEvent args)
{
var mapUid = _map.CreateMap(out var mapId);
_mapManager.AddUninitializedMap(mapId);
var gameMap = _prototypeManager.Index(component.GameMap);
var grids = _gameTicker.LoadGameMap(gameMap, mapId, null);
_mapManager.DoMapInitialize(mapId);

_shuttle.TryAddFTLDestination(mapId, true, out _);
_shuttle.SetFTLWhitelist(mapUid, component.Whitelist);
}
}
Original file line number Diff line number Diff line change
@@ -1,7 +1,3 @@
ent-ClothingBackpackSpacePrisonFilled = { ent-ClothingBackpackSpacePrison }
.desc = { ent-ClothingBackpackSpacePrison.desc }
ent-ClothingBackpackJediNtFilled = { ent-ClothingBackpackJediNt }
.desc = { ent-ClothingBackpackJediNt.desc }
ent-ClothingBackpackIAAFilled = { ent-ClothingBackpack }
.desc = { ent-ClothingBackpack.desc }
ent-ClothingBackpackPsychologistFilled = { ent-ClothingBackpackMedical }
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
ent-PRISONClothingBackpackDuffelFilled = { ent-ClothingBackpackDuffelSpacePrison }
.desc = { ent-ClothingBackpackDuffelSpacePrison.desc }
ent-ClothingBackpackDuffelIAAFilled = { ent-ClothingBackpackDuffel }
.desc = { ent-ClothingBackpackDuffel.desc }
ent-ClothingBackpackDuffelPsychologistFilled = { ent-ClothingBackpackDuffelMedical }
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +0,0 @@
ent-LockerJediNtFilled = { ent-LockerJediNt }
.suffix = Заполненный
.desc = { ent-LockerJediNt.desc }
4 changes: 0 additions & 4 deletions Resources/Locale/ru-RU/stories/job/job-names.ftl
Original file line number Diff line number Diff line change
@@ -1,7 +1,3 @@
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 = глава тюрьмы
Expand Down
1 change: 0 additions & 1 deletion Resources/Locale/ru-RU/stories/job/job-supervisors.ftl
Original file line number Diff line number Diff line change
@@ -1 +0,0 @@
job-supervisors-hosp = главе тюрьмы

Large diffs are not rendered by default.

24,588 changes: 24,588 additions & 0 deletions Resources/Maps/Stories/prison.yml

Large diffs are not rendered by default.

3 changes: 0 additions & 3 deletions Resources/Prototypes/Entities/Stations/base.yml
Original file line number Diff line number Diff line change
Expand Up @@ -72,9 +72,6 @@
- /Maps/Ruins/syndicate_dropship.yml
- /Maps/Ruins/whiteship_ancient.yml
- /Maps/Ruins/whiteship_bluespacejumper.yml
prison:
paths:
- /Maps/Shuttles/prison.yml

- type: entity
id: BaseStationCentcomm
Expand Down
1 change: 0 additions & 1 deletion Resources/Prototypes/Roles/Jobs/departments.yml
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,6 @@
- Captain
- IAA # Stories-IAA
- CentralCommandOfficial
- PRISONHeadOfPrison # Stories-SpacePrison
- ChiefEngineer
- ChiefMedicalOfficer
- HeadOfPersonnel
Expand Down
2 changes: 1 addition & 1 deletion Resources/Prototypes/Stories/Access/prison.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
- type: accessLevel
id: HeadOfPrison
name: Глава тюрьмы
name: Начальник тюрьмы

- type: accessLevel
id: PrisonBrig
Expand Down
Original file line number Diff line number Diff line change
@@ -1,13 +1,4 @@
- type: entity
noSpawn: true
parent: PRISONClothingBackpack
id: PRISONClothingBackpackFilled
components:
- type: StorageFill
contents:
- id: BoxSurvivalSecurity
- id: Flash
- id: MagazinePistol
# TODO: Устрарело. Удалить все что ниже.

- type: entity
noSpawn: true
Expand Down
4 changes: 2 additions & 2 deletions Resources/Prototypes/Stories/Catalog/Fills/Lockers/prison.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,12 +5,12 @@
components:
- type: StorageFill
contents:
- id: PRISONHandheldShuttleConsole
# - id: PRISONHandheldShuttleConsole
- id: PRISONClothingHeadHatUshanka
- id: PRISONClothingHeadHatCapHeadOfPrison
- id: ClothingMaskGasSwat
- id: PRISONClothingOuterHardsuitHeadOfPrison
- id: PRISONClothingBeltSheathFilled
# - id: PRISONClothingBeltSheathFilled
- id: WeaponDisabler
- id: DrinkVacuumFlask
- id: ClothingBeltSecurityFilled
Expand Down
51 changes: 39 additions & 12 deletions Resources/Prototypes/Stories/Catalog/Fills/Lockers/suit_storage.yml
Original file line number Diff line number Diff line change
@@ -1,36 +1,63 @@
- type: entity
id: SuitStorageOfficerSP
name: хранилище скафандра офицера тюрьмы
description: Необычное высокотехнологичное хранилище, предназначенное для хранения космических скафандров.
id: PRISONSuitStorageOfficer
parent: SuitStorageBase
suffix: SP Officer
suffix: Officer
components:
- type: StorageFill
contents:
- id: NitrogenTankFilled
- id: OxygenTankFilled
- id: ClothingOuterHardsuitOfficerSP
- id: PRISONClothingOuterHardsuitOfficer
- id: ClothingMaskBreath
- id: ClothingShoesBootsMag
- type: AccessReader
access: [["PrisonBrig"]]

- type: entity
id: SuitStorageEngiSP
name: хранилище скафандра врача тюрьмы
description: Необычное высокотехнологичное хранилище, предназначенное для хранения космических скафандров.
id: PRISONSuitStorageMed
parent: SuitStorageBase
suffix: SP Engineer
suffix: Med
components:
- type: StorageFill
contents:
- id: NitrogenTankFilled
- id: OxygenTankFilled
- id: PRISONClothingOuterHardsuitMedic
- id: ClothingMaskBreath
- id: ClothingShoesBootsMag
- id: ClothingOuterHardsuitEngiSP
- type: AccessReader
access: [["PrisonMed"]]

- type: entity
name: хранилище скафандра инженера тюрьмы
description: Необычное высокотехнологичное хранилище, предназначенное для хранения космических скафандров.
id: PRISONSuitStorageEngi
parent: SuitStorageBase
suffix: Engi
components:
- type: StorageFill
contents:
- id: OxygenTankFilled
- id: PRISONClothingOuterHardsuitEngi
- id: ClothingMaskBreath
- id: ClothingShoesBootsMag
- type: AccessReader
access: [["PrisonEng"]]

- type: entity
id: SuitStorageWardenOfSP
name: хранилище скафандра начальника тюрьмы
description: Необычное высокотехнологичное хранилище, предназначенное для хранения космических скафандров.
id: PRISONSuitStorageHeadOfPrison
parent: SuitStorageBase
suffix: WardenOfSP
suffix: HeadOfPrison
components:
- type: StorageFill
contents:
- id: NitrogenTankFilled
- id: OxygenTankFilled
- id: ClothingOuterHardsuitWardenOfSP
- id: PRISONClothingOuterHardsuitHeadOfPrison
- id: ClothingMaskBreath
- id: ClothingShoesBootsMag
- type: AccessReader
access: [["HeadOfPrison"]]
Original file line number Diff line number Diff line change
Expand Up @@ -10,39 +10,30 @@
Flash: 5
Tourniquet: 5
FlashlightSeclite: 5
ClothingEyesGlassesSunglasses: 2
ClothingEyesHudSecurity: 2
ClothingEyesEyepatchHudSecurity: 2
ClothingBeltSecurityWebbing: 5
PRISONClothingEyesGlasses: 2
PRISONClothingBeltWebbing: 5
CombatKnife: 3
Zipties: 12
RiotShield: 2
RiotLaserShield: 2
RiotBulletShield: 2
RadioHandheldSecurity: 5
# security officers need to follow a diet regimen!
contrabandInventory:
FoodDonutHomer: 12
FoodBoxDonut: 2
#box evidence

- type: vendingMachineInventory
id: PRISONDrobeInventory
startingInventory:
ClothingBackpackSpacePrison: 3
PRISONClothingBackpack: 3
PRISONClothingBackpackSatchel: 3
ClothingBackpackDuffelSpacePrison: 3
ClothingUniformJumpsuitSP: 3
ClothingUniformJumpskirtSP: 3
ClothingHeadHatBeretSP: 3
ClothingHeadHatSPsoft: 3
PRISONClothingBackpackDuffel: 3
PRISONClothingUniformJumpsuit: 3
PRISONClothingHeadHatSoft: 3
PRISONClothingHeadHatBeret: 3
ClothingHeadBandBlue: 3
ClothingShoesBootsJackSP: 3
PRISONClothingShoesBootsJack: 3
ClothingHandsGlovesColorBlack: 3
ClothingUniformJumpsuitSecBlue: 3
PRISONClothingHeadset: 3
ClothingOuterWinterSP: 2
ClothingOuterArmorBasic: 2
ClothingOuterArmorBasicSlim: 2
PRISONClothingOuterVestArmor: 2
ClothingEyesBlindfold: 1
ClothingShoesBootsCombat: 1
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@
- type: entity
parent: ClothingBeltSecurity
id: PRISONClothingBeltWebbing
name: РПС сотрудников тюрьмы
name: РПС сотрудника тюрьмы
description: Уникальный, универсальный разгрузочный жилет с ремнями и поясом, может вмещать снаряжение сотрудников тюрьмы.
components:
- type: Sprite
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@
- type: entity
parent: ClothingHeadsetAlt
id: PRISONClothingHeadsetAlt
name: полноразмерная гарнитура главы тюрьмы
name: полноразмерная гарнитура начальника тюрьмы
description: Нужна, чтобы сообщить капитану о побеге клоуна.
components:
- type: ContainerFill
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
- type: entity
parent: ClothingHeadBaseButcherable
id: PRISONClothingHeadHatCapHeadOfPrison
name: фуражка главы тюрьмы
name: фуражка начальника тюрьмы
description: Прочная форменная фуражка начальника тюрьмы. Напоминает рядовым офицерам, кто здесь главный.
components:
- type: Sprite
Expand Down Expand Up @@ -37,7 +37,7 @@

- type: entity
parent: ClothingHeadBase
id: ClothingHeadHatBeretSP
id: PRISONClothingHeadHatBeret
name: берет тюрьмы
description: Берет - любимый головной убор заключенного. Из него делаются бинты.
components:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
parent: ClothingOuterHardsuitEngineering
id: PRISONClothingOuterHardsuitEngi
name: скафандр инженера тюрьмы
description: Это защищает от космоса.
description: Специальный костюм, защищающий от опасной среды с низким давлением. Имеет радиационную защиту.
components:
- type: Sprite
sprite: Stories/Clothing/OuterClothing/Hardsuits/engisp.rsi
Expand All @@ -14,8 +14,8 @@
- type: entity
parent: ClothingOuterHardsuitSecurity
id: PRISONClothingOuterHardsuitOfficer
name: скафандр персонала тюрьмы
description: Это защищает от космоса.
name: скафандр офицера тюрьмы
description: Специальный костюм, защищающий от опасной среды с низким давлением. Имеет дополнительный слой брони.
components:
- type: Sprite
sprite: Stories/Clothing/OuterClothing/Hardsuits/securitysp.rsi
Expand All @@ -28,7 +28,7 @@
parent: ClothingOuterHardsuitMedical
id: PRISONClothingOuterHardsuitMedic
name: скафандр врача тюрьмы
description: Это защищает от космоса.
description: Специальный костюм, защищающий от опасной среды с низким давлением. Создан из облегчённых материалов для удобства передвижения.
components:
- type: Sprite
sprite: Stories/Clothing/OuterClothing/Hardsuits/medicsp.rsi
Expand All @@ -41,7 +41,7 @@
parent: ClothingOuterHardsuitSecurityRed
id: PRISONClothingOuterHardsuitHeadOfPrison
name: скафандр начальника тюрьмы
description: Это защищает от космоса.
description: Специальный костюм, защищающий от опасной среды с низким давлением. Имеет дополнительный слой брони.
components:
- type: Sprite
sprite: Stories/Clothing/OuterClothing/Hardsuits/hospsp.rsi
Expand Down

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@
- type: entity
parent: ClothingUniformBase
id: PRISONClothingUniformJumpsuitHeadOfPrison
name: комбинезон главы тюрьмы
name: комбинезон начальника тюрьмы
description: Комбинезон из прочного материала, обеспечивающий надежную защиту.
components:
- type: Sprite
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
- type: entity
parent: IDCardStandard
id: PRISONIDCardHeadOfPrison
name: ID карта главы тюрьмы
name: ID карта начальника тюрьмы
description: Карта, необходимая для доступа в различные области станции.
components:
- type: Sprite
Expand Down
2 changes: 1 addition & 1 deletion Resources/Prototypes/Stories/Entities/Objects/pda.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
- type: entity
parent: BasePDA
id: PRISONPDAHeadOfPrison
name: КПК главы тюрьмы
name: КПК начальника тюрьмы
description: Этот КПК - ваш путь к свободе.
components:
- type: Sprite
Expand Down
4 changes: 2 additions & 2 deletions Resources/Prototypes/Stories/Entities/Objects/stamps.yml
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
- type: entity
name: печать главы тюрьмы
name: печать начальника тюрьмы
description: Печать из резины, для проставления печатей на важных документах.
parent: RubberStampBase
id: PRISONRubberStamp
suffix: DO NOT MAP
components:
- type: Stamp
stampedName: Глава тюрьмы
stampedName: Начальник тюрьмы
stampedColor: "#0036A2"
stampState: "paper_stamp-hosp"
- type: Sprite
Expand Down
Loading

0 comments on commit aff13f2

Please sign in to comment.