From 417668b88bbc9483afb23686e7a2f0079fba02ad Mon Sep 17 00:00:00 2001 From: Nim <128169402+Nimfar11@users.noreply.github.com> Date: Fri, 6 Dec 2024 23:50:54 +0200 Subject: [PATCH] Crayon (#634) * crayon * add crayon into loots --------- Co-authored-by: Ed --- .../Prototypes/_CP14/Catalog/Fills/crates.yml | 2 + .../_CP14/Entities/Objects/crayons.yml | 212 ++++++++++++++++++ .../_CP14/Recipes/Workbench/sewing_table.yml | 54 +++++ .../crayon.rsi/crayon-inhand-left.png | Bin 0 -> 229 bytes .../crayon.rsi/crayon-inhand-right.png | Bin 0 -> 316 bytes .../Thaumaturgy/crayon.rsi/crayon.png | Bin 0 -> 197 bytes .../crayon.rsi/handle-inhand-left.png | Bin 0 -> 207 bytes .../crayon.rsi/handle-inhand-right.png | Bin 0 -> 309 bytes .../Thaumaturgy/crayon.rsi/handle.png | Bin 0 -> 229 bytes .../Specific/Thaumaturgy/crayon.rsi/meta.json | 33 +++ 10 files changed, 301 insertions(+) create mode 100644 Resources/Prototypes/_CP14/Entities/Objects/crayons.yml create mode 100644 Resources/Textures/_CP14/Objects/Specific/Thaumaturgy/crayon.rsi/crayon-inhand-left.png create mode 100644 Resources/Textures/_CP14/Objects/Specific/Thaumaturgy/crayon.rsi/crayon-inhand-right.png create mode 100644 Resources/Textures/_CP14/Objects/Specific/Thaumaturgy/crayon.rsi/crayon.png create mode 100644 Resources/Textures/_CP14/Objects/Specific/Thaumaturgy/crayon.rsi/handle-inhand-left.png create mode 100644 Resources/Textures/_CP14/Objects/Specific/Thaumaturgy/crayon.rsi/handle-inhand-right.png create mode 100644 Resources/Textures/_CP14/Objects/Specific/Thaumaturgy/crayon.rsi/handle.png create mode 100644 Resources/Textures/_CP14/Objects/Specific/Thaumaturgy/crayon.rsi/meta.json diff --git a/Resources/Prototypes/_CP14/Catalog/Fills/crates.yml b/Resources/Prototypes/_CP14/Catalog/Fills/crates.yml index f0681fca59..5f6e62afe6 100644 --- a/Resources/Prototypes/_CP14/Catalog/Fills/crates.yml +++ b/Resources/Prototypes/_CP14/Catalog/Fills/crates.yml @@ -86,6 +86,8 @@ - id: CP14ClothingShirtYellowWizard - id: CP14FoodPotato - id: CP14Cloth10 + - id: CP14CrayonWhite + weight: 2 - !type:GroupSelector children: - id: CP14DyeYellow diff --git a/Resources/Prototypes/_CP14/Entities/Objects/crayons.yml b/Resources/Prototypes/_CP14/Entities/Objects/crayons.yml new file mode 100644 index 0000000000..b735308541 --- /dev/null +++ b/Resources/Prototypes/_CP14/Entities/Objects/crayons.yml @@ -0,0 +1,212 @@ +- type: entity + abstract: true + parent: BaseItem + id: CP14Crayon + name: crayon + description: A colourful crayon. + categories: [ ForkFiltered ] + components: + - type: Sprite + sprite: _CP14/Objects/Specific/Thaumaturgy/crayon.rsi + layers: + - state: handle + - state: crayon + color: white + - type: Item + size: Tiny + - type: Tag + tags: + - Write + - Crayon + - type: UserInterface + interfaces: + enum.CrayonUiKey.Key: + type: CrayonBoundUserInterface + - type: Crayon + capacity: 15 + +- type: entity + parent: CP14Crayon + id: CP14CrayonWhite + name: white crayon + components: + - type: Sprite + layers: + - state: handle + - state: crayon + color: white + - type: Item + inhandVisuals: + left: + - state: handle-inhand-left + - state: crayon-inhand-left + color: white + right: + - state: handle-inhand-right + - state: crayon-inhand-right + color: white + - type: Crayon + color: white + +- type: entity + parent: CP14Crayon + id: CP14CrayonRainbow + name: magic rainbow crayon + components: + - type: Sprite + layers: + - state: handle + - state: crayon + color: white + - type: Item + inhandVisuals: + left: + - state: handle-inhand-left + - state: crayon-inhand-left + color: white + right: + - state: handle-inhand-right + - state: crayon-inhand-right + color: white + - type: Crayon + color: Red + selectableColor: true + capacity: 30 + +- type: entity + parent: CP14Crayon + id: CP14CrayonBlack + name: black crayon + components: + - type: Sprite + layers: + - state: handle + - state: crayon + color: black + - type: Item + inhandVisuals: + left: + - state: handle-inhand-left + - state: crayon-inhand-left + color: black + right: + - state: handle-inhand-right + - state: crayon-inhand-right + color: black + - type: Crayon + color: black + +- type: entity + parent: CP14Crayon + id: CP14CrayonRed + name: red crayon + components: + - type: Sprite + layers: + - state: handle + - state: crayon + color: red + - type: Item + inhandVisuals: + left: + - state: handle-inhand-left + - state: crayon-inhand-left + color: red + right: + - state: handle-inhand-right + - state: crayon-inhand-right + color: red + - type: Crayon + color: red + +- type: entity + parent: CP14Crayon + id: CP14CrayonYellow + name: yellow crayon + components: + - type: Sprite + layers: + - state: handle + - state: crayon + color: yellow + - type: Item + inhandVisuals: + left: + - state: handle-inhand-left + - state: crayon-inhand-left + color: yellow + right: + - state: handle-inhand-right + - state: crayon-inhand-right + color: yellow + - type: Crayon + color: yellow + +- type: entity + parent: CP14Crayon + id: CP14CrayonGreen + name: green crayon + components: + - type: Sprite + layers: + - state: handle + - state: crayon + color: green + - type: Item + inhandVisuals: + left: + - state: handle-inhand-left + - state: crayon-inhand-left + color: green + right: + - state: handle-inhand-right + - state: crayon-inhand-right + color: green + - type: Crayon + color: green + +- type: entity + parent: CP14Crayon + id: CP14CrayonBlue + name: blue crayon + components: + - type: Sprite + layers: + - state: handle + - state: crayon + color: blue + - type: Item + inhandVisuals: + left: + - state: handle-inhand-left + - state: crayon-inhand-left + color: blue + right: + - state: handle-inhand-right + - state: crayon-inhand-right + color: blue + - type: Crayon + color: lightblue + +- type: entity + parent: CP14Crayon + id: CP14CrayonPurple + name: purple crayon + components: + - type: Sprite + layers: + - state: handle + - state: crayon + color: purple + - type: Item + inhandVisuals: + left: + - state: handle-inhand-left + - state: crayon-inhand-left + color: purple + right: + - state: handle-inhand-right + - state: crayon-inhand-right + color: purple + - type: Crayon + color: purple diff --git a/Resources/Prototypes/_CP14/Recipes/Workbench/sewing_table.yml b/Resources/Prototypes/_CP14/Recipes/Workbench/sewing_table.yml index 46f614a9d9..fb47e41f9b 100644 --- a/Resources/Prototypes/_CP14/Recipes/Workbench/sewing_table.yml +++ b/Resources/Prototypes/_CP14/Recipes/Workbench/sewing_table.yml @@ -307,3 +307,57 @@ entities: CP14DyeYellow: 1 result: CP14WallpaperYellow + +- type: CP14Recipe + id: CP14CrayonBlack + tag: CP14RecipeSewing + craftTime: 2 + entities: + CP14CrayonWhite: 1 + CP14DyeBlack: 1 + result: CP14CrayonBlack + +- type: CP14Recipe + id: CP14CrayonRed + tag: CP14RecipeSewing + craftTime: 2 + entities: + CP14CrayonWhite: 1 + CP14DyeRed: 1 + result: CP14CrayonRed + +- type: CP14Recipe + id: CP14CrayonYellow + tag: CP14RecipeSewing + craftTime: 2 + entities: + CP14CrayonWhite: 1 + CP14DyeYellow: 1 + result: CP14CrayonYellow + +- type: CP14Recipe + id: CP14CrayonGreen + tag: CP14RecipeSewing + craftTime: 2 + entities: + CP14CrayonWhite: 1 + CP14DyeGreen: 1 + result: CP14CrayonGreen + +- type: CP14Recipe + id: CP14CrayonBlue + tag: CP14RecipeSewing + craftTime: 2 + entities: + CP14CrayonWhite: 1 + CP14DyeBlue: 1 + result: CP14CrayonBlue + +- type: CP14Recipe + id: CP14CrayonPurple + tag: CP14RecipeSewing + craftTime: 2 + entities: + CP14CrayonWhite: 1 + CP14DyePurple: 1 + result: CP14CrayonPurple diff --git a/Resources/Textures/_CP14/Objects/Specific/Thaumaturgy/crayon.rsi/crayon-inhand-left.png b/Resources/Textures/_CP14/Objects/Specific/Thaumaturgy/crayon.rsi/crayon-inhand-left.png new file mode 100644 index 0000000000000000000000000000000000000000..83136af6bc237e75e81b787e6fe8325f3e30e227 GIT binary patch literal 229 zcmeAS@N?(olHy`uVBq!ia0vp^4j|0I1|(Ny7TyC=jKx9jP7LeL$-D$|=6kw0hE&XX zduyTKVFMo4fUVaL8acR~mSB@p&{5ImsFV@kYLhvayQ05-?zsa`w3&cf7#{d%t+h4& zJu@fmTh!~7Zv@XzJnXG`F{*oU|Ad))w~8&D61ci{uNzEv@65fObpN}* z97rz%!;X#dvmR>mX1AX=I~*>3jcFVdQ&MBb@0N{95r~m)} literal 0 HcmV?d00001 diff --git a/Resources/Textures/_CP14/Objects/Specific/Thaumaturgy/crayon.rsi/crayon-inhand-right.png b/Resources/Textures/_CP14/Objects/Specific/Thaumaturgy/crayon.rsi/crayon-inhand-right.png new file mode 100644 index 0000000000000000000000000000000000000000..2d6148e6b33e9a30e0fed51ae64a30a98a724cc5 GIT binary patch literal 316 zcmeAS@N?(olHy`uVBq!ia0vp^4j|0I1|(Ny7TyC=jKx9jP7LeL$-D$|zInPhhE&XX zd&`io$w1=h$MacD%!bEiUUal%%#&GQte*0M@y4!#)_aFfGDnC@`gDl7azFbo&FLGL zSmVzE)DHv|0irvt(q?weP3}mZwsO^pW+VIBm0CqxZ>wzbz5ZC`_r%;?)9$KGywHE) zwB_?&!+#|=&cAwJ?$^H8=vc+`Ir23-cJH}X_2VJu#i-xm@`+c!Ux?Dqz3p|`r2GBR z-}|cT;-{s)(SXghxczoxf||sQSwBURd4+E@hjKLe-e?w=nJ#}W?f1SrAJZioIyyRDFz)?c z`|I1by14AS3>&Ulbs4aBoCpg&V`+HI0?3{cv~G$}i0HYUi#tvWeNa}CW+*zxp?IMB t|M!^BybSk!k4RjMs!oy-ym-2XfqjbRn_m`j9YCirc)I$ztaD0e0st})OOOBn literal 0 HcmV?d00001 diff --git a/Resources/Textures/_CP14/Objects/Specific/Thaumaturgy/crayon.rsi/handle-inhand-left.png b/Resources/Textures/_CP14/Objects/Specific/Thaumaturgy/crayon.rsi/handle-inhand-left.png new file mode 100644 index 0000000000000000000000000000000000000000..d984eba53664e2fd67dd3c719e482806e7f9605d GIT binary patch literal 207 zcmeAS@N?(olHy`uVBq!ia0vp^4j|0I1|(Ny7TyC=jKx9jP7LeL$-D$|Iz3$+Ln`LH zy|t0^uz?6mz{F#EJ%;N-mvxvnZtnPY-z84L_rmrAAMP=Be?RR~E{T4&Wqt6gy)9MKwyh7oHO=x>#^W0M_Y=aqPceeDFfb&!njKbd z*?u_i?1#mfCG4*y1Me73ka&4fxl3c83Ng@K+all_`}7yIDS8 zvNbI3yw$49@-gRcMQ1N9e)mwZU#jk&gmLZ1E{WtPn|*Ke*KgmjM^3kVa=|$TU{hmSZ_$^n1=id zKFz4JL__S+Q>OwGAWvDv!{|Ve^V9u{w^2e9y9TESfwYUs{W*cw-$(;M8bF*GHW<1DT^3(o|Q+L)&h%30<4r)l;WMHs+sr+