Skip to content

Commit

Permalink
Added support so that smile can use hats (#33924)
Browse files Browse the repository at this point in the history
* Added support so that smile can use hats

Changed Prototypes/Entities/Mobs/NPCs/pets.yml
Added smile_inventory_template.yml in Resources/Prototypes/inventoryTemplates
Added dir smile_displacement.rsi inside Resources/Textures/Mobs/Pets/smile.rsi
Added smile_displacement.rsi/meta.json
Added smile_displacement.rsi/head.png

* Fixed sprite path in ProtoTypes/Entities/Mobs/NPCs/pets.yml mapping to wrong smile_displacement.rsi
Fixed smile_inventory_template.yml using uiWindowPos as 1,2 instead of 0,1

Moved Resources/Textures/Mobs/Pets/smile.rsi/ to .../Pets/smile/smile.rsi/
Moved Resources/Textures/Mobs/Pets/smile.rsi/smile_displacement.rsi to .../Pets/smile/smile_displacement.rsi

* Minor fixes: removing comments and change naming

Renamed Resources/Textures/Mobs/Pets/smile/smile.rsi To .../Mobs/Pets/Smile/smile.rsi

* Removed smile_inventory_template.yml and used head_inventory_template.yml instead
  • Loading branch information
zHonys authored Dec 29, 2024
1 parent 3f84b04 commit 5d0d371
Show file tree
Hide file tree
Showing 6 changed files with 30 additions and 2 deletions.
14 changes: 12 additions & 2 deletions Resources/Prototypes/Entities/Mobs/NPCs/pets.yml
Original file line number Diff line number Diff line change
Expand Up @@ -712,7 +712,7 @@
- type: entity
name: Smile
id: MobSlimesPet
parent: MobAdultSlimes
parent: [MobAdultSlimes, StripableInventoryBase]
description: This masterpiece has gone through thousands of experiments. But it is the sweetest creature in the world. Smile Slime!
components:
- type: Sprite
Expand All @@ -722,6 +722,16 @@
- map: [ "enum.DamageStateVisualLayers.BaseUnshaded" ]
state: aslime-_3
shader: unshaded
- map: [ "head" ]
- type: Inventory
speciesId: slime
templateId: head
displacements:
head:
sizeMaps:
32:
sprite: Mobs/Pets/Smile/smile_displacement.rsi
state: head
- type: MobThresholds
thresholds:
0: Alive
Expand Down Expand Up @@ -767,7 +777,7 @@
Caustic: 1
- type: MultiHandedItem
- type: Item
sprite: Mobs/Pets/smile.rsi
sprite: Mobs/Pets/Smile/smile.rsi
size: Huge
- type: SentienceTarget
flavorKind: station-event-random-sentience-flavor-slime
Expand Down
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
{
"version": 1,
"license": "CC-BY-SA-3.0",
"copyright": "Head displacement made by zHonys",
"size": {
"x": 32,
"y": 32
},
"load": {
"srgb": false
},
"states": [
{
"name": "head",
"directions": 4
}
]
}

0 comments on commit 5d0d371

Please sign in to comment.