From 78aec3619fed167354184e928c38d35fd2a74a27 Mon Sep 17 00:00:00 2001 From: unknown Date: Mon, 29 Dec 2025 12:14:52 +0400 Subject: [PATCH 1/5] Torch --- .../Structures/Furniture/strtorch.yml | 81 +++++++++++++++++++ .../Recipec/Construction/strtorch.yml | 21 +++++ 2 files changed, 102 insertions(+) create mode 100644 Resources/Prototypes/_Metro14/Entities/Structures/Furniture/strtorch.yml create mode 100644 Resources/Prototypes/_Metro14/Recipec/Construction/strtorch.yml diff --git a/Resources/Prototypes/_Metro14/Entities/Structures/Furniture/strtorch.yml b/Resources/Prototypes/_Metro14/Entities/Structures/Furniture/strtorch.yml new file mode 100644 index 0000000000..8f56853910 --- /dev/null +++ b/Resources/Prototypes/_Metro14/Entities/Structures/Furniture/strtorch.yml @@ -0,0 +1,81 @@ +- type: entity + name: факел + parent: BaseStructure + id: M14Torch + description: стоячий факел. + components: + - type: ExpendableLight + refuelMaterialID: WoodPlank + glowDuration: 100 + refuelMaximumDuration: 205 + fadeOutDuration: 0 + iconStateSpent: torch_spent + turnOnBehaviourID: turn_on + fadeOutBehaviourID: fade_out + # Sounds legit nuff + litSound: + path: /Audio/Items/Flare/flare_on.ogg + - type: Sprite + sprite: Objects/Misc/torch.rsi + layers: + - map: [ enum.ExpendableLightVisualLayers.Base ] + state: torch_unlit + - map: [ enum.ExpendableLightVisualLayers.Glow ] + state: lit_overlay + color: "#FFFFFF" + visible: false + shader: unshaded + - map: [ enum.ExpendableLightVisualLayers.Overlay ] + state: torch_nocloth + - type: Icon + sprite: Objects/Misc/torch.rsi + state: icon + - type: Item + sprite: Objects/Misc/torch.rsi + heldPrefix: unlit + - type: Construction + graph: LightTorch + node: torch + - type: Appearance + - type: PointLight + enabled: false + color: "#E25822" + radius: 1.0 + energy: 5.0 + netsync: false + - type: IgnitionSource + temperature: 400 + ignited: false + - type: LightBehaviour + behaviours: + - !type:RandomizeBehaviour # immediately make it bright and flickery + id: turn_on + interpolate: Nearest + minDuration: 0.02 + maxDuration: 0.06 + startValue: 6.0 + endValue: 9.0 + property: Energy + isLooped: true + - !type:FadeBehaviour # have the radius start small and get larger as it starts to burn + id: turn_on + maxDuration: 8.0 + startValue: 1.0 + endValue: 6.0 + - !type:RandomizeBehaviour # weaker flicker as it fades out + id: fade_out + interpolate: Nearest + minDuration: 0.02 + maxDuration: 0.06 + startValue: 4.0 + endValue: 8.0 + property: Energy + isLooped: true + - !type:FadeBehaviour # fade out radius as it burns out + id: fade_out + maxDuration: 4.0 + startValue: 6.0 + endValue: 1.0 + - type: Tag + tags: + - Torch \ No newline at end of file diff --git a/Resources/Prototypes/_Metro14/Recipec/Construction/strtorch.yml b/Resources/Prototypes/_Metro14/Recipec/Construction/strtorch.yml new file mode 100644 index 0000000000..5f50bcdb50 --- /dev/null +++ b/Resources/Prototypes/_Metro14/Recipec/Construction/strtorch.yml @@ -0,0 +1,21 @@ +- type: construction + id: StrTorch + graph: StrTorch + startNode: start + targetNode: torch + category: construction-category-tools + objectType: Item + +- type: constructionGraph + id: StrTorch + start: start + graph: + - node: start + edges: + - to: torch + steps: + - material: M14WoodPlank + amount: 2 + doAfter: 2 + - node: torch + entity: M14Torch From d1722cf6ca842aa5dae9708c28fb7827a05cf7bf Mon Sep 17 00:00:00 2001 From: unknown Date: Tue, 30 Dec 2025 22:45:55 +0400 Subject: [PATCH 2/5] Torch --- .../_Metro14/Entities/Structures/Furniture/strtorch.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Resources/Prototypes/_Metro14/Entities/Structures/Furniture/strtorch.yml b/Resources/Prototypes/_Metro14/Entities/Structures/Furniture/strtorch.yml index 8f56853910..85e6c6d791 100644 --- a/Resources/Prototypes/_Metro14/Entities/Structures/Furniture/strtorch.yml +++ b/Resources/Prototypes/_Metro14/Entities/Structures/Furniture/strtorch.yml @@ -1,7 +1,7 @@ - type: entity name: факел parent: BaseStructure - id: M14Torch + id: M14StructureTorch description: стоячий факел. components: - type: ExpendableLight From fe0d2615326aed153966de35a8ba4eb0a3738445 Mon Sep 17 00:00:00 2001 From: unknown Date: Wed, 31 Dec 2025 09:59:07 +0400 Subject: [PATCH 3/5] Torch --- .../_Metro14/Entities/Objects/Clothing/Uniforms/jumpsuit.yml | 1 + Resources/Prototypes/_Metro14/Recipec/Construction/strtorch.yml | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/Resources/Prototypes/_Metro14/Entities/Objects/Clothing/Uniforms/jumpsuit.yml b/Resources/Prototypes/_Metro14/Entities/Objects/Clothing/Uniforms/jumpsuit.yml index 01aebef089..dd9779303b 100644 --- a/Resources/Prototypes/_Metro14/Entities/Objects/Clothing/Uniforms/jumpsuit.yml +++ b/Resources/Prototypes/_Metro14/Entities/Objects/Clothing/Uniforms/jumpsuit.yml @@ -58,3 +58,4 @@ - state: icon-up map: ["foldedLayer"] visible: false + diff --git a/Resources/Prototypes/_Metro14/Recipec/Construction/strtorch.yml b/Resources/Prototypes/_Metro14/Recipec/Construction/strtorch.yml index 5f50bcdb50..42233f237f 100644 --- a/Resources/Prototypes/_Metro14/Recipec/Construction/strtorch.yml +++ b/Resources/Prototypes/_Metro14/Recipec/Construction/strtorch.yml @@ -18,4 +18,4 @@ amount: 2 doAfter: 2 - node: torch - entity: M14Torch + entity: M14StructureTorch From a83ed1be84a85e40e8c5d04a5a10d1da1677c761 Mon Sep 17 00:00:00 2001 From: unknown Date: Wed, 31 Dec 2025 12:17:23 +0400 Subject: [PATCH 4/5] Torch --- .../_Metro14/Entities/Structures/Furniture/strtorch.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Resources/Prototypes/_Metro14/Entities/Structures/Furniture/strtorch.yml b/Resources/Prototypes/_Metro14/Entities/Structures/Furniture/strtorch.yml index 85e6c6d791..2de858c1ae 100644 --- a/Resources/Prototypes/_Metro14/Entities/Structures/Furniture/strtorch.yml +++ b/Resources/Prototypes/_Metro14/Entities/Structures/Furniture/strtorch.yml @@ -34,7 +34,7 @@ sprite: Objects/Misc/torch.rsi heldPrefix: unlit - type: Construction - graph: LightTorch + graph: StrTorch node: torch - type: Appearance - type: PointLight From c37e09025613661dfa967edfc1ef4e23304814c4 Mon Sep 17 00:00:00 2001 From: unknown Date: Sat, 3 Jan 2026 16:26:38 +0400 Subject: [PATCH 5/5] Effect --- .../_Metro14/Entities/Effects/electricity.yml | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) create mode 100644 Resources/Prototypes/_Metro14/Entities/Effects/electricity.yml diff --git a/Resources/Prototypes/_Metro14/Entities/Effects/electricity.yml b/Resources/Prototypes/_Metro14/Entities/Effects/electricity.yml new file mode 100644 index 0000000000..5497224cc0 --- /dev/null +++ b/Resources/Prototypes/_Metro14/Entities/Effects/electricity.yml @@ -0,0 +1,17 @@ +- type: entity + id: EffectElectricity + components: + - type: PointLight + radius: 3 + energy: 12 + color: "#00bfff" + - type: TimedDespawn + lifetime: 3 + - type: Anomaly + severity: 1 + stability: 0.45 + nextPulseTime: 0 + minPulseLength: 0 + maxPulseLength: 0 + - type: ElectricityAnomaly + - type: Electrified \ No newline at end of file