From 17be798db4a0b8a27814b61cfb3c04e588b9c6a1 Mon Sep 17 00:00:00 2001 From: Red <96445749+TheShuEd@users.noreply.github.com> Date: Wed, 4 Jun 2025 12:22:54 +0300 Subject: [PATCH] Grass bags (#1381) * grass bugs * move to victoria * Update tiles_grass_bag.yml --- .../Entities/Objects/Misc/tiles_grass_bag.yml | 66 ++++++++++++++++++ .../_CP14/Procedural/grasslands.yml | 23 ++++++ .../_CP14/Stacks/floor_tile_stacks.yml | 23 ++++++ .../_CP14/Trading/victoria_gardens.yml | 40 +++++++++++ .../Specific/Farming/grass_seeds.rsi/bag.png | Bin 0 -> 332 bytes .../Farming/grass_seeds.rsi/grass.png | Bin 0 -> 403 bytes .../Farming/grass_seeds.rsi/grass2.png | Bin 0 -> 409 bytes .../Farming/grass_seeds.rsi/grass3.png | Bin 0 -> 419 bytes .../Farming/grass_seeds.rsi/meta.json | 23 ++++++ 9 files changed, 175 insertions(+) create mode 100644 Resources/Prototypes/_CP14/Entities/Objects/Misc/tiles_grass_bag.yml create mode 100644 Resources/Textures/_CP14/Objects/Specific/Farming/grass_seeds.rsi/bag.png create mode 100644 Resources/Textures/_CP14/Objects/Specific/Farming/grass_seeds.rsi/grass.png create mode 100644 Resources/Textures/_CP14/Objects/Specific/Farming/grass_seeds.rsi/grass2.png create mode 100644 Resources/Textures/_CP14/Objects/Specific/Farming/grass_seeds.rsi/grass3.png create mode 100644 Resources/Textures/_CP14/Objects/Specific/Farming/grass_seeds.rsi/meta.json diff --git a/Resources/Prototypes/_CP14/Entities/Objects/Misc/tiles_grass_bag.yml b/Resources/Prototypes/_CP14/Entities/Objects/Misc/tiles_grass_bag.yml new file mode 100644 index 0000000000..364d91a89e --- /dev/null +++ b/Resources/Prototypes/_CP14/Entities/Objects/Misc/tiles_grass_bag.yml @@ -0,0 +1,66 @@ +- type: entity + parent: CP14FloorTileBase + id: CP14FloorTileGrassBagBase + description: A bag of grass seed. A pinch of natural magic and the dirt is covered with a beautiful lawn in the blink of an eye! + abstract: true + categories: [ ForkFiltered ] + components: + - type: Sprite + sprite: _CP14/Objects/Specific/Farming/grass_seeds.rsi + - type: Item + sprite: _CP14/Objects/Tile/tile.rsi + size: Tiny + - type: Stack + count: 1 + - type: FloorTile + placeTileSound: + collection: CP14GrassGathering + params: + variation: 0.05 + - type: Destructible + thresholds: + - trigger: + !type:DamageTrigger + damage: 10 + behaviors: + - !type:DoActsBehavior + acts: [ "Destruction" ] + +- type: entity + parent: CP14FloorTileGrassBagBase + id: CP14FloorTileGrassBag + name: grass bag + components: + - type: Sprite + state: grass2 + - type: FloorTile + outputs: + - CP14FloorGrass + - type: Stack + stackType: CP14FloorTileGrassBag + +- type: entity + parent: CP14FloorTileGrassBagBase + id: CP14FloorTileGrassBagLight + name: light grass bag + components: + - type: Sprite + state: grass + - type: FloorTile + outputs: + - CP14FloorGrassLight + - type: Stack + stackType: CP14FloorTileGrassBagLight + +- type: entity + parent: CP14FloorTileGrassBagBase + id: CP14FloorTileGrassBagTall + name: tall grass bag + components: + - type: Sprite + state: grass3 + - type: FloorTile + outputs: + - CP14FloorGrassTall + - type: Stack + stackType: CP14FloorTileGrassBagTall \ No newline at end of file diff --git a/Resources/Prototypes/_CP14/Procedural/grasslands.yml b/Resources/Prototypes/_CP14/Procedural/grasslands.yml index b72944171a..dc864265ac 100644 --- a/Resources/Prototypes/_CP14/Procedural/grasslands.yml +++ b/Resources/Prototypes/_CP14/Procedural/grasslands.yml @@ -39,6 +39,29 @@ layers: - !type:BiomeMetaLayer template: CP14GrassFill + - !type:BiomeDecalLayer #Rock decal + allowedTiles: + - CP14FloorGrass + - CP14FloorGrassLight + - CP14FloorGrassTall + threshold: 0.6 + divisions: 1 + noise: + seed: 18 + noiseType: OpenSimplex2 + fractalType: Ridged + frequency: 0.11 + octaves: 3 + lacunarity: 1.7 + gain: 0.8 + domainWarpType: OpenSimplex2 + domainWarpAmp: 120 + decals: + - CP14FloraRock01 + - CP14FloraRock02 + - CP14FloraRock03 + - CP14FloraRock04 + - CP14FloraRock05 - !type:BiomeDecalLayer #Grass decal allowedTiles: - CP14FloorGrass diff --git a/Resources/Prototypes/_CP14/Stacks/floor_tile_stacks.yml b/Resources/Prototypes/_CP14/Stacks/floor_tile_stacks.yml index 976204bb86..fea9984e00 100644 --- a/Resources/Prototypes/_CP14/Stacks/floor_tile_stacks.yml +++ b/Resources/Prototypes/_CP14/Stacks/floor_tile_stacks.yml @@ -103,3 +103,26 @@ icon: { sprite: _CP14/Objects/Tile/tile.rsi, state: birch_woodplanks_stairways } maxCount: 30 +- type: stack + id: CP14FloorTileGrassBag + name: cp14-tiles-grass + spawn: CP14FloorTileGrassBag + icon: { sprite: _CP14/Objects/Specific/Farming/grass_seeds.rsi, state: grass } + maxCount: 30 + +- type: stack + id: CP14FloorTileGrassBagLight + name: cp14-tiles-grass-light + spawn: CP14FloorTileGrassBagLight + icon: { sprite: _CP14/Objects/Specific/Farming/grass_seeds.rsi, state: grass2 } + maxCount: 30 + +- type: stack + id: CP14FloorTileGrassBagTall + name: cp14-tiles-grass-tall + spawn: CP14FloorTileGrassBagTall + icon: { sprite: _CP14/Objects/Specific/Farming/grass_seeds.rsi, state: grass3 } + maxCount: 30 + + + diff --git a/Resources/Prototypes/_CP14/Trading/victoria_gardens.yml b/Resources/Prototypes/_CP14/Trading/victoria_gardens.yml index 5bec1f8210..f9cb01c667 100644 --- a/Resources/Prototypes/_CP14/Trading/victoria_gardens.yml +++ b/Resources/Prototypes/_CP14/Trading/victoria_gardens.yml @@ -66,6 +66,46 @@ product: CP14FoodOnion count: 3 + +- type: cp14TradingPosition + id: CP14FloorTileGrassBag + faction: VictoriaGardens + priceMarkup: 2 + reputationLevel: 0 + uiPosition: 7 + icon: + sprite: _CP14/Objects/Specific/Farming/grass_seeds.rsi + state: grass + service: !type:CP14BuyItemsService + product: CP14FloorTileGrassBag + count: 5 + +- type: cp14TradingPosition + id: CP14FloorTileGrassBagLight + faction: VictoriaGardens + priceMarkup: 2 + reputationLevel: 0 + uiPosition: 8 + icon: + sprite: _CP14/Objects/Specific/Farming/grass_seeds.rsi + state: grass2 + service: !type:CP14BuyItemsService + product: CP14FloorTileGrassBagLight + count: 5 + +- type: cp14TradingPosition + id: CP14FloorTileGrassBagTall + faction: VictoriaGardens + priceMarkup: 2 + reputationLevel: 0 + uiPosition: 9 + icon: + sprite: _CP14/Objects/Specific/Farming/grass_seeds.rsi + state: grass3 + service: !type:CP14BuyItemsService + product: CP14FloorTileGrassBagTall + count: 5 + # Rep 1 - type: cp14TradingPosition diff --git a/Resources/Textures/_CP14/Objects/Specific/Farming/grass_seeds.rsi/bag.png b/Resources/Textures/_CP14/Objects/Specific/Farming/grass_seeds.rsi/bag.png new file mode 100644 index 0000000000000000000000000000000000000000..78369a0f4d2fad837229e54957f20cf79546eff6 GIT binary patch literal 332 zcmeAS@N?(olHy`uVBq!ia0vp^3LwnE1|*BCs=fdz#^NA%Cx&(BWL^TQPp(k_|wapq}J}1O;U-2_SHq zoBMxp_u6~aGjuk4ToZYf^E*DKgWLJf)7|+gmQ71E5`aKJ{85s@HKF4I_SJ7ySGpM* zfWX96jI*Ee071~9oGs-J(QWVRpB!OlJ|Dj?z2e(9@oQTgL)mSre{<(4ZhC6apqnee zq_UhbM=Y4h!;kq2n@a0})8+RcP)Px$O-V#SR9J=Wl(9=fQ5431Wl@+zJ(R1|A~?w1!c|?|ghs(Bh?f3_mS|~pZHb^s zXbjv!FrCZA$#Cf9>k+9CSQPY{d|)3(gJ0L$!JBx?fNI96~Bf0 z3!)tW$Y@2S-Xa#a07$39RO&6tS_cXs`ei2vJ6^TZnKB3HJ$w?4gm~-7cR@6Q{>ulk zxW%SgWo2#IH=ht>4B{Plei{G}jf8j|e);-cyDv5m6rilNZ}#ZE17P2~w^0uYN^zWL-{!rb2hgTY{!JKy+jZHBu~C`Px$Q%OWYR9J=Wl)p;?VHn3hi7f|0r{E!^AUL^1h*LVb3E?C(1<}&q&=M{E4K5Kh z1x*pSL{m1M(kxVhipNR*fWV=^YbY5Pg-}j#9`+eW%y#tL#qxtWwNDI!6 zcD>m8+MMQe$2jhY!^*X|pQvDFetPk+u(rRmiPIgkcYH4D8I-(St+goTk`!}E9CzgF zG0Vj1j;YpKl6HW?2ms23y!TVPyuDNEB`zu#@}3no7Ib$wQ3?@|7Fc0}OxnVpwEZWO zw)id7Ul82^fK1w=Qn!gjO#rqwf>ds7O7WCZ0MU`19Bg}6oyR$Ifaa4&$PCcGpNhvI zI)UEcjY!la8DHgfH1*AAsEk2;2L}Dm&o5*K=ncO&TW|Em=1Kud@sw}Y>bwKce10Ko zB$NV(M&J%70A!5>cBB2Jn!fpLUBc4;0~(D+vvfWHf;4akdM!`j00000NkvXXu0mjf D7q7Wz literal 0 HcmV?d00001 diff --git a/Resources/Textures/_CP14/Objects/Specific/Farming/grass_seeds.rsi/grass3.png b/Resources/Textures/_CP14/Objects/Specific/Farming/grass_seeds.rsi/grass3.png new file mode 100644 index 0000000000000000000000000000000000000000..c07d9d45798ec5c736c29e12883fbb9c62c8ee1d GIT binary patch literal 419 zcmV;U0bKrxP)Px$T}ebiR9J=Wl)p3 zxgHWac4tVb(vm3$co+eIl}@=owS4*BQ!Qzel}@?B2rlSOf9xs5imX8xK@u@R+waU* zA}07P)Sm=M!~}(AgRHfQZfaz$O$yBhVKd+5En`V~`%fp!d#RBtY13d1_ApNXPwDYa{9Ao&xNzZ