-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathModClass.cs
More file actions
35 lines (30 loc) · 947 Bytes
/
ModClass.cs
File metadata and controls
35 lines (30 loc) · 947 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
29
30
31
32
33
34
35
using System;
using System.Collections;
using System.Collections.Generic;
using Modding;
using UnityEngine;
using Satchel;
namespace QuickDive
{
public class QuickDive : Mod
{
new public string GetName() => "QuickDive";
public override string GetVersion() => "1.0.0.0";
public override void Initialize()
{
On.HeroController.Awake += OnHeroAwake;
ModHooks.LanguageGetHook += LanguageGet;
}
private void OnHeroAwake(On.HeroController.orig_Awake orig, HeroController self)
{
orig(self);
HeroController.instance.spellControl.ChangeTransition("Can Cast? QC", "FINISHED", "Has Quake?");
}
private string LanguageGet(string key, string sheetTitle, string orig)
{
if (key == "BUTTON_QCAST" && sheetTitle == "MainMenu")
return "Quick Dive";
return orig;
}
}
}