-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Update mods to match QoD v1.0.3 (#15)
* add RedCapoteBuff mod * update FiendsNerf and TruePierce * update readme
- Loading branch information
1 parent
8cb6d77
commit d641b7d
Showing
6 changed files
with
155 additions
and
29 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 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
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 |
---|---|---|
@@ -0,0 +1,35 @@ | ||
<Project Sdk="Microsoft.NET.Sdk"> | ||
|
||
<PropertyGroup> | ||
<TargetFramework>net6.0</TargetFramework> | ||
<RootNamespace>RedCapoteBuff</RootNamespace> | ||
<AssemblyName>RedCapoteBuff</AssemblyName> | ||
<ImplicitUsings>enable</ImplicitUsings> | ||
<Nullable>enable</Nullable> | ||
<OutputPath>..\bin\</OutputPath> | ||
</PropertyGroup> | ||
|
||
<ItemGroup> | ||
<Reference Include="0Harmony"> | ||
<HintPath>..\_dlls\0Harmony.dll</HintPath> | ||
<Private>False</Private> | ||
</Reference> | ||
<Reference Include="Assembly-CSharp"> | ||
<HintPath>..\_dlls\Assembly-CSharp.dll</HintPath> | ||
<Private>False</Private> | ||
</Reference> | ||
<Reference Include="Il2CppInterop.Runtime"> | ||
<HintPath>..\_dlls\Il2CppInterop.Runtime.dll</HintPath> | ||
<Private>False</Private> | ||
</Reference> | ||
<Reference Include="Il2Cppmscorlib"> | ||
<HintPath>..\_dlls\Il2Cppmscorlib.dll</HintPath> | ||
<Private>False</Private> | ||
</Reference> | ||
<Reference Include="MelonLoader"> | ||
<HintPath>..\_dlls\MelonLoader.dll</HintPath> | ||
<Private>False</Private> | ||
</Reference> | ||
</ItemGroup> | ||
|
||
</Project> |
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 |
---|---|---|
@@ -0,0 +1,61 @@ | ||
// Copyright (c) MatthiewPurple. All Rights Reserved. Licensed under the MIT license. See License.txt in the project root for license information. | ||
|
||
using HarmonyLib; | ||
using Il2Cpp; | ||
using MelonLoader; | ||
using RedCapoteBuff; | ||
|
||
[assembly: MelonInfo(typeof(RedCapoteBuffMod), "Red Capote buff", "1.0.0", "Matthiew Purple")] | ||
[assembly: MelonGame("アトラス", "smt3hd")] | ||
|
||
namespace RedCapoteBuff; | ||
public class RedCapoteBuffMod : MelonMod | ||
{ | ||
private static bool s_isRedCapote; // is true when the last used skill was Red Capote | ||
|
||
// After getting the description of a skill | ||
[HarmonyPatch(typeof(datSkillHelp_msg), nameof(datSkillHelp_msg.Get))] | ||
private class Patch | ||
{ | ||
public static void Postfix(ref int id, ref string __result) | ||
{ | ||
if (id == 276) | ||
{ | ||
__result = "Maximizes Evasion/Hit Rate."; | ||
} | ||
} | ||
} | ||
|
||
// Before displaying the text box | ||
[HarmonyPatch(typeof(nbHelpProcess), nameof(nbHelpProcess.nbDispText))] | ||
private class Patch2 | ||
{ | ||
public static void Prefix(ref string text1, ref int type) | ||
{ | ||
// If the text box is displaying the effect of Red Capote | ||
if (type == 1 && s_isRedCapote) | ||
{ | ||
type = 0; | ||
text1 = "Evasion/Hit Rate maximized!"; | ||
s_isRedCapote = false; | ||
} | ||
} | ||
} | ||
|
||
// Before displying a skill name in the text box | ||
[HarmonyPatch(typeof(nbHelpProcess), nameof(nbHelpProcess.nbDispSkillName))] | ||
private class Patch3 | ||
{ | ||
public static void Prefix(ref int id) | ||
{ | ||
s_isRedCapote = id == 276; | ||
} | ||
} | ||
|
||
// When launching the game | ||
public override void OnInitializeMelon() | ||
{ | ||
// Buffs Red Capote | ||
datNormalSkill.tbl[276].hojopoint = 8; // Self-Sukukaja x 8 | ||
} | ||
} |
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