-
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 5, 2024
1 parent
c46706e
commit aff13f2
Showing
70 changed files
with
25,196 additions
and
789 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
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(); | ||
} |
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,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); | ||
} | ||
} |
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
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 } | ||
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +0,0 @@ | ||
job-supervisors-hosp = главе тюрьмы | ||
796 changes: 151 additions & 645 deletions
796
Resources/Maps/Shuttles/prison.yml → Resources/Maps/Stories/Shuttles/prison.yml
Large diffs are not rendered by default.
Oops, something went wrong.
Large diffs are not rendered by default.
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
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
11 changes: 1 addition & 10 deletions
11
Resources/Prototypes/Stories/Catalog/Fills/Backpacks/StarterGear/backpack.yml
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
51 changes: 39 additions & 12 deletions
51
Resources/Prototypes/Stories/Catalog/Fills/Lockers/suit_storage.yml
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,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"]] |
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
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
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
9 changes: 0 additions & 9 deletions
9
Resources/Prototypes/Stories/Entities/Clothing/OuterClothing/wintercoats.yml
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: 1 addition & 1 deletion
2
Resources/Prototypes/Stories/Entities/Objects/identification_cards.yml
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
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
Oops, something went wrong.