diff --git a/Resources/Locale/ru-RU/_CP14/_PROTO/entities/structures.ftl b/Resources/Locale/ru-RU/_CP14/_PROTO/entities/structures.ftl index 91e6d3ce40..70facb1adb 100644 --- a/Resources/Locale/ru-RU/_CP14/_PROTO/entities/structures.ftl +++ b/Resources/Locale/ru-RU/_CP14/_PROTO/entities/structures.ftl @@ -1,6 +1,8 @@ # Decorations ent-CP14Bonfire = костёр .desc = Груда бревен, сложенных вместе, и готовых вспыхнуть от малейшей искры. +ent-CP14WallmountTorch = настенный факел + .desc = Хороший, надеждный источник света. Жаль, недолговечный. # Doors ent-CP14BaseWoodDoor = деревянная дверь diff --git a/Resources/Prototypes/_CP14/Entities/Structures/Decoration/wallmount_torch.yml b/Resources/Prototypes/_CP14/Entities/Structures/Decoration/wallmount_torch.yml new file mode 100644 index 0000000000..d5dd4ea546 --- /dev/null +++ b/Resources/Prototypes/_CP14/Entities/Structures/Decoration/wallmount_torch.yml @@ -0,0 +1,62 @@ +- type: entity + id: CP14WallmountTorch + name: wallmount torch + description: A good, reliable light source. Too bad it doesn't last. + placement: + mode: SnapgridCenter + components: + - type: Transform + anchored: true + - type: Clickable + - type: InteractionOutline + - type: Sprite + noRot: true + sprite: _CP14/Structures/Decoration/wallmount_torch.rsi + offset: 0, 0.25 + layers: + - state: base + - type: Damageable + damageContainer: Inorganic + damageModifierSet: Wood + - type: Destructible + thresholds: + - trigger: + !type:DamageTrigger + damage: 80 + behaviors: + - !type:DoActsBehavior + acts: [ "Destruction" ] + - trigger: + !type:DamageTypeTrigger + damageType: Heat + damage: 50 + behaviors: + - !type:DoActsBehavior + acts: [ "Destruction" ] + - type: CP14FlammableAmbientSound + - type: AmbientSound + enabled: false + volume: -5 + range: 5 + sound: + path: /Audio/Ambience/Objects/fireplace.ogg + - type: Appearance + - type: Reactive + groups: + Flammable: [ Touch ] + Extinguish: [ Touch ] + - type: Flammable + fireSpread: false + canResistFire: false + alwaysCombustible: true + canExtinguish: true + firestacksOnIgnite: 0.5 + firestackFade: 0.3 + firestackFadeOnIgnite: 0.3 + firestackFadeFade: -0.2 + damage: + types: + Heat: 0.01 + - type: FireVisuals + sprite: _CP14/Structures/Decoration/wallmount_torch.rsi + normalState: fire \ No newline at end of file diff --git a/Resources/Textures/_CP14/Structures/Decoration/wallmount_torch.rsi/base.png b/Resources/Textures/_CP14/Structures/Decoration/wallmount_torch.rsi/base.png new file mode 100644 index 0000000000..134179782d Binary files /dev/null and b/Resources/Textures/_CP14/Structures/Decoration/wallmount_torch.rsi/base.png differ diff --git a/Resources/Textures/_CP14/Structures/Decoration/wallmount_torch.rsi/burned.png b/Resources/Textures/_CP14/Structures/Decoration/wallmount_torch.rsi/burned.png new file mode 100644 index 0000000000..c445314cd8 Binary files /dev/null and b/Resources/Textures/_CP14/Structures/Decoration/wallmount_torch.rsi/burned.png differ diff --git a/Resources/Textures/_CP14/Structures/Decoration/wallmount_torch.rsi/fire.png b/Resources/Textures/_CP14/Structures/Decoration/wallmount_torch.rsi/fire.png new file mode 100644 index 0000000000..0a585ee3be Binary files /dev/null and b/Resources/Textures/_CP14/Structures/Decoration/wallmount_torch.rsi/fire.png differ diff --git a/Resources/Textures/_CP14/Structures/Decoration/wallmount_torch.rsi/meta.json b/Resources/Textures/_CP14/Structures/Decoration/wallmount_torch.rsi/meta.json new file mode 100644 index 0000000000..8f2d96d1a1 --- /dev/null +++ b/Resources/Textures/_CP14/Structures/Decoration/wallmount_torch.rsi/meta.json @@ -0,0 +1,45 @@ +{ + "version": 1, + "license": "CC-BY-SA-3.0", + "copyright": "Created by Agoichi for CrystallPunk14", + "size": { + "x": 32, + "y": 48 + }, + "states": [ + { + "name": "base", + "directions": 4 + }, + { + "name": "fire", + "directions": 4, + "delays": [ + [ + 0.3, + 0.3, + 0.3 + ], + [ + 0.3, + 0.3, + 0.3 + ], + [ + 0.3, + 0.3, + 0.3 + ], + [ + 0.3, + 0.3, + 0.3 + ] + ] + }, + { + "name": "burned", + "directions": 4 + } + ] +} \ No newline at end of file