Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Master #24

Closed
wants to merge 2 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
17 changes: 17 additions & 0 deletions Content.Server/OnLand/TriggerOnLandComponent.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@



namespace Content.Server.OnLand
{

[RegisterComponent]
public sealed partial class TriggerOnLandComponent : Component
{

[DataField]
public int Percent = 0;


}

}
29 changes: 29 additions & 0 deletions Content.Server/OnLand/TriggerOnLandSystem.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
using Content.Shared.Throwing;
using Content.Server.Explosion.EntitySystems;




namespace Content.Server.OnLand
{
public sealed class TriggerOnLandSystem : EntitySystem
{
[Dependency] private readonly TriggerSystem _triggerSystem = default!;

public override void Initialize()
{
base.Initialize();
SubscribeLocalEvent<TriggerOnLandComponent, LandEvent>(TriggerOnLand);
}




private void TriggerOnLand(EntityUid uid, TriggerOnLandComponent component, ref LandEvent args)
{
_triggerSystem.Trigger(uid, args.User);
}

}

}
30 changes: 29 additions & 1 deletion Resources/Prototypes/Stories/Entities/Objects/Tools/tools.yml
Original file line number Diff line number Diff line change
Expand Up @@ -83,4 +83,32 @@
- type: Item
sprite: Stories/Objects/Tools/rcd_chrono.rsi
- type: RCD
delay: 0.25
delay: 0.25





- type: entity
id: RCDAtmos
name: Атмос РСУ
parent: RCD
description: Как РСУ, только для любителей ставить трубы.
components:
- type: RCD
availablePrototypes:
- Deconstruct
- HalfPipe
- Pipe
- TPipe
- PipeBend
- PipeFourway
- Scrubber
- Port
- Injector
- Vent
- GasFilter
- GasMixer
- GasPump
- Valve
- GasPrePump
224 changes: 224 additions & 0 deletions Resources/Prototypes/Stories/RPD/RPD.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,224 @@
- type: rcd
id: HalfPipe
category: WallsAndFlooring
name: Половина трубы
sprite: /Textures/Stories/Interface/Radial/RPD/pipe_14.png
mode: ConstructObject
prototype: GasPipeHalf
cost: 1
delay: 2
collisionMask: InteractImpassable
rules:
- MustBuildOnSubfloor
rotation: User
fx: EffectRCDConstruct1




- type: rcd
id: Pipe
category: WallsAndFlooring
name: Труба
sprite: /Textures/Stories/Interface/Radial/RPD/pipe.png
mode: ConstructObject
prototype: GasPipeStraight
cost: 1
delay: 2
collisionMask: InteractImpassable
rules:
- MustBuildOnSubfloor
rotation: User
fx: EffectRCDConstruct1




- type: rcd
id: TPipe
category: WallsAndFlooring
name: Т-образная труба
sprite: /Textures/Stories/Interface/Radial/RPD/pipe_4.png
mode: ConstructObject
prototype: GasPipeTjunction
cost: 1
delay: 2
collisionMask: InteractImpassable
rules:
- MustBuildOnSubfloor
rotation: User
fx: EffectRCDConstruct1




- type: rcd
id: PipeBend
category: WallsAndFlooring
name: Угловая труба
sprite: /Textures/Stories/Interface/Radial/RPD/pipe_3.png
mode: ConstructObject
prototype: GasPipeBend
cost: 1
delay: 2
collisionMask: InteractImpassable
rules:
- MustBuildOnSubfloor
rotation: User
fx: EffectRCDConstruct1


- type: rcd
id: PipeFourway
category: WallsAndFlooring
name: Четверная труба
sprite: /Textures/Stories/Interface/Radial/RPD/pipe_2.png
mode: ConstructObject
prototype: GasPipeFourway
cost: 2
delay: 2
collisionMask: InteractImpassable
rules:
- MustBuildOnSubfloor
rotation: User
fx: EffectRCDConstruct1


###############
- type: rcd
id: Scrubber
category: WallsAndFlooring
name: Скруббер
sprite: /Textures/Stories/Interface/Radial/RPD/pipe_13.png
mode: ConstructObject
prototype: GasVentScrubber
cost: 3
delay: 2
collisionMask: InteractImpassable
rotation: User
fx: EffectRCDConstruct1




- type: rcd
id: Port
category: WallsAndFlooring
name: Соединительный порт
sprite: /Textures/Stories/Interface/Radial/RPD/pipe_8.png
mode: ConstructObject
prototype: GasPort
cost: 3
delay: 2
collisionMask: InteractImpassable
rotation: User
fx: EffectRCDConstruct1



- type: rcd
id: Injector
category: WallsAndFlooring
name: Инжектор
sprite: /Textures/Stories/Interface/Radial/RPD/pipe_9.png
mode: ConstructObject
prototype: GasOutletInjector
cost: 3
delay: 2
collisionMask: InteractImpassable
rotation: User
fx: EffectRCDConstruct1


- type: rcd
id: Vent
category: WallsAndFlooring
name: Вентиляция
sprite: /Textures/Stories/Interface/Radial/RPD/pipe_12.png
mode: ConstructObject
prototype: GasVentPump
cost: 3
delay: 2
collisionMask: InteractImpassable
rotation: User
fx: EffectRCDConstruct1



- type: rcd
id: GasFilter
category: WallsAndFlooring
name: Газовый фильтр
sprite: /Textures/Stories/Interface/Radial/RPD/pipe_11.png
mode: ConstructObject
prototype: GasFilter
cost: 3
delay: 2
collisionMask: InterecatImpassable
rotation: User
fx: EffectRCDConstruct1



- type: rcd
id: GasMixer
category: WallsAndFlooring
name: Газовый смеситель
sprite: /Textures/Stories/Interface/Radial/RPD/pipe_10.png
mode: ConstructObject
prototype: GasMixer
cost: 3
delay: 2
collisionMask: InteractImpassable
rotation: User
fx: EffectRCDConstruct1



- type: rcd
id: GasPump
category: WallsAndFlooring
name: Объемный газовый насос
sprite: /Textures/Stories/Interface/Radial/RPD/pipe_5.png
mode: ConstructObject
prototype: GasVolumePump
cost: 2
delay: 2
collisionMask: InteractImpassable
rotation: User
fx: EffectRCDConstruct1


- type: rcd
id: Valve
category: WallsAndFlooring
name: Ручной клапан
sprite: /Textures/Stories/Interface/Radial/RPD/pipe_7.png
mode: ConstructObject
prototype: GasValve
cost: 2
delay: 2
collisionMask: InteractImpassable
rotation: User
fx: EffectRCDConstruct1


- type: rcd
id: GasPrePump
category: WallsAndFlooring
name: Газовый насос
sprite: /Textures/Stories/Interface/Radial/RPD/pipe_6.png
mode: ConstructObject
prototype: GasPressurePump
cost: 2
delay: 2
collisionMask: InteractImpassable
rotation: User
fx: EffectRCDConstruct1







Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.