small moth changes (#18810)

* changes

* fix test fail hopefully

* disallow eating containers

* no more eating stored stuff
This commit is contained in:
LankLTE
2023-08-08 21:05:05 -07:00
committed by GitHub
parent 61f546dd0c
commit 6b2fef1ac8
12 changed files with 60 additions and 15 deletions

View File

@@ -28,6 +28,7 @@ using Robust.Shared.Audio;
using Robust.Shared.Player; using Robust.Shared.Player;
using Robust.Shared.Utility; using Robust.Shared.Utility;
using Content.Shared.Tag; using Content.Shared.Tag;
using Content.Server.Storage.Components;
namespace Content.Server.Nutrition.EntitySystems namespace Content.Server.Nutrition.EntitySystems
{ {
@@ -119,6 +120,13 @@ namespace Content.Server.Nutrition.EntitySystems
return (false, true); return (false, true);
} }
// Check for used storage on the food item
if (TryComp<ServerStorageComponent>(food, out var storageState) && storageState.StorageUsed != 0)
{
_popupSystem.PopupEntity(Loc.GetString("food-has-used-storage", ("food", food)), user, user);
return (false, true);
}
var flavors = _flavorProfileSystem.GetLocalizedFlavorsMessage(food, user, foodSolution); var flavors = _flavorProfileSystem.GetLocalizedFlavorsMessage(food, user, foodSolution);
if (foodComp.UsesRemaining <= 0) if (foodComp.UsesRemaining <= 0)

View File

@@ -3,7 +3,7 @@
copyright: "Taken from https://github.com/tgstation/tgstation/commit/31c19654e0f641166ecd80c672ea05362fd19488" copyright: "Taken from https://github.com/tgstation/tgstation/commit/31c19654e0f641166ecd80c672ea05362fd19488"
source: "https://github.com/tgstation/tgstation/commits/master/sound/voice/moth/scream_moth.ogg" source: "https://github.com/tgstation/tgstation/commits/master/sound/voice/moth/scream_moth.ogg"
- files: ["moth_laugh.ogg, moth_chitter.ogg"] - files: ["moth_laugh.ogg, moth_chitter.ogg, moth_squeak.ogg"]
license: "CC-BY-SA-3.0" license: "CC-BY-SA-3.0"
copyright: "Taken from https://github.com/BeeStation/BeeStation-Hornet/commit/11ba3fa04105c93dd96a63ad4afaef4b20c02d0d" copyright: "Taken from https://github.com/BeeStation/BeeStation-Hornet/commit/11ba3fa04105c93dd96a63ad4afaef4b20c02d0d"
source: "https://github.com/BeeStation/BeeStation-Hornet/blob/11ba3fa04105c93dd96a63ad4afaef4b20c02d0d/sound/emotes/" source: "https://github.com/BeeStation/BeeStation-Hornet/blob/11ba3fa04105c93dd96a63ad4afaef4b20c02d0d/sound/emotes/"

Binary file not shown.

View File

@@ -6,7 +6,8 @@ food-you-need-to-hold-utensil = You need to be holding a {$utensil} to eat that!
food-nom = Nom. {$flavors} food-nom = Nom. {$flavors}
food-swallow = You swallow the {$food}. {$flavors} food-swallow = You swallow the {$food}. {$flavors}
food-repulsing = This looks repulsing.
food-has-used-storage = You cannot eat the {$food} with an item stored inside.
food-system-remove-mask = You need to take off the {$entity} first. food-system-remove-mask = You need to take off the {$entity} first.

View File

@@ -8,8 +8,18 @@
- HEAD - HEAD
- type: Sprite - type: Sprite
state: icon state: icon
- type: Food
requiresSpecialDigestion: true
- type: SolutionContainerManager
solutions:
food:
maxVol: 10
reagents:
- ReagentId: Fiber
Quantity: 10
- type: Tag - type: Tag
tags: tags:
- ClothMade
- DroneUsable - DroneUsable
- WhitelistChameleon - WhitelistChameleon

View File

@@ -21,6 +21,7 @@
sprite: Clothing/Head/Hats/beret.rsi sprite: Clothing/Head/Hats/beret.rsi
- type: Tag - type: Tag
tags: tags:
- ClothMade
- HamsterWearable - HamsterWearable
- WhitelistChameleon - WhitelistChameleon
@@ -47,6 +48,7 @@
sprite: Clothing/Head/Hats/beret_rnd.rsi sprite: Clothing/Head/Hats/beret_rnd.rsi
- type: Tag - type: Tag
tags: tags:
- ClothMade
- HamsterWearable - HamsterWearable
- WhitelistChameleon - WhitelistChameleon
@@ -62,6 +64,7 @@
sprite: Clothing/Head/Hats/beret_engineering.rsi sprite: Clothing/Head/Hats/beret_engineering.rsi
- type: Tag - type: Tag
tags: tags:
- ClothMade
- HamsterWearable - HamsterWearable
- WhitelistChameleon - WhitelistChameleon
@@ -77,6 +80,7 @@
sprite: Clothing/Head/Hats/beret_hos.rsi sprite: Clothing/Head/Hats/beret_hos.rsi
- type: Tag - type: Tag
tags: tags:
- ClothMade
- HamsterWearable - HamsterWearable
- WhitelistChameleon - WhitelistChameleon
@@ -136,6 +140,7 @@
sprite: Clothing/Head/Hats/captain.rsi sprite: Clothing/Head/Hats/captain.rsi
- type: Tag - type: Tag
tags: tags:
- ClothMade
- HamsterWearable - HamsterWearable
- WhitelistChameleon - WhitelistChameleon
@@ -186,6 +191,7 @@
storagebase: !type:Container storagebase: !type:Container
- type: Tag - type: Tag
tags: tags:
- ClothMade
- HamsterWearable - HamsterWearable
- WhitelistChameleon - WhitelistChameleon
@@ -201,6 +207,7 @@
sprite: Clothing/Head/Hats/brownfedora.rsi sprite: Clothing/Head/Hats/brownfedora.rsi
- type: Tag - type: Tag
tags: tags:
- ClothMade
- HamsterWearable - HamsterWearable
- WhitelistChameleon - WhitelistChameleon
@@ -238,6 +245,7 @@
sprite: Clothing/Head/Hats/hopcap.rsi sprite: Clothing/Head/Hats/hopcap.rsi
- type: Tag - type: Tag
tags: tags:
- ClothMade
- HamsterWearable - HamsterWearable
- WhitelistChameleon - WhitelistChameleon
@@ -253,6 +261,7 @@
sprite: Clothing/Head/Hats/hoshat.rsi sprite: Clothing/Head/Hats/hoshat.rsi
- type: Tag - type: Tag
tags: tags:
- ClothMade
- HamsterWearable - HamsterWearable
- WhitelistChameleon - WhitelistChameleon
@@ -356,6 +365,7 @@
sprite: Clothing/Head/Hats/surgcap_blue.rsi sprite: Clothing/Head/Hats/surgcap_blue.rsi
- type: Tag - type: Tag
tags: tags:
- ClothMade
- HamsterWearable - HamsterWearable
- WhitelistChameleon - WhitelistChameleon
@@ -393,6 +403,7 @@
sprite: Clothing/Head/Hats/tophat.rsi sprite: Clothing/Head/Hats/tophat.rsi
- type: Tag - type: Tag
tags: tags:
- ClothMade
- HamsterWearable - HamsterWearable
- WhitelistChameleon - WhitelistChameleon
@@ -465,6 +476,7 @@
sprite: Clothing/Head/Hats/wizardhat.rsi sprite: Clothing/Head/Hats/wizardhat.rsi
- type: Tag - type: Tag
tags: tags:
- ClothMade
- HamsterWearable - HamsterWearable
- WhitelistChameleon - WhitelistChameleon
@@ -570,6 +582,7 @@
sprite: Clothing/Head/Hats/nursehat.rsi sprite: Clothing/Head/Hats/nursehat.rsi
- type: Tag - type: Tag
tags: tags:
- ClothMade
- HamsterWearable - HamsterWearable
- WhitelistChameleon - WhitelistChameleon
@@ -627,6 +640,7 @@
sprite: Clothing/Head/Hats/beret_cmo.rsi sprite: Clothing/Head/Hats/beret_cmo.rsi
- type: Tag - type: Tag
tags: tags:
- ClothMade
- HamsterWearable - HamsterWearable
- WhitelistChameleon - WhitelistChameleon
@@ -730,6 +744,7 @@
- type: ContainerContainer - type: ContainerContainer
containers: containers:
storagebase: !type:Container storagebase: !type:Container
- type: Tag
- type: entity - type: entity
parent: ClothingHeadBase parent: ClothingHeadBase
@@ -743,5 +758,6 @@
sprite: Clothing/Head/Hats/capcap.rsi sprite: Clothing/Head/Hats/capcap.rsi
- type: Tag - type: Tag
tags: tags:
- ClothMade
- WhitelistChameleon - WhitelistChameleon
- HamsterWearable - HamsterWearable

View File

@@ -7,18 +7,6 @@
state: icon state: icon
- type: Clothing - type: Clothing
slots: [mask] slots: [mask]
- type: Food
requiresSpecialDigestion: true
- type: SolutionContainerManager
solutions:
food:
maxVol: 10
reagents:
- ReagentId: Fiber
Quantity: 10
- type: Tag
tags:
- ClothMade
- type: entity - type: entity
abstract: true abstract: true

View File

@@ -32,6 +32,7 @@
False: {state: icon} False: {state: icon}
- type: StaticPrice - type: StaticPrice
price: 200 price: 200
- type: Tag
- type: entity - type: entity
parent: ClothingShoesBootsMag parent: ClothingShoesBootsMag

View File

@@ -427,8 +427,9 @@
mode: SensorCords mode: SensorCords
- type: Tag - type: Tag
tags: tags:
- WhitelistChameleon - ClothMade
- PrisonUniform - PrisonUniform
- WhitelistChameleon
- type: entity - type: entity
parent: ClothingUniformBase parent: ClothingUniformBase

View File

@@ -507,6 +507,9 @@
Quantity: 7 Quantity: 7
- ReagentId: Vitamin - ReagentId: Vitamin
Quantity: 12 Quantity: 12
- type: Tag
tags:
- ClothMade
# Tastes like bun, ectoplasm. # Tastes like bun, ectoplasm.
- type: entity - type: entity

View File

@@ -266,6 +266,8 @@
path: /Audio/Voice/Moth/moth_laugh.ogg path: /Audio/Voice/Moth/moth_laugh.ogg
Chitter: Chitter:
path: /Audio/Voice/Moth/moth_chitter.ogg path: /Audio/Voice/Moth/moth_chitter.ogg
Squeak:
path: /Audio/Voice/Moth/moth_squeak.ogg
# body emotes # body emotes
- type: emoteSounds - type: emoteSounds

View File

@@ -125,6 +125,21 @@
- chittered. - chittered.
- chittered! - chittered!
- type: emote
id: Squeak
category: Vocal
chatMessages: [squeaks.]
chatTriggers:
- squeak
- squeak.
- squeak!
- squeaks
- squeaks.
- squeaks!
- squeaked
- squeaked.
- squeaked!
# hand emotes # hand emotes
- type: emote - type: emote
id: Clap id: Clap