From 016d35645f840bf76511734d4081e7b2b61c5624 Mon Sep 17 00:00:00 2001 From: Nim <128169402+Nimfar11@users.noreply.github.com> Date: Wed, 24 Jan 2024 00:15:48 +0200 Subject: [PATCH] Solo bench (#24203) * solo bench * price * fix * comfy * 111 * clear --- .../Entities/Structures/Furniture/bench.yml | 51 ++++++++++++++++++ .../Construction/Graphs/furniture/seats.yml | 23 ++++++++ .../Recipes/Construction/furniture.yml | 17 ++++++ .../Bench/comf_bench.rsi/bench_solo_base.png | Bin 0 -> 1134 bytes .../Bench/comf_bench.rsi/bench_solo_cover.png | Bin 0 -> 501 bytes .../Furniture/Bench/comf_bench.rsi/full.png | Bin 0 -> 1411 bytes .../Furniture/Bench/comf_bench.rsi/meta.json | 23 ++++++++ 7 files changed, 114 insertions(+) create mode 100644 Resources/Prototypes/Entities/Structures/Furniture/bench.yml create mode 100644 Resources/Textures/Structures/Furniture/Bench/comf_bench.rsi/bench_solo_base.png create mode 100644 Resources/Textures/Structures/Furniture/Bench/comf_bench.rsi/bench_solo_cover.png create mode 100644 Resources/Textures/Structures/Furniture/Bench/comf_bench.rsi/full.png create mode 100644 Resources/Textures/Structures/Furniture/Bench/comf_bench.rsi/meta.json diff --git a/Resources/Prototypes/Entities/Structures/Furniture/bench.yml b/Resources/Prototypes/Entities/Structures/Furniture/bench.yml new file mode 100644 index 0000000000..76bebd6166 --- /dev/null +++ b/Resources/Prototypes/Entities/Structures/Furniture/bench.yml @@ -0,0 +1,51 @@ +- type: entity + name: comfortable bench + id: BenchComfy + parent: SeatBase + description: A bench with an extremely comfortable backrest. + components: + - type: Transform + anchored: true + - type: Rotatable + - type: Sprite + sprite: Structures/Furniture/Bench/comf_bench.rsi + layers: + - state: bench_solo_base + color: "#767e82" + - state: bench_solo_cover + - type: Physics + bodyType: Static + - type: StaticPrice + price: 15 + +- type: entity + id: BenchColorfulComfy + suffix: Solo. Colorful + parent: BenchComfy + description: A bench with an extremely comfortable backrest. + components: + - type: Sprite + layers: + - state: bench_solo_base + color: "#767e82" + - state: bench_solo_cover + map: [ "enum.DamageStateVisualLayers.Base" ] + - type: RandomSprite + available: + - enum.DamageStateVisualLayers.Base: + bench_solo_cover: Rainbow + +- type: entity + id: BenchRedComfy + suffix: Solo. Red + parent: BenchComfy + components: + - type: Sprite + layers: + - state: bench_solo_base + color: "#767e82" + - state: bench_solo_cover + color: "#8c4141" + - type: Construction + graph: Seat + node: redComfBench diff --git a/Resources/Prototypes/Recipes/Construction/Graphs/furniture/seats.yml b/Resources/Prototypes/Recipes/Construction/Graphs/furniture/seats.yml index fe8a17bfb8..9089de34e8 100644 --- a/Resources/Prototypes/Recipes/Construction/Graphs/furniture/seats.yml +++ b/Resources/Prototypes/Recipes/Construction/Graphs/furniture/seats.yml @@ -63,6 +63,13 @@ - material: Steel amount: 2 doAfter: 1 + - to: redComfBench + steps: + - material: Steel + amount: 2 + doAfter: 1 + - material: Cloth + amount: 1 - node: chair entity: Chair @@ -196,3 +203,19 @@ - tool: Screwing doAfter: 1 + - node: redComfBench + entity: BenchRedComfy + edges: + - to: start + completed: + - !type:SpawnPrototype + prototype: SheetSteel1 + amount: 2 + - !type:SpawnPrototype + prototype: MaterialCloth1 + amount: 1 + steps: + - tool: Cutting + doAfter: 1 + - tool: Screwing + doAfter: 1 diff --git a/Resources/Prototypes/Recipes/Construction/furniture.yml b/Resources/Prototypes/Recipes/Construction/furniture.yml index 6e14834ff2..efe85a8546 100644 --- a/Resources/Prototypes/Recipes/Construction/furniture.yml +++ b/Resources/Prototypes/Recipes/Construction/furniture.yml @@ -203,6 +203,23 @@ conditions: - !type:TileNotBlocked +- type: construction + name: comfortable red bench + id: RedComfBench + graph: Seat + startNode: start + targetNode: redComfBench + category: construction-category-furniture + description: A bench with an extremely comfortable backrest. + icon: + sprite: Structures/Furniture/Bench/comf_bench.rsi + state: full + objectType: Structure + placementMode: SnapgridCenter + canBuildInImpassable: false + conditions: + - !type:TileNotBlocked + #tables - type: construction name: steel table diff --git a/Resources/Textures/Structures/Furniture/Bench/comf_bench.rsi/bench_solo_base.png b/Resources/Textures/Structures/Furniture/Bench/comf_bench.rsi/bench_solo_base.png new file mode 100644 index 0000000000000000000000000000000000000000..aefa48458e3fcbe4d0eb3bdfc25278b3726b97c2 GIT binary patch literal 1134 zcmV-!1d;oRP)fBKZok?(ea)%&oV(Z};AxyX^j& z-Mw7iZ{F<8yqS6Ls-oa16(90z6J)SQh}?XC}vc;tyQWB;a}+)&0ZImHR7e-q^9T zR?X1o6yWw1AbBxyiV5TODI=WS-95>{El#=s1o1DPZ;tXq-#2j49TQ^5hc!U3%~$L4 zxi#0;t^`b;j}IjPVGQssAS8up`byC%K-~DaCmx|m z0;B?vg&{cEst3TuD^Gq;iAv-4vUXk`c!^Ug09hC`@@N02m242}F;97Ktv;1O5N{rD z2uqYH5C=E`Sqr!-OZn0VV40+B(GXhd3x2r_+KT>haLHdyi~77TurmZ387jykvr-VGa(R@XDzlOTZ0;H80Ny$h zDwVEQxeSVeBT)gi_XrwBT?yH&?hm5rlZ29y5Cx339lKIIbq zWJ`02%obp}Wi|-%$X2?5C^$+5h=QY3fG9Z1ayaRqlMTae?bjvdb@ur&y)1~Ba2e92A8 zUi$d0k9{VeWd$!8$LARP{9$}LgF)jsi-V;a!zn|?fOB349u`C-wOBnj6F3ygU|SP= zePfZhrqH`-2Q2#5G~RwIHYtMhLEVoC$@c}K4_MZoo^c}@q;b3Wu65CqR1!I7FXMC# ztaxi`(zpLi-L&08AB4S_pEeoQs1*F=*uI8q;omy>rF;u?)VB&ua$3{$a-F~e`QkTa)=M&f6|K2vykM2qna?~gQzF0FhTUK97tIvV$JtQS#QNu3xK(&^ ztFo~N1Md=@)9rtqZ`E4v+7~nPpm77+rx&5l*LVKvl9{=U9TpHEZ7{nZR6qV$;d1}` z1is#h$Gl<_<@d1s*fM?ThrHYOrZG$r)_HJqqSd+PX)-e%nc`$uKF;VWN@Y9W@ZTcn g_{5cU{6APGK3zFU-IVnyFdi8^UHx3vIVCg!0Bdm1^Z)<= literal 0 HcmV?d00001 diff --git a/Resources/Textures/Structures/Furniture/Bench/comf_bench.rsi/full.png b/Resources/Textures/Structures/Furniture/Bench/comf_bench.rsi/full.png new file mode 100644 index 0000000000000000000000000000000000000000..0fb29037fa35b3e3455cc66fb15aa9a5cbc8c7c0 GIT binary patch literal 1411 zcmV-}1$_F6P)Px)JxN4CRCt{2n@>n1R~*N`Q*-iAdI)qth28vR4nmL+D1jhYiW1y|rr;1*C=_9Z zvORd{qI7Xl+=GXDQS?+6LIRDJt^`BrPzZzt$syojNXCr2Xdqp3C_U_LnI4ii&cq}$ zi8GnB&gYbwOy2kR-n{pFzxR7DfQ^lfjg8H{g#v&`I4W5op37$_D|D4OBH^gC6q|>~ zJB~nbav-9`!Z|L4YXFd}ZUhGa#Mn8clc%_>RtF;b@q>gIJBL*IWFUIoZ~%=rGBQeG zd3kvtqKAivC>GA;Yb%GKqxEK`QZZH3?RKlKl|yilkRj+Omqc6$*BBY4Os_m})4&(P zHOeIsKEF%lf6~cQQ}tu)oa&ka0NTk|(gkaEo{EH{()zO}xDc*opWq4xOwkhyMF0Tl zahu!w4Ifae^ArFn5{?1@a`_CWn^ndDKEF%V6UrqKsb5ltYO`OjsLJ>GU8vRhn@BK~KEcN3s%)rPFabZFukVmC zC;<(pM`k0!#DuX!0D!9eW>1$K0O0YCBmVdirl+R|5(mT|m+^3HOuiR-Fo7(9v$t1< zkNsB8-d@R?VxfpzfzYtf8ZeoKssSpMis{1bdYH#M4xitJY~mQ9wWpYkFMy_LLv`ok z-vR)#iDNnV0-6mF2u|WcxCX~@;5g1u;dXrdAgNZK%Fn6v36^5>2>q~OxUSOi5>3j= z<*+jH%O;L78(%;+acrtK(U^@dKr9qN(N5;p96Tt<)JLYlTAc@p7R@4;&wzF^vZmYv zfJSgI2uRF9dVo^j=m@kG+R3Q(BjKp@zV=RfUwbDFVo^jp8Cfq9j!IVR%Lx$$(`Fmd z8k1Y8|B2aR!;S;E2@#vl@J}-ZeSViJB(+*!6$lY$WEEEEQ&wezh6T;6k1{V{bq-%I zz1XbF30gfg`a!SFx>kc<&3}o{KK~SoQ*Hw=iRN2zv(+A zw*Kr%+xvmwB-!3FZ0nn>SYzzmt#t%pb9=w9vb#0_NguV6%V(&|>Z7)A%pD|c>$NH{8`kM>Y3oa5KuvK^o6q@$H!>A45cPDa|;`W`bgGi~#Sl}ZI1$K8te z??O6xijh&OtLDMMf%JUsr=H91xdCS53ji8f+ja>~x7!Vl;|$&I_ISr}S*>bn65D#g zo(8*p+1xc&VRq8;F0`|)T^*G4+yk@ovxk7y23U>V09G4dHFg77ZGhF>`{i)g z2IwcW95%G-U=M+AUk-EFs~4?0=cYwrb#N_OW8fA#AMec{u4y9 z!QGDWC0@PmD<9BzT3mV5RS8LpZ*K1!vNw>+XQ