]> git.smokeofanarchy.ru Git - space-station-14.git/commit
Add verbs to Open/Close Openable containers, and add optional seals (#24780)
authorTayrtahn <tayrtahn@gmail.com>
Tue, 13 Feb 2024 22:08:07 +0000 (17:08 -0500)
committerGitHub <noreply@github.com>
Tue, 13 Feb 2024 22:08:07 +0000 (17:08 -0500)
commit75e47fff9e5150a4de37e4d3c8a8b278f0a1a2cd
tree417cf60239f7d7dd679a1307075190fedfa26857
parent52f74fa39d674d311bbc6440a638f33ebac5a468
Add verbs to Open/Close Openable containers, and add optional seals (#24780)

* Implement closing; add open/close verbs

* Add breakable seals

* Allow custom verb names; make condiment bottles closeable

* Remove pointless VV annotations and false defaults

* Split Sealable off into a new component

* Should have a Closed event too

* Oh hey, there are icons I could use

* Ternary operator

* Add support for seal visualizers

* Moved Sealable to Shared, added networking

* Replaced bottle_close1.ogg
14 files changed:
Content.Server/Nutrition/Components/OpenableComponent.cs
Content.Server/Nutrition/EntitySystems/OpenableSystem.cs
Content.Shared/Nutrition/Components/SealableComponent.cs [new file with mode: 0644]
Content.Shared/Nutrition/Components/SharedFoodComponent.cs
Content.Shared/Nutrition/EntitySystems/SealableSystem.cs [new file with mode: 0644]
Content.Shared/Nutrition/EntitySystems/SharedOpenableSystem.cs [new file with mode: 0644]
Resources/Audio/Items/attributions.yml
Resources/Audio/Items/bottle_close1.ogg [new file with mode: 0644]
Resources/Locale/en-US/nutrition/components/drink-component.ftl
Resources/Locale/en-US/nutrition/components/openable-component.ftl [new file with mode: 0644]
Resources/Prototypes/Entities/Objects/Consumable/Drinks/drinks-cartons.yml
Resources/Prototypes/Entities/Objects/Consumable/Drinks/drinks_bottles.yml
Resources/Prototypes/Entities/Objects/Consumable/Food/Containers/condiments.yml
Resources/Prototypes/SoundCollections/drink_close_sounds.yml [new file with mode: 0644]