Skip to content

Commit

Permalink
- Fixed debuff remover
Browse files Browse the repository at this point in the history
  • Loading branch information
agilbert1412 committed Jan 16, 2024
1 parent c2a0779 commit f77c724
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 7 deletions.
4 changes: 2 additions & 2 deletions StardewArchipelago/Items/Traps/TrapManager.cs
Original file line number Diff line number Diff line change
Expand Up @@ -161,7 +161,7 @@ private void AddFrozenDebuff()
AddDebuff(Buffs.Frozen, duration);
}

private void AddJinxedDebuff()
public void AddJinxedDebuff()
{
AddDebuff(Buffs.EvilEye);
}
Expand Down Expand Up @@ -604,7 +604,7 @@ private IEnumerable<WateringCan> GetAllWateringCans()
}

// public void clearAllBuffs()
public bool ClearAllBuffs_ClearOtherBuffs_Prefix(BuffsDisplay __instance)
public static bool ClearAllBuffs_ClearOtherBuffs_Prefix(BuffsDisplay __instance)
{
try
{
Expand Down
10 changes: 5 additions & 5 deletions StardewArchipelago/ModEntry.cs
Original file line number Diff line number Diff line change
Expand Up @@ -387,11 +387,6 @@ private void OnItemReceived()
_itemManager?.ReceiveAllNewItems(true);
}

private void DebugMethod(string arg1, string[] arg2)
{
_itemManager.ItemParser.TrapManager.ShuffleInventory();
}

public bool ArchipelagoConnect(string ip, int port, string slot, string password, out string errorMessage)
{
var apConnection = new ArchipelagoConnectionInfo(ip, port, slot, null, password);
Expand Down Expand Up @@ -471,5 +466,10 @@ private void OverrideTrapDifficulty(string arg1, string[] arg2)
State.TrapDifficultyOverride = difficultyOverride;
Monitor.Log($"Trap Difficulty set to [{difficultyOverride}]. Change will be saved next time you sleep", LogLevel.Info);
}

private void DebugMethod(string arg1, string[] arg2)
{
_itemManager.ItemParser.TrapManager.AddJinxedDebuff();
}
}
}

0 comments on commit f77c724

Please sign in to comment.