Skip to content

Commit ebdb87b

Browse files
committed
Set logging to debug
1 parent e150333 commit ebdb87b

2 files changed

Lines changed: 4 additions & 2 deletions

File tree

Patches/CardTriggerHandler.cs

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,15 +58,17 @@ public static bool Prefix(SpecialTriggeredAbility ability, CardTriggerHandler __
5858
}
5959
if (!__instance.specialAbilities.Exists(ab => ab.Item1 == ability))
6060
{
61-
Plugin.Log.LogDebug("-> spec ability does not exist yet, adding...");
61+
Plugin.Log.LogDebug($"-> Special ability [{ability}] does not exist, adding...");
6262
NewSpecialAbility newAbility = NewSpecialAbility.specialAbilities
6363
.Find(x => x.specialTriggeredAbility == ability);
64+
Plugin.Log.LogDebug($"-> New Ability is [{newAbility.specialTriggeredAbility}]");
6465
Type type = newAbility.abilityBehaviour;
6566
Component baseC = __instance;
6667
SpecialCardBehaviour item = baseC.gameObject.GetComponent(type) as SpecialCardBehaviour;
6768
if (item == null)
6869
{
6970
item = baseC.gameObject.AddComponent(type) as SpecialCardBehaviour;
71+
Plugin.Log.LogDebug($"--> Item is [{item}] | Ability toString [{ability}]");
7072
}
7173

7274
__instance.specialAbilities.Add(new Tuple<SpecialTriggeredAbility, SpecialCardBehaviour>(ability, item));

Patches/Card_AttachAbilities_NewSpecialAbilities.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ public static bool Prefix(CardInfo info, Card __instance)
2626
NewSpecialAbility newAbility = NewSpecialAbility.specialAbilities
2727
.Find(x => x.specialTriggeredAbility == specialTriggeredAbility);
2828
Type type = newAbility.abilityBehaviour;
29-
Plugin.Log.LogInfo($"-> Type is [{type}]");
29+
Plugin.Log.LogDebug($"-> Special Card Behaviour Type is [{type}]");
3030
Component baseC = __instance;
3131
SpecialCardBehaviour item = baseC.gameObject.GetComponent(type) as SpecialCardBehaviour
3232
?? baseC.gameObject.AddComponent(type) as SpecialCardBehaviour;

0 commit comments

Comments
 (0)