diff --git a/Resources/Locale/ru-RU/_LostParadise/prototypes/entities/structures/furniture/mattress_double.ftl b/Resources/Locale/ru-RU/_LostParadise/prototypes/entities/structures/furniture/mattress_double.ftl new file mode 100644 index 00000000000..f43891568c1 --- /dev/null +++ b/Resources/Locale/ru-RU/_LostParadise/prototypes/entities/structures/furniture/mattress_double.ftl @@ -0,0 +1,4 @@ +ent-LPPMattressDoubleUp = Двойной матрас + .desc = Лучше спать на полу, чем так, я думаю. +ent-LPPMattressDoubleDown = Двойной матрас + .desc = Лучше спать на полу, чем так, я думаю. \ No newline at end of file diff --git a/Resources/Prototypes/_LostParadise/Entities/Structures/Furniture/mattress_double.yml b/Resources/Prototypes/_LostParadise/Entities/Structures/Furniture/mattress_double.yml new file mode 100644 index 00000000000..09e71b4efac --- /dev/null +++ b/Resources/Prototypes/_LostParadise/Entities/Structures/Furniture/mattress_double.yml @@ -0,0 +1,73 @@ +# UP SIDE: + +- type: entity + name: mattress double up + id: LPPMattressDoubleUp + parent: BaseStructure + description: Better to sleep on the floor than this, I think. + components: + - type: HealOnBuckle + damage: + types: + Poison: -0.5 + Blunt: -0.2 + - type: Physics + bodyType: Static + - type: Fixtures + fixtures: + fix1: + shape: + !type:PhysShapeAabb + bounds: "-0.45,-0.45,0.45,0.55" + density: 190 + mask: + - TableMask + - type: Sprite + sprite: _LostParadise/Structures/Furniture/double_mattress.rsi + state: mattress_double_up + noRot: true + - type: Strap + position: Down + rotation: -90 + buckleOffset: "0,0.20" + - type: PlaceableSurface + placeCentered: true + - type: Damageable + damageContainer: Inorganic + damageModifierSet: Metallic + - type: Destructible + thresholds: + - trigger: + !type:DamageTrigger + damage: 75 + behaviors: + - !type:DoActsBehavior + acts: ["Destruction"] + - !type:SpawnEntitiesBehavior + spawn: + SheetSteel1: + min: 1 + max: 2 + - type: Transform + anchored: true + noRot: true + - type: Anchorable + - type: Pullable + + +# DOWN SIDE: + +- type: entity + parent: LPPMattressDoubleUp + id: LPPMattressDoubleDown + name: mattress double down + description: Better to sleep on the floor than this, I think. + components: + - type: Sprite + state: mattress_double_down + - type: Damageable + damageModifierSet: Inflatable + - type: Strap + position: Down + rotation: -90 + buckleOffset: "0,-0.2" \ No newline at end of file diff --git a/Resources/Textures/_LostParadise/Structures/Furniture/double_mattress.rsi/mattress_double.png b/Resources/Textures/_LostParadise/Structures/Furniture/double_mattress.rsi/mattress_double.png new file mode 100644 index 00000000000..b27997f527b Binary files /dev/null and b/Resources/Textures/_LostParadise/Structures/Furniture/double_mattress.rsi/mattress_double.png differ diff --git a/Resources/Textures/_LostParadise/Structures/Furniture/double_mattress.rsi/mattress_double_down.png b/Resources/Textures/_LostParadise/Structures/Furniture/double_mattress.rsi/mattress_double_down.png new file mode 100644 index 00000000000..46f022cc8fa Binary files /dev/null and b/Resources/Textures/_LostParadise/Structures/Furniture/double_mattress.rsi/mattress_double_down.png differ diff --git a/Resources/Textures/_LostParadise/Structures/Furniture/double_mattress.rsi/mattress_double_up.png b/Resources/Textures/_LostParadise/Structures/Furniture/double_mattress.rsi/mattress_double_up.png new file mode 100644 index 00000000000..a19eb3bac22 Binary files /dev/null and b/Resources/Textures/_LostParadise/Structures/Furniture/double_mattress.rsi/mattress_double_up.png differ diff --git a/Resources/Textures/_LostParadise/Structures/Furniture/double_mattress.rsi/meta.json b/Resources/Textures/_LostParadise/Structures/Furniture/double_mattress.rsi/meta.json new file mode 100644 index 00000000000..20d7c846049 --- /dev/null +++ b/Resources/Textures/_LostParadise/Structures/Furniture/double_mattress.rsi/meta.json @@ -0,0 +1,20 @@ +{ + "version": 1, + "license": "CC-BY-SA-3.0", + "copyright": "Draw by Fuchsia: https://github.com/FuchsiaThePhoenix", + "size": { + "x": 32, + "y": 32 + }, + "states": [ + { + "name": "mattress_double" + }, + { + "name": "mattress_double_down" + }, + { + "name": "mattress_double_up" + } + ] +}