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 0000000000..d7635f9774 Binary files /dev/null and b/Resources/Textures/Structures/Hydroponics/growingpot.rsi/pot_empty.png differ diff --git a/Resources/Textures/Structures/Hydroponics/growingpot.rsi/pot_filled.png b/Resources/Textures/Structures/Hydroponics/growingpot.rsi/pot_filled.png new file mode 100644 index 0000000000..fa60ffeae5 Binary files /dev/null and b/Resources/Textures/Structures/Hydroponics/growingpot.rsi/pot_filled.png differ