-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathMainFile.cs
More file actions
28 lines (22 loc) · 788 Bytes
/
Copy pathMainFile.cs
File metadata and controls
28 lines (22 loc) · 788 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
using Godot;
using HarmonyLib;
using MegaCrit.Sts2.Core.Modding;
namespace ShowCardDmgInRewards;
[ModInitializer(nameof(Initialize))]
public partial class MainFile : Node
{
private const string
ModId = "ShowCardDmgInRewards"; //At the moment, this is used only for the Logger and harmony names.
public static MegaCrit.Sts2.Core.Logging.Logger Logger { get; } =
new(ModId, MegaCrit.Sts2.Core.Logging.LogType.Generic);
public static void Initialize()
{
Harmony harmony = new(ModId);
harmony.PatchAll();
Logger.Info("Patched cards:");
foreach (var m in ShowCardDmgInRewardsCode.CanonicalVarsPatch.PatchedMethods)
{
Logger.Info(m.DeclaringType?.DeclaringType?.Name ?? "null");
}
}
}