Remove pillcomponent (#4469)

* Remove PillComponent

* Make food without any solution left delete and create trash

* Replace PillComponent references with a Pill tag

* Clean up

* Add swallow message to food

* Change to eatMessage override

* Change FoodComponent transferAmount to nullable

* Change properties to private
This commit is contained in:
ShadowCommander
2021-08-17 14:11:07 -07:00
committed by GitHub
parent 13a214e4a0
commit d908684f09
8 changed files with 42 additions and 129 deletions

View File

@@ -1,4 +0,0 @@
## Entity
pill-component-cannot-eat-more-message = You can't eat any more!
pill-component-swallow-success-message = You swallow the pill.

View File

@@ -9,6 +9,7 @@ food-you-need-to-hold-utensil = You need to be holding a {$utensil} to eat that!
food-you-cannot-eat-any-more = You can't eat any more!
food-nom = Nom
food-swallow = You swallow the {$food}.
## Entity

View File

@@ -236,9 +236,9 @@
- Gauze
- Ointment
- CigPack
- Pill
components:
- Hypospray
- Pill
- SurgeryTool
- Radio
- type: ItemCounter
@@ -253,7 +253,7 @@
- Hypospray
pill:
whitelist:
components:
tags:
- Pill
bottle_spray:
whitelist:

View File

@@ -187,7 +187,12 @@
- type: Sprite
sprite: Objects/Specific/Chemistry/pills.rsi
state: pill
- type: Pill
- type: Tag
tags:
- Pill
- type: Food
transferAmount: null
eatMessage: food-swallow
- type: SolutionContainer
maxVol: 50
caps: None

View File

@@ -142,6 +142,9 @@
- type: Tag
id: Ore
- type: Tag
id: Pill
- type: Tag
id: Pizza