Add action to pull down mask (#9015)

* Add action to pull down mask

* Update based on review comments

* fix access

* cleanup

* Update based on review comments

* revert change to ToggleableClothingSystem

* switch to unequip

* Specify the unequip is for togglemaskevent only

* fix issue of activating mask in hands with something else in mask slot

* Update based on review comments

* switch to dependency for ActionSystem for consistency

* whoops other instance too

* review changes
This commit is contained in:
themias
2022-06-30 03:44:53 -04:00
committed by GitHub
parent 11ac60ca2b
commit a18aac158e
6 changed files with 155 additions and 10 deletions

View File

@@ -1,3 +1,5 @@
using Content.Server.Clothing;
namespace Content.Server.Nutrition.EntitySystems;
/// <summary>
@@ -7,7 +9,7 @@ namespace Content.Server.Nutrition.EntitySystems;
/// In the event that more head-wear & mask functionality is added (like identity systems, or raising/lowering of
/// masks), then this component might become redundant.
/// </remarks>
[RegisterComponent, Access(typeof(FoodSystem), typeof(DrinkSystem))]
[RegisterComponent, Access(typeof(FoodSystem), typeof(DrinkSystem), typeof(MaskSystem))]
public sealed class IngestionBlockerComponent : Component
{
/// <summary>