From c7098508e85e4f864ac387022090bb9cd9601668 Mon Sep 17 00:00:00 2001 From: Fansana Date: Sat, 19 Oct 2024 21:00:50 +0200 Subject: [PATCH 1/4] sleeping bag --- .../Structures/Furniture/sleeping_bag.yml | 90 ++++++++++++++++++ .../Recipes/Crafting/improvised.yml | 27 ++++++ .../Structures/sleepingbag.rsi/closed.png | Bin 0 -> 629 bytes .../Structures/sleepingbag.rsi/folded.png | Bin 0 -> 448 bytes .../Structures/sleepingbag.rsi/meta.json | 23 +++++ .../Floof/Structures/sleepingbag.rsi/open.png | Bin 0 -> 814 bytes .../Structures/sleepingbag.rsi/opening.png | Bin 0 -> 724 bytes 7 files changed, 140 insertions(+) create mode 100644 Resources/Prototypes/Floof/Entities/Structures/Furniture/sleeping_bag.yml create mode 100644 Resources/Textures/Floof/Structures/sleepingbag.rsi/closed.png create mode 100644 Resources/Textures/Floof/Structures/sleepingbag.rsi/folded.png create mode 100644 Resources/Textures/Floof/Structures/sleepingbag.rsi/meta.json create mode 100644 Resources/Textures/Floof/Structures/sleepingbag.rsi/open.png create mode 100644 Resources/Textures/Floof/Structures/sleepingbag.rsi/opening.png diff --git a/Resources/Prototypes/Floof/Entities/Structures/Furniture/sleeping_bag.yml b/Resources/Prototypes/Floof/Entities/Structures/Furniture/sleeping_bag.yml new file mode 100644 index 00000000000..7ec8dea80c6 --- /dev/null +++ b/Resources/Prototypes/Floof/Entities/Structures/Furniture/sleeping_bag.yml @@ -0,0 +1,90 @@ +- type: entity + id: SleepingBag + parent: BaseFoldable + name: sleeping bag + description: A warm cocoon, cradling you under the stars as the night passes. Has enough space for two. + components: + - type: HealOnBuckle + damage: + types: + Poison: -0.1 + Blunt: -0.1 + - type: Construction + graph: SleepingBag + node: sleepingbag + - type: Item + size: Normal + - type: Sprite + drawdepth: SmallObjects # I guess body bags need appear above a coroner's table? + sprite: Floof/Structures/sleepingbag.rsi + layers: + - state: closed + map: ["unfoldedLayer", "enum.StorageVisualLayers.Base"] + - map: ["foldedLayer"] + state: folded + visible: false + - state: open + map: [ "enum.StorageVisualLayers.Door" ] + - type: Icon + sprite: Floof/Structures/sleepingbag.rsi + state: closed + - type: EntityStorageVisuals + stateDoorOpen: open + - type: Tag + tags: + - BodyBag + - type: Clickable + - type: InteractionOutline + - type: MovedByPressure + - type: Physics + bodyType: Dynamic + - type: Strap + position: Down + rotation: -90 + - type: Transform + noRot: true + - type: Fixtures + fixtures: + fix1: + shape: + !type:PhysShapeAabb + bounds: "-0.25,-0.4,0.25,0.1" + density: 20 + mask: + - Impassable + - type: EntityStorageLayingDownOverride + - type: Appearance + - type: GenericVisualizer + visuals: + enum.FoldedVisuals.State: + foldedLayer: + True: {visible: true} + False: {visible: false} + unfoldedLayer: + True: {visible: false} + False: {visible: true} + - type: Pullable + - type: ContainerContainer + containers: + entity_storage: !type:Container + - type: EntityStorage + airtight: false + capacity: 2 + isCollidableWhenOpen: true + closeSound: + path: /Audio/Misc/zip.ogg + openSound: + path: /Audio/Misc/zip.ogg + +- type: entity + id: SleepingBagFolded + name: sleeping bag + description: A warm cocoon, cradling you under the stars as the night passes. Has enough space for two. + parent: SleepingBag + suffix: folded + components: + - type: Icon + sprite: Floof/Structures/sleepingbag.rsi + state: folded + - type: Foldable + folded: true diff --git a/Resources/Prototypes/Recipes/Crafting/improvised.yml b/Resources/Prototypes/Recipes/Crafting/improvised.yml index 3f8458f58d1..ac25521651a 100644 --- a/Resources/Prototypes/Recipes/Crafting/improvised.yml +++ b/Resources/Prototypes/Recipes/Crafting/improvised.yml @@ -11,6 +11,33 @@ state: icon objectType: Item +- type: constructionGraph + id: SleepingBag + start: start + graph: + - node: start + edges: + - to: sleepingbag + steps: + - material: Cloth + amount: 5 + doAfter: 4 + - node: sleepingbag + entity: SleepingBagFolded + +- type: construction + name: sleeping bag + id: sleeping_bag + graph: SleepingBag + startNode: start + targetNode: sleepingbag + category: construction-category-furniture + description: A sleeping bed, perfect for those calm nights under a stary sky. + icon: + sprite: Floof/Structures/sleepingbag.rsi + state: open + objectType: Item + - type: construction name: ghost sheet id: ghost_sheet diff --git a/Resources/Textures/Floof/Structures/sleepingbag.rsi/closed.png b/Resources/Textures/Floof/Structures/sleepingbag.rsi/closed.png new file mode 100644 index 0000000000000000000000000000000000000000..e0de4f240c4f957cf5a613883a3dea0aba7e9d48 GIT binary patch literal 629 zcmV-*0*d{KP)Px%FG)l}R9J=WmA`KiVH}5_!=oTS6H-9RLIav;P~(qDtV0uB985a7_#ZggbTtk- zy1CWFPW}g7YD|oY4h^ZA5G4kZ4p7qrF?ZM0qPS?+zm@B7~8x!im2 zfsKugjg8F-Bk7I#woFx5^aHE7C9`&UG*ly(dBxHT^xbToCX&F{) z6;0~_R~+wDMD(M+G|i48`m))g!O#~UFXNVjw7d0@*M~R0Oe8dj5csh9oJ?YokS945 zc>C;A%NxC1zcp6ScwI=p66?escyM)<<@KAmQ^S8UHmDHGd!gh~P;ACqdmS3xPr26`%EQ!nxTc)8K|-!&u=nY&N5WLvo6- zMn_@4r-^YPpobqOaFnc3q+HJu4_+6aq+S~mFbn=(S)DliT=?#g2*CDEj$N%L4y3`; zQ3mL0-6MsLlGSB4N-F@U?JWw`HPJRAj^b2g{z$>&F#8YaC~Cf60KiOQ^VfR-LZ?&I zb_=3z)(^O64g#9r0BCh8rUG59`}bd<7j%h$H)io%|AykvHPx$dPzhoVP7R=tuX;1FB=^s!9}6{|h^7bT zv|g*M%x?m}w@DcQ;HGipCkJpEMIg8fs*(mMIol)s<3dOS%%xTX|Dt*!k2im;M~%q? zRGX!V%o$Wnc?HAO18ASMsJ22Gz-bhD={*K)rk)eK@EMSFd^0GAJY zn0nezZdSPx%=t)FDR9J=Wl}$_&K^TUgh3(Q7+HNaF{tFa|5DXYDBAOWdxtQqHn0PSp;K>+` z@nVcIT)cZA(VKS<7!xBQ8V;HmP!9xAX+#5x1=>=e+m@y4q1lmzV!^*t-^+Zn^JSj* z`!cfw1r=0KK?VH-b=O}qy6Z0)+sT#9pf`BSkSG!hiPd=#J8k7VnjhQKMiTb!CTEP zrwYJABF2;VeJmxuGnX8b#gMrID3*E*~ zyCMGyWXk6Za`#1t1)#_-fSjZ1ZbFNW0#L6u5l}0|UIDcZJ!2E|Ee+&?t_Q@m8OmL) zD8*$gr@j)`W~keB2ra!pT8~pC$z%*YZ*iLptOuJwMRrkSE3p9omV|*5EqA#0>JWC> z!|^?RB4P03jcgZ^(Px# literal 0 HcmV?d00001 diff --git a/Resources/Textures/Floof/Structures/sleepingbag.rsi/opening.png b/Resources/Textures/Floof/Structures/sleepingbag.rsi/opening.png new file mode 100644 index 0000000000000000000000000000000000000000..86edefb9f69b34e92957995e8775c84c9e6f29a9 GIT binary patch literal 724 zcmV;_0xSKAP)Px%j!8s8R9J=WmCH{PQ543%Dec$?g_*Ifv^?5cB#~f>=|(}+nCOOui7PkmT)2?L zXxI_sq8s<_U}xeVp!i78#JF%l@Rbl-fksSdz!pkd=)C&C#bhqiQZmyJbu-^)&Yg4S z{JwkV&RoEhDO09Q{bx~Xa3%6+kAj6H`0^%+ois#p5s?gu8Od= z*>T2y6MpwuEUZoAwC}p^EL^k?>pNeNE-YX)bRRiBg`$+k+vO>6j(!N0?YjCfdx@B! z0KjV>+OyiMIMF_Y(a-~3pb-_NG-eYMI3J87#0GHO$p8Sh_&nbHh+~KUjjXsxS^fqb z0A>>ts7h9Fjt+R7EJ92lLQEe#P8K75Lu`8{ErkMIo*a%iLfSXqK zz>d6ug0PC7&U45VlgcXqfNpje(ZH>ipn7JWf4_r(JBFXz@6l$V0RYvSj4*o{02Bj& z@+ Date: Sat, 19 Oct 2024 21:15:52 +0200 Subject: [PATCH 2/4] fix offset --- .../Floof/Structures/sleepingbag.rsi/closed.png | Bin 629 -> 629 bytes .../Floof/Structures/sleepingbag.rsi/folded.png | Bin 448 -> 448 bytes 2 files changed, 0 insertions(+), 0 deletions(-) diff --git a/Resources/Textures/Floof/Structures/sleepingbag.rsi/closed.png b/Resources/Textures/Floof/Structures/sleepingbag.rsi/closed.png index e0de4f240c4f957cf5a613883a3dea0aba7e9d48..2d1b4f6a3a27646b584172bbaca4cad9f5bda0ea 100644 GIT binary patch delta 36 rcmey$@|9)6tc|k|F-l6$PJY1e#mTbF?pgdK1|aZs^>bP0l+XkK5oQfh delta 35 qcmey$@|9)6tc^1dGfK=(e!xGwgk_m#q*Vd~5O})!xvXf}#m5!?nP{>!kTKo80U)kAFhKQ&pAGF;z z%l>$6VM`^P8bBdm^=4v8?w?OT7HT>XO%Kdzy;fP7-voYdlQICnP2&|Ui^kXR%aUx0qEj~UNM#glHq)ziKPct$jZ5lulN zcm}?WFy&00008IO835p>apWfla2iD*xC^S1 z1}Hh(BmLt-NCV8JRs;W{dLfTDf2>E1$pciIrHRZLR7`mV!++HSXrHyHwn7=eX%u Date: Sat, 19 Oct 2024 21:22:18 +0200 Subject: [PATCH 3/4] Update improvised.yml --- Resources/Prototypes/Recipes/Crafting/improvised.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Resources/Prototypes/Recipes/Crafting/improvised.yml b/Resources/Prototypes/Recipes/Crafting/improvised.yml index ac25521651a..3736e2a3207 100644 --- a/Resources/Prototypes/Recipes/Crafting/improvised.yml +++ b/Resources/Prototypes/Recipes/Crafting/improvised.yml @@ -10,7 +10,7 @@ sprite: Objects/Weapons/Melee/baseball_bat.rsi state: icon objectType: Item - +# Floof Section - type: constructionGraph id: SleepingBag start: start @@ -37,7 +37,7 @@ sprite: Floof/Structures/sleepingbag.rsi state: open objectType: Item - +# End floof section - type: construction name: ghost sheet id: ghost_sheet From 5030cf6fac0a21f21ac153b44dceb03fbfb92e11 Mon Sep 17 00:00:00 2001 From: Fansana Date: Sat, 19 Oct 2024 23:24:59 +0200 Subject: [PATCH 4/4] move floof specific --- .../Floof/Recipes/Crafting/improvised.yml | 26 ++++++++++++++++++ .../Recipes/Crafting/improvised.yml | 27 ------------------- 2 files changed, 26 insertions(+), 27 deletions(-) create mode 100644 Resources/Prototypes/Floof/Recipes/Crafting/improvised.yml diff --git a/Resources/Prototypes/Floof/Recipes/Crafting/improvised.yml b/Resources/Prototypes/Floof/Recipes/Crafting/improvised.yml new file mode 100644 index 00000000000..a89e5f5e418 --- /dev/null +++ b/Resources/Prototypes/Floof/Recipes/Crafting/improvised.yml @@ -0,0 +1,26 @@ +- type: constructionGraph + id: SleepingBag + start: start + graph: + - node: start + edges: + - to: sleepingbag + steps: + - material: Cloth + amount: 5 + doAfter: 4 + - node: sleepingbag + entity: SleepingBagFolded + +- type: construction + name: sleeping bag + id: sleeping_bag + graph: SleepingBag + startNode: start + targetNode: sleepingbag + category: construction-category-furniture + description: A sleeping bed, perfect for those calm nights under a stary sky. + icon: + sprite: Floof/Structures/sleepingbag.rsi + state: open + objectType: Item diff --git a/Resources/Prototypes/Recipes/Crafting/improvised.yml b/Resources/Prototypes/Recipes/Crafting/improvised.yml index 3736e2a3207..3f8458f58d1 100644 --- a/Resources/Prototypes/Recipes/Crafting/improvised.yml +++ b/Resources/Prototypes/Recipes/Crafting/improvised.yml @@ -10,34 +10,7 @@ sprite: Objects/Weapons/Melee/baseball_bat.rsi state: icon objectType: Item -# Floof Section -- type: constructionGraph - id: SleepingBag - start: start - graph: - - node: start - edges: - - to: sleepingbag - steps: - - material: Cloth - amount: 5 - doAfter: 4 - - node: sleepingbag - entity: SleepingBagFolded -- type: construction - name: sleeping bag - id: sleeping_bag - graph: SleepingBag - startNode: start - targetNode: sleepingbag - category: construction-category-furniture - description: A sleeping bed, perfect for those calm nights under a stary sky. - icon: - sprite: Floof/Structures/sleepingbag.rsi - state: open - objectType: Item -# End floof section - type: construction name: ghost sheet id: ghost_sheet