From e2eb8a3df4cfd54fbae6a67ca990c0d9cb9ccdc1 Mon Sep 17 00:00:00 2001 From: Guilherme Ornel <86210200+joshepvodka@users.noreply.github.com> Date: Thu, 21 Dec 2023 19:16:42 -0300 Subject: [PATCH] Makes sabre sheathe use ItemSlots (#22792) * added item slot * fixed filled * localized verbs * github check was acting up --- Resources/Locale/en-US/clothing/belts.ftl | 2 ++ .../Prototypes/Catalog/Fills/Items/belt.yml | 7 ++++--- .../Entities/Clothing/Belt/belts.yml | 18 +++++++++++------- 3 files changed, 17 insertions(+), 10 deletions(-) create mode 100644 Resources/Locale/en-US/clothing/belts.ftl diff --git a/Resources/Locale/en-US/clothing/belts.ftl b/Resources/Locale/en-US/clothing/belts.ftl new file mode 100644 index 0000000000..c0281b9fec --- /dev/null +++ b/Resources/Locale/en-US/clothing/belts.ftl @@ -0,0 +1,2 @@ +sheath-insert-verb = Sheathe +sheath-eject-verb = Unsheathe \ No newline at end of file diff --git a/Resources/Prototypes/Catalog/Fills/Items/belt.yml b/Resources/Prototypes/Catalog/Fills/Items/belt.yml index 20466d7db4..2b193fd61b 100644 --- a/Resources/Prototypes/Catalog/Fills/Items/belt.yml +++ b/Resources/Prototypes/Catalog/Fills/Items/belt.yml @@ -114,9 +114,10 @@ parent: ClothingBeltSheath suffix: Filled components: - - type: StorageFill - contents: - - id: CaptainSabre + - type: ContainerFill + containers: + item: + - CaptainSabre - type: entity id: ClothingBeltMilitaryWebbingGrenadeFilled diff --git a/Resources/Prototypes/Entities/Clothing/Belt/belts.yml b/Resources/Prototypes/Entities/Clothing/Belt/belts.yml index e1495c20b3..6f80cf4f26 100644 --- a/Resources/Prototypes/Entities/Clothing/Belt/belts.yml +++ b/Resources/Prototypes/Entities/Clothing/Belt/belts.yml @@ -399,7 +399,7 @@ - type: Appearance - type: entity - parent: ClothingBeltStorageBase + parent: [ClothingBeltBase, ClothingSlotBase] id: ClothingBeltSheath name: sabre sheath description: An ornate sheath designed to hold an officer's blade. @@ -409,11 +409,15 @@ state: sheath - type: Clothing sprite: Clothing/Belt/sheath.rsi - - type: Storage - capacity: 15 - whitelist: - tags: - - CaptainSabre + - type: ItemSlots + slots: + item: + name: Sabre + insertVerbText: sheath-insert-verb + ejectVerbText: sheath-eject-verb + whitelist: + tags: + - CaptainSabre - type: ItemMapper mapLayers: sheath-sabre: @@ -421,7 +425,7 @@ tags: - CaptainSabre - type: Appearance - + # Belts without visualizers - type: entity