-
Notifications
You must be signed in to change notification settings - Fork 55
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'lockers' of https://github.com/ITamiokiI/space_station_ADT
- Loading branch information
Showing
138 changed files
with
170,842 additions
and
540 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
11 changes: 11 additions & 0 deletions
11
Content.Server/ADT/Eye/Blinding/Components/DamageEyesOnFlashedComponent.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.ADT.Eye.Blinding; | ||
|
||
[RegisterComponent] | ||
[Access(typeof(DamageEyesOnFlashSystem))] | ||
public sealed partial class DamageEyesOnFlashedComponent : Component | ||
{ | ||
[DataField] | ||
public int FlashDamage = 1; | ||
|
||
public TimeSpan NextDamage = TimeSpan.Zero; | ||
} |
6 changes: 6 additions & 0 deletions
6
Content.Server/ADT/Eye/Blinding/Components/NoDamageEyesOnFlashComponent.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,6 @@ | ||
namespace Content.Server.ADT.Eye.Blinding; | ||
|
||
[RegisterComponent] | ||
public sealed partial class NoEyeDamageOnFlashComponent : Component | ||
{ | ||
} |
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,4 @@ | ||
namespace Content.Server.ADT.Eye.Blinding; | ||
|
||
[ByRefEvent] | ||
public record struct FlashedEvent(EntityUid? User, EntityUid? Used); |
27 changes: 27 additions & 0 deletions
27
Content.Server/ADT/Eye/Blinding/Systems/DamageEyesOnFlashSystem.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,27 @@ | ||
using Content.Shared.Eye.Blinding.Systems; | ||
using Robust.Shared.Timing; | ||
|
||
namespace Content.Server.ADT.Eye.Blinding; | ||
|
||
public sealed class DamageEyesOnFlashSystem : EntitySystem | ||
{ | ||
[Dependency] private readonly IGameTiming _timing = default!; | ||
[Dependency] private readonly BlindableSystem _blindable = default!; | ||
|
||
public override void Initialize() | ||
{ | ||
base.Initialize(); | ||
SubscribeLocalEvent<DamageEyesOnFlashedComponent, FlashedEvent>(OnFlashed); | ||
} | ||
|
||
private void OnFlashed(EntityUid uid, DamageEyesOnFlashedComponent comp, ref FlashedEvent args) | ||
{ | ||
if (HasComp<NoEyeDamageOnFlashComponent>(args.Used)) | ||
return; | ||
if (_timing.CurTime < comp.NextDamage) | ||
return; | ||
|
||
_blindable.AdjustEyeDamage(uid, comp.FlashDamage); | ||
comp.NextDamage = _timing.CurTime + TimeSpan.FromSeconds(3); | ||
} | ||
} |
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
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,24 @@ | ||
- files: ["female_sigh.ogg"] | ||
license: "CC-BY-NC-4.0" | ||
copyright: "Original sound by https://freesound.org/people/biawinter/sounds/408090/ - cleaned up, converted to ogg by https://github.com/BasiaBelov" | ||
source: "https://freesound.org/people/biawinter/sounds/408090/" | ||
|
||
- files: ["male_sigh.ogg"] | ||
license: "CC-BY-NC-3.0" | ||
copyright: "Original sound by https://freesound.org/people/Kash15/sounds/409785/ - cleaned up, converted to ogg by https://github.com/BasiaBelov" | ||
source: "https://freesound.org/people/Kash15/sounds/409785/" | ||
|
||
- files: ["sneeze_female.ogg", "sneeze_male.ogg", "sneeze_neutral.ogg"] | ||
license: "CC-BY-SA-3.0" | ||
copyright: "Sounds by https://github.com/TauCetiStation/TauCetiClassic/pull/12835" | ||
source: "https://github.com/Project-IS12/IS12-Warfare" | ||
|
||
- files: ["spit_1.ogg", "spit_2.ogg"] | ||
license: "CC0-1.0" | ||
copyright: "Sounds by https://github.com/TauCetiStation/TauCetiClassic/pull/12835" | ||
source: "https://github.com/Project-IS12/IS12-Warfare" | ||
|
||
- files: ["female_laugh.ogg"] | ||
license: "CC0-1.0" | ||
copyright: "https://zvukogram.com/zvuk/86551/ edited by discord:filokini" | ||
source: "https://zvukogram.com/zvuk/86551/" |
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
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 +1,3 @@ | ||
stamp-component-stamped-name-magistrat = Магистрат | ||
stamp-component-stamped-name-remake = ПЕРЕДЕЛАТЬ | ||
stamp-component-stamped-name-dv = Dar-Vaxed |
2 changes: 0 additions & 2 deletions
2
Resources/Locale/ru-RU/ADT/prototypes/Catalog/Fills/Crates/armory.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
4 changes: 4 additions & 0 deletions
4
Resources/Locale/ru-RU/ADT/prototypes/Entities/Objects/Consumable/Drinks/drinks_flasks.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 +1,6 @@ | ||
ent-ADTDrinkFlaskArmy = Армейская Фляга | ||
.desc = Довольно качественная фляга. | ||
ent-ADTDrinkFlaskDV = фляга Dar-Vaxed | ||
.desc = Фляжка премиум-класса, выполненый из титана с выгравированным на ней символом DV. | ||
.suffix = ДВ |
8 changes: 8 additions & 0 deletions
8
Resources/Locale/ru-RU/ADT/prototypes/Entities/Objects/Misc/paper.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 +1,9 @@ | ||
ent-TapeRecorderTranscript = транскрипция записи | ||
ent-ADTBoxFolderDV = чёрно-оранжевая папка | ||
.desc = Папка выполненый под стиль Dar-Vaxed. | ||
.suffix = ДВ | ||
ent-ADTBoxFolderClipboardDV = планшет Dar-Vaxed | ||
.desc = Стильный планшет, обитый чёрной кожей. Сотрудники Dar-Vaxed часто носят, но редко используют. | ||
.suffix = ДВ |
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
Oops, something went wrong.