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/Entities/Structures/Furniture/strtorch.yml b/Resources/Prototypes/_Metro14/Entities/Structures/Furniture/strtorch.yml new file mode 100644 index 0000000000..2de858c1ae --- /dev/null +++ b/Resources/Prototypes/_Metro14/Entities/Structures/Furniture/strtorch.yml @@ -0,0 +1,81 @@ +- type: entity + name: факел + parent: BaseStructure + id: M14StructureTorch + 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: StrTorch + 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..42233f237f --- /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: M14StructureTorch