From 7f20dd1b5a599257030876c72d0fa42fcd29af66 Mon Sep 17 00:00:00 2001 From: Hero010h <163765999+Hero010h@users.noreply.github.com> Date: Sat, 28 Dec 2024 01:24:24 +0300 Subject: [PATCH] =?UTF-8?q?=D0=96=D0=B4=D1=91=D0=BC=20=D1=82=D0=B5=D0=BA?= =?UTF-8?q?=D1=81=D1=82=D1=83=D1=80=D1=8B=20=D0=B3=D1=80=D1=8F=D0=B4=D0=BE?= =?UTF-8?q?=D0=BA?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../_White/Entities/Structures/GrowingPot.yml | 16 ++++++++++------ .../Recipes/Construction/Graphs/growingPot.yml | 10 +++++----- .../_White/Recipes/Construction/GrowingPot.yml | 4 ++-- .../Hydroponics/growingpot.rsi/meta.json | 17 +++++++++++++++++ .../Hydroponics/growingpot.rsi/pot_empty.png | Bin 0 -> 424 bytes .../Hydroponics/growingpot.rsi/pot_filled.png | Bin 0 -> 687 bytes 6 files changed, 34 insertions(+), 13 deletions(-) create mode 100644 Resources/Textures/Structures/Hydroponics/growingpot.rsi/meta.json create mode 100644 Resources/Textures/Structures/Hydroponics/growingpot.rsi/pot_empty.png create mode 100644 Resources/Textures/Structures/Hydroponics/growingpot.rsi/pot_filled.png diff --git a/Resources/Prototypes/_White/Entities/Structures/GrowingPot.yml b/Resources/Prototypes/_White/Entities/Structures/GrowingPot.yml index 800e1af171..084a6f6dbb 100644 --- a/Resources/Prototypes/_White/Entities/Structures/GrowingPot.yml +++ b/Resources/Prototypes/_White/Entities/Structures/GrowingPot.yml @@ -4,11 +4,14 @@ id: GrowingPot description: Позволяет выращивать различные культуры. components: + - type: Sprite + sprite: Structures/Hydroponics/growingpot.rsi + state: pot_filled - type: Transform anchored: true - type: Construction graph: growingPot - node: GrowingPot + node: growingPot - type: Destructible thresholds: - trigger: @@ -38,6 +41,11 @@ mode: SnapgridCenter description: Позволяет выращивать различные культуры, однако не хватает земли... components: + - type: InteractionOutline + - type: Sprite + sprite: Structures/Hydroponics/growingpot.rsi + state: pot_empty + noRot: true - type: Tag tags: - Structure @@ -55,13 +63,9 @@ - type: Clickable - type: Transform noRot: true - - type: Sprite - sprite: Structures/Hydroponics/misc.rsi - state: soil - noRot: true - type: Construction graph: growingPot - node: GrowingPotNoSoil + node: growingPotNoSoil - type: Anchorable - type: Damageable DamageContainer: StructuralInorganic diff --git a/Resources/Prototypes/_White/Recipes/Construction/Graphs/growingPot.yml b/Resources/Prototypes/_White/Recipes/Construction/Graphs/growingPot.yml index 7a9535e1cf..3eab17542b 100644 --- a/Resources/Prototypes/_White/Recipes/Construction/Graphs/growingPot.yml +++ b/Resources/Prototypes/_White/Recipes/Construction/Graphs/growingPot.yml @@ -6,7 +6,7 @@ actions: - !type:DestroyEntity {} edges: - - to: GrowingPotNoSoil + - to: growingPotNoSoil completed: - !type:SnapToGrid southRotation: true @@ -18,10 +18,10 @@ amount: 4 doAfter: 1 - - node: GrowingPotNoSoil + - node: growingPotNoSoil entity: GrowingPotNoSoil edges: - - to: GrowingPot + - to: growingPot completed: - !type:SnapToGrid southRotation: true @@ -43,10 +43,10 @@ - tool: Screwing doAfter: 1 - - node: GrowingPot + - node: growingPot entity: GrowingPotEmpty edges: - - to: GrowingPotNoSoil + - to: growingPotNoSoil completed: - !type:SpawnPrototype prototype: packedSoil diff --git a/Resources/Prototypes/_White/Recipes/Construction/GrowingPot.yml b/Resources/Prototypes/_White/Recipes/Construction/GrowingPot.yml index 56cf94a9fc..4a9924fbc9 100644 --- a/Resources/Prototypes/_White/Recipes/Construction/GrowingPot.yml +++ b/Resources/Prototypes/_White/Recipes/Construction/GrowingPot.yml @@ -7,8 +7,8 @@ targetNode: growingPot category: construction-category-furniture icon: - sprite: Structures/Furniture/furniture.rsi - state: bed + sprite: Structures\Hydroponics\growingpot.rsi + state: pot_filled objectType: Structure placementMode: SnapgridCenter canBuildInImpassable: false diff --git a/Resources/Textures/Structures/Hydroponics/growingpot.rsi/meta.json b/Resources/Textures/Structures/Hydroponics/growingpot.rsi/meta.json new file mode 100644 index 0000000000..eb9976840e --- /dev/null +++ b/Resources/Textures/Structures/Hydroponics/growingpot.rsi/meta.json @@ -0,0 +1,17 @@ +{ + "version": 1, + "license": "CC-BY-SA-3.0", + "copyright": "dosharus", + "size": { + "x": 32, + "y": 32 + }, + "states": [ + { + "name": "pot_filled" + }, + { + "name": "pot_empty" + } + ] +} diff --git a/Resources/Textures/Structures/Hydroponics/growingpot.rsi/pot_empty.png b/Resources/Textures/Structures/Hydroponics/growingpot.rsi/pot_empty.png new file mode 100644 index 0000000000000000000000000000000000000000..d7635f977441fbdbb6132a41b59d6c9e55ff5976 GIT binary patch literal 424 zcmV;Z0ayNsP)Px$Vo5|nR9J=Wl}%5=KoExCrMpxhCSVjl2nX@w;{X3M8Zm(Y3Pehg(ssA42WnfE zwgI7D+~?HY*_nA~X0rtp3WY+UP$>R81ORR>&Vxp+vfiOAGM-ke2ParqR=f~A`kXCS z7*3{y0zjiy!OLKDaI$@PXkBAC0Vn{Nwgs09T%FY+gjZ-{N;SNH8Zhm3XG%$<%SEBd z0pQEBHw7gZj^H2xDO|*s0M8?My6A=4LE_1U^>Q5&%%96k2ILnT0uz z9CSwI7!gj+=yXP*OHFmS015n90Am{baKq+qYM`Z)nIo4hKgP6J0Oua6Cpwz#4vbMR zwc5NYWn7Vcw%P7r-0#A&omjvR#;CWIEGt-<#;&qpd7X?m?sqqA(FnLFz`fn8OrHJC zc%%^o2;k%P?h(ev06==>$*R-XrCasO7T#W;LBb~}`WNh7!VwrwrhohBr11?^1BPx%X-PyuR9J=Wl}%4mQ4ofoIrpnAA_go{u#FTjBqS35fD3=RE4P{$iBZs2N^L2$ zrMM5`8$X^6ulwM83OV0&HfV>eWn|i&jMS(q$!MO*nZ$glQ<2GY+Pq z$gMr*s8naakfrB`q#cXh%~gP*fUXw+3=X>=&{V39A=Z!{ThqAP8fwTpvRTDcdBIvQZ)^0i_g534-AIA*FhY z_n*t`ZRPm%y(}g`+jDtac+OF&j%^9OAf(glw|~Eo=ti0E@v_i^5B*0-Z;B#wSmD1L?`sze&cM@#89dq*lrC2u3I<@ zKaA$yIhKht)l@%>5S@$)uq=aQaNvc(%tT#(?i;r