Skip to content

Commit 3c38d25

Browse files
Slight cleanup, rewrod ClearSlotModification
1 parent 3b750bc commit 3c38d25

1 file changed

Lines changed: 3 additions & 5 deletions

File tree

InscryptionAPI/Slots/SlotModificationExtensions.cs

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -15,9 +15,7 @@ namespace InscryptionAPI.Slots;
1515
/// <summary>
1616
/// Contains extension methods to simplify slot modification management
1717
/// </summary>
18-
public static class SlotModificationExtensions
19-
{
20-
18+
public static class SlotModificationExtensions {
2119
public static Info InfoByID(this IEnumerable<Info> modInfos, ModificationType mod)
2220
{
2321
return modInfos.FirstOrDefault(x => x.ModificationType == mod);
@@ -84,9 +82,9 @@ public static ModificationType SetSharedRulebook(this ModificationType mod, Modi
8482
}
8583

8684
/// <summary>
87-
/// Clears the slot modification in this CardSlot, if one is present.
85+
/// Sets the slot modification to 'no modification', effectively clearing/resetting the slot's modification.
8886
/// </summary>
89-
/// <param name="slot">The slot to assign the modification to.</param>
87+
/// <param name="slot">The slot to clear.</param>
9088
public static IEnumerator ClearSlotModification(this CardSlot slot) {
9189
yield return slot.SetSlotModification(ModificationType.NoModification);
9290
}

0 commit comments

Comments
 (0)