Skip to content

Commit

Permalink
Исправления (#488)
Browse files Browse the repository at this point in the history
* init

* fix en us

* translate Labels

* last fix
  • Loading branch information
Rinary1 authored Oct 11, 2024
1 parent f499223 commit d3094b7
Show file tree
Hide file tree
Showing 17 changed files with 18 additions and 174 deletions.
6 changes: 3 additions & 3 deletions .github/config.yml
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
Project-Condor:
org: space-wizards
org: space-sunrise
project: 2
inbox: Inbox
labels:
"W: In Progress": "In Progress"
"W: In Progress": "В Прогрессе"
"W: Discussion": "Design and Discussion"
"W: Backlog": "Backlog"
"W: Next": "Next"
"W: Next": "Следующее"
10 changes: 5 additions & 5 deletions .github/labeler.yml
Original file line number Diff line number Diff line change
@@ -1,22 +1,22 @@
"Changes: Sprites":
"Изменения: Спрайты":
- changed-files:
- any-glob-to-any-file: '**/*.rsi/*.png'

"Changes: Map":
"Изменения: Карты":
- changed-files:
- any-glob-to-any-file:
- 'Resources/Maps/**/*.yml'
- 'Resources/Prototypes/Maps/**/*.yml'

"Changes: UI":
"Изменения: Интерфейс":
- changed-files:
- any-glob-to-any-file: '**/*.xaml*'

"Changes: Shaders":
"Изменения: Шейдеры":
- changed-files:
- any-glob-to-any-file: '**/*.swsl'

"No C#":
"Нет C#":
- changed-files:
# Equiv to any-glob-to-all as long as this has one matcher. If ALL changed files are not C# files, then apply label.
- all-globs-to-all-files: "!**/*.cs"
4 changes: 2 additions & 2 deletions .github/workflows/labeler-needsreview.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ jobs:
steps:
- uses: actions-ecosystem/action-add-labels@v1
with:
labels: "Status: Needs Review"
labels: "Статус: Требует Рассмотрения"
- uses: actions-ecosystem/action-remove-labels@v1
with:
labels: "Status: Awaiting Changes"
labels: "Статус: Ожидает Изменения"
2 changes: 1 addition & 1 deletion .github/workflows/labeler-untriaged.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,4 +11,4 @@ jobs:
- uses: actions-ecosystem/action-add-labels@v1
if: join(github.event.issue.labels) == ''
with:
labels: "Status: Untriaged"
labels: "Статус: Несортированный"
26 changes: 7 additions & 19 deletions Content.Server/Mech/Equipment/EntitySystems/MechGunSystem.cs
Original file line number Diff line number Diff line change
Expand Up @@ -15,28 +15,16 @@ public sealed class MechGunSystem : EntitySystem
public override void Initialize()
{
base.Initialize();
SubscribeLocalEvent<MechEquipmentComponent, GunShotEvent>(MechGunShot);
SubscribeLocalEvent<MechEquipmentComponent, OnEmptyGunShotEvent>(MechEmptyGunShot);
SubscribeLocalEvent<MechEquipmentComponent, GunShotEvent>((id,cmp,_)=> TryChargeGunBattery(id, cmp));
SubscribeLocalEvent<MechEquipmentComponent, OnEmptyGunShotEvent>((id, cmp, _) => TryChargeGunBattery(id, cmp));
}

private void MechGunShot(EntityUid uid, MechEquipmentComponent component, ref GunShotEvent args)
private void TryChargeGunBattery(EntityUid uid, MechEquipmentComponent component)
{
if (!component.EquipmentOwner.HasValue
|| !HasComp<MechComponent>(component.EquipmentOwner.Value)
|| !TryComp<BatteryComponent>(uid, out var battery))
return;

ChargeGunBattery(uid, battery);
}

private void MechEmptyGunShot(EntityUid uid, MechEquipmentComponent component, ref OnEmptyGunShotEvent args)
{
if (!component.EquipmentOwner.HasValue
|| !HasComp<MechComponent>(component.EquipmentOwner.Value)
|| !TryComp<BatteryComponent>(uid, out var battery))
return;

ChargeGunBattery(uid, battery);
if (component.EquipmentOwner.HasValue
&& HasComp<MechComponent>(component.EquipmentOwner.Value)
&& TryComp<BatteryComponent>(uid, out var battery))
ChargeGunBattery(uid, battery);
}

private void ChargeGunBattery(EntityUid uid, BatteryComponent component)
Expand Down

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -28,12 +28,6 @@ ent-WeaponPistolViperBiocode = { ent-WeaponPistolViper }
ent-WeaponRifleM90GrenadeLauncherBiocode = { ent-WeaponRifleM90GrenadeLauncher }
.desc = { ent-WeaponRifleM90GrenadeLauncher.desc }
.suffix = БИОКОД
ent-EnergySwordDoubleBiocode = { ent-EnergySwordDouble }
.desc = { ent-EnergySwordDouble.desc }
.suffix = БИОКОД
ent-EnergySwordBiocode = { ent-EnergySword }
.desc = { ent-EnergySword.desc }
.suffix = БИОКОД
ent-WeaponSIAR52Biocode = { ent-WeaponSIAR52 }
.desc = { ent-WeaponSIAR52.desc }
.suffix = БИОКОД
Expand Down

0 comments on commit d3094b7

Please sign in to comment.