Files
BarotraumaModServer/LocalMods/More Level Content/CSharp/Shared/Utils/AfflictionHelper.cs
2026-06-09 00:42:10 +03:00

18 lines
477 BLFS
C#
Executable File

using Barotrauma;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace MoreLevelContent.Shared.Utils
{
internal static class AfflictionHelper
{
internal static bool TryGetAffliction(string identifier, out AfflictionPrefab affliction)
{
affliction = AfflictionPrefab.List.FirstOrDefault(a => a.Identifier == identifier);
return affliction != null;
}
}
}