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

Add double mattress #339

Open
wants to merge 7 commits into
base: master
Choose a base branch
from
Open
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
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
ent-LPPMattressDoubleUp = Двойной матрас
.desc = Лучше спать на полу, чем так, я думаю.
ent-LPPMattressDoubleDown = Двойной матрас
.desc = Лучше спать на полу, чем так, я думаю.
Comment on lines +1 to +4
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🛠️ Refactor suggestion

Оптимизируйте повторяющиеся переводы

Согласно руководству по локализации, повторяющиеся переводы должны использовать ссылки на оригинальный перевод. Предлагаю следующую оптимизацию:

ent-LPPMattressDoubleUp = Двойной матрас
    .desc = Лучше спать на полу, чем так, я думаю.
-ent-LPPMattressDoubleDown = Двойной матрас
-    .desc = Лучше спать на полу, чем так, я думаю.
+ent-LPPMattressDoubleDown = { ent-LPPMattressDoubleUp }
+    .desc = { ent-LPPMattressDoubleUp.desc }
📝 Committable suggestion

‼️ IMPORTANT
Carefully review the code before committing. Ensure that it accurately replaces the highlighted code, contains no missing lines, and has no issues with indentation. Thoroughly test & benchmark the code to ensure it meets the requirements.

Suggested change
ent-LPPMattressDoubleUp = Двойной матрас
.desc = Лучше спать на полу, чем так, я думаю.
ent-LPPMattressDoubleDown = Двойной матрас
.desc = Лучше спать на полу, чем так, я думаю.
ent-LPPMattressDoubleUp = Двойной матрас
.desc = Лучше спать на полу, чем так, я думаю.
ent-LPPMattressDoubleDown = { ent-LPPMattressDoubleUp }
.desc = { ent-LPPMattressDoubleUp.desc }

Original file line number Diff line number Diff line change
@@ -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"
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.
Original file line number Diff line number Diff line change
@@ -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"
}
]
}
Loading