-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathModEntry.cs
More file actions
37 lines (33 loc) · 1.03 KB
/
Copy pathModEntry.cs
File metadata and controls
37 lines (33 loc) · 1.03 KB
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
29
30
31
32
33
34
35
36
37
using System;
using Godot;
using HarmonyLib;
using MegaCrit.Sts2.Core.Modding;
namespace CardRefreshMod;
/// <summary>
/// 卡牌刷新Mod - 在3选1卡牌奖励界面添加刷新功能
/// 作者: 用户定制
/// 功能: 每场战斗可刷新卡牌奖励3次
/// </summary>
[ModInitializer("Initialize")]
public class ModEntry
{
public const string ModId = "cardrefresh.mod";
public const string ModName = "卡牌刷新Mod";
public const string Version = "0.1.0";
public static void Initialize()
{
try
{
var harmony = new Harmony(ModId);
harmony.PatchAll();
GD.Print($"[{ModName}] v{Version} 加载成功!");
GD.Print($"[{ModName}] 功能: 每场战斗可刷新卡牌奖励3次");
GD.Print($"[{ModName}] 使用方法: 在卡牌选择界面点击'刷新卡牌'按钮");
}
catch (Exception ex)
{
GD.PrintErr($"[{ModName}] 初始化失败: {ex.Message}");
GD.PrintErr(ex.StackTrace);
}
}
}