Add pet bag - wearable backpack for pets (#37440)

* Add pet bag

* Trailing whitespace moment

* make the linter happy

* Fix trailing whitespace concern.

* Fix Construction component oopsy-daisy

* yml guideline moment

* remove weird extra whitespace

* make the maintainer happy

* Adjusted bag visuals based on feedback

* Allow the fox aghost admin to use pet bags
This commit is contained in:
Sparlight
2025-06-14 10:09:05 -06:00
committed by GitHub
parent f1ef41fad5
commit 937326460f
15 changed files with 113 additions and 3 deletions

View File

@@ -145,3 +145,6 @@ construction-graph-tag-fire-helmet = fire helmet
# salvage
construction-graph-tag-spationaut-hardsuit = spationaut hardsuit
# clothing
construction-graph-tag-backpack = backpack

View File

@@ -30,6 +30,10 @@
delay: 0.5
- type: ExplosionResistance
damageCoefficient: 0.9
- type: Tag
tags:
- WhitelistChameleon
- Backpack
- type: entity
parent: ClothingBackpack

View File

@@ -75,3 +75,26 @@
solution: tank
- type: ExaminableSolution
solution: tank
- type: entity
parent: ClothingBackpack
id: ClothingBagPet
name: pet bag
description: A small bag designed for use by pets and small animals.
components:
- type: Sprite
sprite: Clothing/Back/Specific/petbag.rsi
- type: Storage
grid:
- 1,0,2,0
- 0,1,2,3
- 6,0,7,0
- 6,1,8,3
- type: Tag
tags:
- WhitelistChameleon
- CorgiWearable
- PetOnly
- type: Construction
graph: ClothingBagPet
node: bagPet

View File

@@ -1,4 +1,4 @@
- type: inventoryTemplate
- type: inventoryTemplate
id: arachnid
slots:
- name: shoes
@@ -81,6 +81,9 @@
uiWindowPos: 3,0
strippingWindowPos: 0,5
displayName: Back
blacklist:
tags:
- PetOnly
- name: pocket4
slotTexture: web

View File

@@ -1,4 +1,4 @@
#human but no shoes
#human but no shoes
- type: inventoryTemplate
id: diona
slots:
@@ -115,3 +115,6 @@
uiWindowPos: 3,0
strippingWindowPos: 0,5
displayName: Back
blacklist:
tags:
- PetOnly

View File

@@ -1,4 +1,4 @@
- type: inventoryTemplate
- type: inventoryTemplate
id: human
slots:
- name: shoes
@@ -121,3 +121,6 @@
uiWindowPos: 3,0
strippingWindowPos: 0,5
displayName: Back
blacklist:
tags:
- PetOnly

View File

@@ -74,3 +74,15 @@
whitelist:
tags:
- CorgiWearable
- name: back
slotTexture: back
fullTextureName: template_small
slotFlags: BACK
slotGroup: SecondHotbar
stripTime: 6
uiWindowPos: 3,0
strippingWindowPos: 0,5
displayName: Back
whitelist:
tags:
- CorgiWearable

View File

@@ -0,0 +1,19 @@
- type: constructionGraph
id: ClothingBagPet
start: start
graph:
- node: start
edges:
- to: bagPet
steps:
- tag: Backpack
name: construction-graph-tag-backpack
icon:
sprite: Clothing/Back/Backpacks/backpack.rsi
state: icon
doAfter: 1
- material: Cable
amount: 10
doAfter: 1
- node: bagPet
entity: ClothingBagPet

View File

@@ -173,3 +173,11 @@
targetNode: scraphelmet
category: construction-category-clothing
objectType: Item
- type: construction
id: ClothingBagPet
graph: ClothingBagPet
startNode: start
targetNode: bagPet
category: construction-category-clothing
objectType: Item

View File

@@ -42,6 +42,9 @@
- type: Tag
id: ATVKeys
- type: Tag
id: Backpack
- type: Tag
id: Balloon
@@ -1037,6 +1040,9 @@
- type: Tag
id: PercussionInstrument
- type: Tag
id: PetOnly
- type: Tag
id: PetWearable

Binary file not shown.

After

Width:  |  Height:  |  Size: 822 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.2 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.0 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.0 KiB

View File

@@ -0,0 +1,26 @@
{
"version": 1,
"license": "CC-BY-SA-3.0",
"copyright": "Sprited by Sparlight (GitHub) for SS14. icon modified by Samuka-C (Github) to make the straps less ugly.",
"size": {
"x": 32,
"y": 32
},
"states": [
{
"name": "icon"
},
{
"name": "equipped-BACKPACK",
"directions": 4
},
{
"name": "inhand-left",
"directions": 4
},
{
"name": "inhand-right",
"directions": 4
}
]
}