Remove diseases (#15684)
This commit is contained in:
@@ -4,7 +4,6 @@ using Content.Server.Atmos.EntitySystems;
|
||||
using Content.Server.Body.Components;
|
||||
using Content.Server.Body.Systems;
|
||||
using Content.Server.Clothing.Components;
|
||||
using Content.Server.Disease.Components;
|
||||
using Content.Server.IdentityManagement;
|
||||
using Content.Server.Nutrition.EntitySystems;
|
||||
using Content.Server.Popups;
|
||||
@@ -15,7 +14,6 @@ using Content.Shared.Clothing.EntitySystems;
|
||||
using Content.Shared.IdentityManagement.Components;
|
||||
using Content.Shared.Inventory;
|
||||
using Content.Shared.Inventory.Events;
|
||||
using Robust.Shared.Player;
|
||||
|
||||
namespace Content.Server.Clothing
|
||||
{
|
||||
@@ -80,8 +78,8 @@ namespace Content.Server.Clothing
|
||||
|
||||
private void ToggleMaskComponents(EntityUid uid, MaskComponent mask, EntityUid wearer, bool isEquip = false)
|
||||
{
|
||||
//toggle visuals
|
||||
if (TryComp<ClothingComponent>(mask.Owner, out var clothing))
|
||||
// toggle visuals
|
||||
if (TryComp<ClothingComponent>(uid, out var clothing))
|
||||
{
|
||||
//TODO: sprites for 'pulled down' state. defaults to invisible due to no sprite with this prefix
|
||||
_clothing.SetEquippedPrefix(uid, mask.IsToggled ? "toggled" : null, clothing);
|
||||
@@ -93,10 +91,6 @@ namespace Content.Server.Clothing
|
||||
if (TryComp<IngestionBlockerComponent>(uid, out var blocker))
|
||||
blocker.Enabled = !mask.IsToggled;
|
||||
|
||||
// toggle disease protection
|
||||
if (TryComp<DiseaseProtectionComponent>(uid, out var diseaseProtection))
|
||||
diseaseProtection.IsActive = !mask.IsToggled;
|
||||
|
||||
// toggle identity
|
||||
if (TryComp<IdentityBlockerComponent>(uid, out var identity))
|
||||
identity.Enabled = !mask.IsToggled;
|
||||
|
||||
Reference in New Issue
Block a user