-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #23 from Tobi-Mob/Skul_1_7_1
Update to Skul 1.7.1
- Loading branch information
Showing
5 changed files
with
182 additions
and
181 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,104 +1,103 @@ | ||
using System; | ||
using System.Collections.Generic; | ||
using System.IO; | ||
using System.Linq; | ||
using System.Net; | ||
using System.Net.Mime; | ||
using System.Reflection; | ||
using System.Security.Cryptography.X509Certificates; | ||
using BepInEx; | ||
using BepInEx.Bootstrap; | ||
using BepInEx.Logging; | ||
using BepInEx.Unity; | ||
using BepInEx.Unity.Bootstrap; | ||
using Characters.Controllers; | ||
using Data; | ||
using HarmonyLib; | ||
using InControl; | ||
using Level; | ||
using MonoMod.RuntimeDetour; | ||
using Services; | ||
using Singletons; | ||
using Steamworks; | ||
using UI.TestingTool; | ||
using UnityEngine; | ||
using Action = Characters.Actions.Action; | ||
using Random = System.Random; | ||
|
||
namespace Skul.Mod | ||
{ | ||
[BepInPlugin("Tobi.Mob.Skul.Mod", PluginInfo.PLUGIN_NAME, PluginInfo.PLUGIN_VERSION)] | ||
public class Plugin : BaseUnityPlugin | ||
{ | ||
public Harmony _harmony = null; | ||
|
||
private void Awake() | ||
{ | ||
Helper.Logger = Logger; | ||
|
||
// Plugin startup logic | ||
Logger.LogInfo("Plugin " + PluginInfo.PLUGIN_GUID + " is loaded!"); | ||
|
||
// Execute all patches | ||
_harmony = new Harmony("Skul.Mod"); | ||
_harmony.PatchAll(typeof(DropRatePatch)); | ||
_harmony.PatchAll(typeof(PathPatch)); | ||
|
||
// Active Turbo-Button-Worker | ||
TurboButtonMode.StartSetTurboCoroutine(this); | ||
} | ||
|
||
private LevelManager levelManager => Singleton<Service>.Instance.levelManager; | ||
|
||
private void Update() | ||
{ | ||
// Only run, if a player is running around | ||
if (!Helper.IsInGame) | ||
return; | ||
|
||
// print some infos | ||
if(Input.GetKeyDown(KeyCode.F1)) | ||
{ | ||
Vector3 v = levelManager.player.transform.position; | ||
float offset = 0.4f; | ||
|
||
Helper.TextSpawner.SpawnBuff(" Mod running ", v); | ||
v += Vector3.down * offset; | ||
Helper.TextSpawner.SpawnBuff("F2: Toggle turbo attack", v); | ||
v += Vector3.down * offset; | ||
Helper.TextSpawner.SpawnBuff("F3: Toggle item modifications", v); | ||
v += Vector3.down * offset; | ||
Helper.TextSpawner.SpawnBuff("F4: Toggle path modifications", v); | ||
v += Vector3.down * offset; | ||
Helper.TextSpawner.SpawnBuff("F5: Get some dark quartz", v); | ||
} | ||
|
||
if (Input.GetKeyDown(KeyCode.F2)) | ||
{ | ||
TurboButtonMode.ToggleTurbo(); | ||
} | ||
|
||
if (Input.GetKeyDown(KeyCode.F3)) | ||
{ | ||
DropRatePatch.ToggleEnabled(); | ||
} | ||
|
||
if (Input.GetKeyDown(KeyCode.F4)) | ||
{ | ||
PathPatch.ToggleEnabled(); | ||
} | ||
|
||
// Get some Quartz | ||
if (Input.GetKeyDown(KeyCode.F5)) | ||
{ | ||
if (GameData.Currency.darkQuartz != null) | ||
{ | ||
Helper.TextSpawner.SpawnBuff("Got some quartz", levelManager.player.transform.position); | ||
GameData.Currency.darkQuartz.balance += 10000; | ||
} | ||
} | ||
} | ||
|
||
|
||
} | ||
} | ||
using System; | ||
using System.Collections.Generic; | ||
using System.IO; | ||
using System.Linq; | ||
using System.Net; | ||
using System.Net.Mime; | ||
using System.Reflection; | ||
using System.Security.Cryptography.X509Certificates; | ||
using BepInEx; | ||
using BepInEx.Bootstrap; | ||
using BepInEx.Logging; | ||
using BepInEx.Unity; | ||
using BepInEx.Unity.Bootstrap; | ||
using Characters.Controllers; | ||
using Data; | ||
using HarmonyLib; | ||
using InControl; | ||
using Level; | ||
using MonoMod.RuntimeDetour; | ||
using Services; | ||
using Singletons; | ||
using UI.TestingTool; | ||
using UnityEngine; | ||
using Action = Characters.Actions.Action; | ||
using Random = System.Random; | ||
|
||
namespace Skul.Mod | ||
{ | ||
[BepInPlugin("Tobi.Mob.Skul.Mod", PluginInfo.PLUGIN_NAME, PluginInfo.PLUGIN_VERSION)] | ||
public class Plugin : BaseUnityPlugin | ||
{ | ||
public Harmony _harmony = null; | ||
|
||
private void Awake() | ||
{ | ||
Helper.Logger = Logger; | ||
|
||
// Plugin startup logic | ||
Logger.LogInfo("Plugin " + PluginInfo.PLUGIN_GUID + " is loaded!"); | ||
|
||
// Execute all patches | ||
_harmony = new Harmony("Skul.Mod"); | ||
_harmony.PatchAll(typeof(DropRatePatch)); | ||
_harmony.PatchAll(typeof(PathPatch)); | ||
|
||
// Active Turbo-Button-Worker | ||
TurboButtonMode.StartSetTurboCoroutine(this); | ||
} | ||
|
||
private LevelManager levelManager => Singleton<Service>.Instance.levelManager; | ||
|
||
private void Update() | ||
{ | ||
// Only run, if a player is running around | ||
if (!Helper.IsInGame) | ||
return; | ||
|
||
// print some infos | ||
if(Input.GetKeyDown(KeyCode.F1)) | ||
{ | ||
Vector3 v = levelManager.player.transform.position; | ||
float offset = 0.4f; | ||
|
||
Helper.TextSpawner.SpawnBuff(" Mod running ", v); | ||
v += Vector3.down * offset; | ||
Helper.TextSpawner.SpawnBuff("F2: Toggle turbo attack", v); | ||
v += Vector3.down * offset; | ||
Helper.TextSpawner.SpawnBuff("F3: Toggle item modifications", v); | ||
v += Vector3.down * offset; | ||
Helper.TextSpawner.SpawnBuff("F4: Toggle path modifications", v); | ||
v += Vector3.down * offset; | ||
Helper.TextSpawner.SpawnBuff("F5: Get some dark quartz", v); | ||
} | ||
|
||
if (Input.GetKeyDown(KeyCode.F2)) | ||
{ | ||
TurboButtonMode.ToggleTurbo(); | ||
} | ||
|
||
if (Input.GetKeyDown(KeyCode.F3)) | ||
{ | ||
DropRatePatch.ToggleEnabled(); | ||
} | ||
|
||
if (Input.GetKeyDown(KeyCode.F4)) | ||
{ | ||
PathPatch.ToggleEnabled(); | ||
} | ||
|
||
// Get some Quartz | ||
if (Input.GetKeyDown(KeyCode.F5)) | ||
{ | ||
if (GameData.Currency.darkQuartz != null) | ||
{ | ||
Helper.TextSpawner.SpawnBuff("Got some quartz", levelManager.player.transform.position); | ||
GameData.Currency.darkQuartz.balance += 10000; | ||
} | ||
} | ||
} | ||
|
||
|
||
} | ||
} |
Oops, something went wrong.