r2mods/ilspy_dump/ror2_csproj/RoR2/InfiniteTowerWaveArtifactPr...

17 lines
482 B
C#

using UnityEngine;
namespace RoR2;
[CreateAssetMenu(menuName = "RoR2/Infinite Tower/Infinite Tower Wave Artifact Prerequisites")]
public class InfiniteTowerWaveArtifactPrerequisites : InfiniteTowerWavePrerequisites
{
[SerializeField]
[Tooltip("This wave cannot be selected while this artifact is enabled.")]
private ArtifactDef bannedArtifact;
public override bool AreMet(InfiniteTowerRun run)
{
return !RunArtifactManager.instance.IsArtifactEnabled(bannedArtifact);
}
}