-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathDecreasedFallDamage.cs
More file actions
44 lines (38 loc) · 1.11 KB
/
DecreasedFallDamage.cs
File metadata and controls
44 lines (38 loc) · 1.11 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
38
39
40
41
42
43
44
using System;
using BepInEx;
using BepInEx.Logging;
using HarmonyLib;
namespace Decreased_Fall_Damage
{
// Token: 0x02000004 RID: 4
[BepInPlugin(pluginGuid, pluginName, pluginVersion)]
[BepInProcess("valheim.exe")]
public class DecreasedFallDamage : BaseUnityPlugin
{
// Token: 0x06000009 RID: 9 RVA: 0x00002404 File Offset: 0x00000604
public void Awake()
{
BepInEx.Logging.Logger.Sources.Add(DecreasedFallDamage.Logger);
Configuration.InitConfiguration();
if (Configuration.Enable)
{
new Harmony("bRitch02.valheim.DecreasedFallDamage").PatchAll();
}
else
{
if (!Configuration.Enable)
{
DecreasedFallDamage.Logger.LogWarning("[DEBUG] Mod disable, patch skipped.");
}
}
}
// Token: 0x04000005 RID: 5
public const string pluginGuid = "ritchmods.valheim.DecreasedFallDamage";
// Token: 0x04000006 RID: 6
public const string pluginName = "Decreased Fall Damage";
// Token: 0x04000007 RID: 7
public const string pluginVersion = "1.2.0";
// Token: 0x04000008 RID: 8
public new static ManualLogSource Logger = new ManualLogSource("Decreased Fall Damage");
}
}