ну чето вроде пофиксилось
This commit is contained in:
@@ -1,4 +1,4 @@
|
|||||||
using System.Linq;
|
using System.Linq;
|
||||||
using Content.Shared.Eye;
|
using Content.Shared.Eye;
|
||||||
using Content.Shared.Movement.Systems;
|
using Content.Shared.Movement.Systems;
|
||||||
using Content.Shared.Physics;
|
using Content.Shared.Physics;
|
||||||
@@ -16,13 +16,13 @@ public sealed class IncorporealSystem : EntitySystem
|
|||||||
[Dependency] private readonly SharedPhysicsSystem _physics = default!;
|
[Dependency] private readonly SharedPhysicsSystem _physics = default!;
|
||||||
[Dependency] private readonly VisibilitySystem _visibilitySystem = default!;
|
[Dependency] private readonly VisibilitySystem _visibilitySystem = default!;
|
||||||
[Dependency] private readonly SharedStealthSystem _stealth = default!;
|
[Dependency] private readonly SharedStealthSystem _stealth = default!;
|
||||||
|
[Dependency] private readonly TransformSystem _transform = default!;
|
||||||
|
|
||||||
public override void Initialize()
|
public override void Initialize()
|
||||||
{
|
{
|
||||||
SubscribeLocalEvent<IncorporealComponent, ComponentStartup>(OnComponentInit);
|
SubscribeLocalEvent<IncorporealComponent, ComponentStartup>(OnComponentInit);
|
||||||
SubscribeLocalEvent<IncorporealComponent, ComponentShutdown>(OnComponentRemoved);
|
SubscribeLocalEvent<IncorporealComponent, ComponentShutdown>(OnComponentRemoved);
|
||||||
SubscribeLocalEvent<IncorporealComponent, RefreshMovementSpeedModifiersEvent>(OnRefresh);
|
SubscribeLocalEvent<IncorporealComponent, RefreshMovementSpeedModifiersEvent>(OnRefresh);
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
private void OnComponentInit(EntityUid uid, IncorporealComponent component, ComponentStartup args)
|
private void OnComponentInit(EntityUid uid, IncorporealComponent component, ComponentStartup args)
|
||||||
@@ -37,8 +37,8 @@ public sealed class IncorporealSystem : EntitySystem
|
|||||||
|
|
||||||
if (TryComp<VisibilityComponent>(uid, out var visibility))
|
if (TryComp<VisibilityComponent>(uid, out var visibility))
|
||||||
{
|
{
|
||||||
_visibilitySystem.AddLayer(uid, visibility, (int) VisibilityFlags.Ghost, false);
|
_visibilitySystem.AddLayer((uid, visibility), (int) VisibilityFlags.Ghost, false);
|
||||||
_visibilitySystem.RemoveLayer(uid, visibility, (int) VisibilityFlags.Normal, false);
|
_visibilitySystem.RemoveLayer((uid, visibility), (int) VisibilityFlags.Normal, false);
|
||||||
_visibilitySystem.RefreshVisibility(uid);
|
_visibilitySystem.RefreshVisibility(uid);
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -60,14 +60,13 @@ public sealed class IncorporealSystem : EntitySystem
|
|||||||
|
|
||||||
if (TryComp<VisibilityComponent>(uid, out var visibility))
|
if (TryComp<VisibilityComponent>(uid, out var visibility))
|
||||||
{
|
{
|
||||||
_visibilitySystem.RemoveLayer(uid, visibility, (int) VisibilityFlags.Ghost, false);
|
_visibilitySystem.RemoveLayer((uid, visibility), (int) VisibilityFlags.Ghost, false);
|
||||||
_visibilitySystem.AddLayer(uid, visibility, (int) VisibilityFlags.Normal, false);
|
_visibilitySystem.AddLayer((uid, visibility), (int) VisibilityFlags.Normal, false);
|
||||||
_visibilitySystem.RefreshVisibility(uid);
|
_visibilitySystem.RefreshVisibility(uid);
|
||||||
}
|
}
|
||||||
|
|
||||||
component.MovementSpeedBuff = 1;
|
component.MovementSpeedBuff = 1;
|
||||||
|
Spawn("EffectEmpPulse", _transform.GetMapCoordinates(uid));
|
||||||
Spawn("EffectEmpPulse", Transform(uid).Coordinates);
|
|
||||||
_stealth.SetVisibility(uid, 1);
|
_stealth.SetVisibility(uid, 1);
|
||||||
RemComp<StealthComponent>(uid);
|
RemComp<StealthComponent>(uid);
|
||||||
_movement.RefreshMovementSpeedModifiers(uid);
|
_movement.RefreshMovementSpeedModifiers(uid);
|
||||||
|
|||||||
@@ -202,7 +202,7 @@ namespace Content.Shared.Atmos
|
|||||||
/// <summary>
|
/// <summary>
|
||||||
/// This is calculated to help prevent singlecap bombs (Overpowered tritium/oxygen single tank bombs)
|
/// This is calculated to help prevent singlecap bombs (Overpowered tritium/oxygen single tank bombs)
|
||||||
/// </summary>
|
/// </summary>
|
||||||
public const float MinimumTritiumOxyburnEnergy = 430000f;
|
public const float MinimumTritiumOxyburnEnergy = 143000f;
|
||||||
|
|
||||||
public const float TritiumBurnOxyFactor = 100f;
|
public const float TritiumBurnOxyFactor = 100f;
|
||||||
public const float TritiumBurnTritFactor = 10f;
|
public const float TritiumBurnTritFactor = 10f;
|
||||||
|
|||||||
@@ -118,7 +118,7 @@
|
|||||||
sprite: Structures/Storage/canister.rsi
|
sprite: Structures/Storage/canister.rsi
|
||||||
state: redws
|
state: redws
|
||||||
product: NitrousOxideCanister
|
product: NitrousOxideCanister
|
||||||
cost: 1300
|
cost: 3000
|
||||||
category: Atmospherics
|
category: Atmospherics
|
||||||
group: market
|
group: market
|
||||||
|
|
||||||
@@ -128,7 +128,7 @@
|
|||||||
sprite: Structures/Storage/canister.rsi
|
sprite: Structures/Storage/canister.rsi
|
||||||
state: purple
|
state: purple
|
||||||
product: BZCanister
|
product: BZCanister
|
||||||
cost: 3500
|
cost: 7000
|
||||||
category: Atmospherics
|
category: Atmospherics
|
||||||
group: market
|
group: market
|
||||||
|
|
||||||
@@ -138,6 +138,6 @@
|
|||||||
sprite: Structures/Storage/canister.rsi
|
sprite: Structures/Storage/canister.rsi
|
||||||
state: darkblue
|
state: darkblue
|
||||||
product: PluoxiumCanister
|
product: PluoxiumCanister
|
||||||
cost: 3500
|
cost: 10500
|
||||||
category: Atmospherics
|
category: Atmospherics
|
||||||
group: market
|
group: market
|
||||||
|
|||||||
@@ -4,7 +4,7 @@
|
|||||||
sprite: Clothing/OuterClothing/Armor/security.rsi
|
sprite: Clothing/OuterClothing/Armor/security.rsi
|
||||||
state: icon
|
state: icon
|
||||||
product: CrateSecurityArmor
|
product: CrateSecurityArmor
|
||||||
cost: 700
|
cost: 750
|
||||||
category: cargoproduct-category-name-security
|
category: cargoproduct-category-name-security
|
||||||
group: market
|
group: market
|
||||||
|
|
||||||
|
|||||||
@@ -33,7 +33,7 @@
|
|||||||
sprite: Objects/Specific/Service/vending_machine_restock.rsi
|
sprite: Objects/Specific/Service/vending_machine_restock.rsi
|
||||||
state: base
|
state: base
|
||||||
product: CrateVendingMachineRestockClothesFilled
|
product: CrateVendingMachineRestockClothesFilled
|
||||||
cost: 6000
|
cost: 130000
|
||||||
category: cargoproduct-category-name-service
|
category: cargoproduct-category-name-service
|
||||||
group: market
|
group: market
|
||||||
|
|
||||||
@@ -54,7 +54,7 @@
|
|||||||
sprite: Objects/Specific/Service/vending_machine_restock.rsi
|
sprite: Objects/Specific/Service/vending_machine_restock.rsi
|
||||||
state: base
|
state: base
|
||||||
product: CrateVendingMachineRestockCondimentStationFilled
|
product: CrateVendingMachineRestockCondimentStationFilled
|
||||||
cost: 300
|
cost: 400
|
||||||
category: cargoproduct-category-name-service
|
category: cargoproduct-category-name-service
|
||||||
group: market
|
group: market
|
||||||
|
|
||||||
@@ -94,7 +94,7 @@
|
|||||||
sprite: Objects/Specific/Service/vending_machine_restock.rsi
|
sprite: Objects/Specific/Service/vending_machine_restock.rsi
|
||||||
state: base
|
state: base
|
||||||
product: CrateVendingMachineRestockMedicalFilled
|
product: CrateVendingMachineRestockMedicalFilled
|
||||||
cost: 1750
|
cost: 2200
|
||||||
category: cargoproduct-category-name-medical
|
category: cargoproduct-category-name-medical
|
||||||
group: market
|
group: market
|
||||||
|
|
||||||
@@ -134,7 +134,7 @@
|
|||||||
sprite: Objects/Specific/Service/vending_machine_restock.rsi
|
sprite: Objects/Specific/Service/vending_machine_restock.rsi
|
||||||
state: base
|
state: base
|
||||||
product: CrateVendingMachineRestockRobustSoftdrinksFilled
|
product: CrateVendingMachineRestockRobustSoftdrinksFilled
|
||||||
cost: 1200
|
cost: 1700
|
||||||
category: cargoproduct-category-name-service
|
category: cargoproduct-category-name-service
|
||||||
group: market
|
group: market
|
||||||
|
|
||||||
@@ -164,7 +164,7 @@
|
|||||||
sprite: Objects/Specific/Service/vending_machine_restock.rsi
|
sprite: Objects/Specific/Service/vending_machine_restock.rsi
|
||||||
state: base
|
state: base
|
||||||
product: CrateVendingMachineRestockSeedsFilled
|
product: CrateVendingMachineRestockSeedsFilled
|
||||||
cost: 3375
|
cost: 3600
|
||||||
category: cargoproduct-category-name-hydroponics
|
category: cargoproduct-category-name-hydroponics
|
||||||
group: market
|
group: market
|
||||||
|
|
||||||
@@ -194,7 +194,7 @@
|
|||||||
sprite: Objects/Specific/Service/vending_machine_restock.rsi
|
sprite: Objects/Specific/Service/vending_machine_restock.rsi
|
||||||
state: base
|
state: base
|
||||||
product: CrateVendingMachineRestockRoboticsFilled
|
product: CrateVendingMachineRestockRoboticsFilled
|
||||||
cost: 1600
|
cost: 1800
|
||||||
category: cargoproduct-category-name-science
|
category: cargoproduct-category-name-science
|
||||||
group: market
|
group: market
|
||||||
|
|
||||||
@@ -224,7 +224,7 @@
|
|||||||
sprite: Objects/Specific/Service/vending_machine_restock.rsi
|
sprite: Objects/Specific/Service/vending_machine_restock.rsi
|
||||||
state: base
|
state: base
|
||||||
product: CrateVendingMachineRestockGetmoreChocolateCorpFilled
|
product: CrateVendingMachineRestockGetmoreChocolateCorpFilled
|
||||||
cost: 1200
|
cost: 1450
|
||||||
category: cargoproduct-category-name-service
|
category: cargoproduct-category-name-service
|
||||||
group: market
|
group: market
|
||||||
|
|
||||||
@@ -244,7 +244,7 @@
|
|||||||
sprite: Objects/Specific/Service/vending_machine_restock.rsi
|
sprite: Objects/Specific/Service/vending_machine_restock.rsi
|
||||||
state: base
|
state: base
|
||||||
product: CrateVendingMachineRestockDiscountDansFilled
|
product: CrateVendingMachineRestockDiscountDansFilled
|
||||||
cost: 1200
|
cost: 1300
|
||||||
category: cargoproduct-category-name-service
|
category: cargoproduct-category-name-service
|
||||||
group: market
|
group: market
|
||||||
|
|
||||||
|
|||||||
@@ -29,7 +29,6 @@
|
|||||||
- id: ClothingUniformJumpsuitLawyerBlack
|
- id: ClothingUniformJumpsuitLawyerBlack
|
||||||
- id: ClothingShoesBootsLaceup
|
- id: ClothingShoesBootsLaceup
|
||||||
- id: ClothingHandsGlovesCombat # WD edit
|
- id: ClothingHandsGlovesCombat # WD edit
|
||||||
- id: BarberScissors
|
|
||||||
|
|
||||||
- type: entity
|
- type: entity
|
||||||
id: BriefcaseSyndieLobbyingBundleFilled
|
id: BriefcaseSyndieLobbyingBundleFilled
|
||||||
|
|||||||
@@ -73,7 +73,6 @@
|
|||||||
- id: ClothingUniformJumpsuitHoSAlt
|
- id: ClothingUniformJumpsuitHoSAlt
|
||||||
- id: ClothingUniformJumpskirtHosFormal
|
- id: ClothingUniformJumpskirtHosFormal
|
||||||
- id: ClothingUniformJumpsuitHosFormal
|
- id: ClothingUniformJumpsuitHosFormal
|
||||||
- id: ClothingMaskNeckGaiter
|
|
||||||
- id: ClothingHandsGlovesCombat
|
- id: ClothingHandsGlovesCombat
|
||||||
- id: ClothingOuterWinterHoS
|
- id: ClothingOuterWinterHoS
|
||||||
|
|
||||||
|
|||||||
@@ -602,7 +602,7 @@
|
|||||||
suffix: Agent
|
suffix: Agent
|
||||||
components:
|
components:
|
||||||
- type: PresetIdCard
|
- type: PresetIdCard
|
||||||
job: ассистент
|
job: Passenger
|
||||||
- type: Access
|
- type: Access
|
||||||
tags:
|
tags:
|
||||||
- Maintenance
|
- Maintenance
|
||||||
|
|||||||
@@ -26,7 +26,7 @@
|
|||||||
acts: [ "Destruction" ]
|
acts: [ "Destruction" ]
|
||||||
- type: Storage
|
- type: Storage
|
||||||
grid:
|
grid:
|
||||||
- 0,0,6,3
|
- 0,0,6,4
|
||||||
maxItemSize: Normal
|
maxItemSize: Normal
|
||||||
- type: ContainerContainer
|
- type: ContainerContainer
|
||||||
containers:
|
containers:
|
||||||
|
|||||||
@@ -176,19 +176,6 @@
|
|||||||
sprite: Objects/Misc/rifle_stock.rsi
|
sprite: Objects/Misc/rifle_stock.rsi
|
||||||
state: icon
|
state: icon
|
||||||
|
|
||||||
- type: construction
|
|
||||||
name: improvised explosive device
|
|
||||||
id: improvisedexplosive
|
|
||||||
graph: ImprovisedExplosive
|
|
||||||
startNode: start
|
|
||||||
targetNode: ied
|
|
||||||
category: construction-category-weapons
|
|
||||||
objectType: Item
|
|
||||||
description: A weak, improvised incendiary device.
|
|
||||||
icon:
|
|
||||||
sprite: Objects/Weapons/Bombs/ied.rsi
|
|
||||||
state: icon
|
|
||||||
|
|
||||||
- type: construction
|
- type: construction
|
||||||
name: cotton woven cloth
|
name: cotton woven cloth
|
||||||
id: CottonWovenCloth
|
id: CottonWovenCloth
|
||||||
|
|||||||
Reference in New Issue
Block a user