Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

SMLHelper 2.14 #255

Merged
merged 52 commits into from
Sep 11, 2022
Merged
Changes from 1 commit
Commits
Show all changes
52 commits
Select commit Hold shift + click to select a range
16db06f
Added Enum.GetNames and Enum.GetName patchers to the enum patches
MrPurple6411 Mar 27, 2022
4ee641e
Converted post-build event into a PowerShell script
toebeann Apr 1, 2022
a996847
The 7-Zip commandline package was removed for some reason
toebeann Apr 1, 2022
07d9fdf
Adds experimental Nitrox Compatibility to SMLHelper and example mod
toebeann Apr 1, 2022
e38aa1e
Merge pull request #257 from SubnauticaModding/add-7zip-package-back
toebeann Apr 5, 2022
b912643
Merge pull request #256 from SubnauticaModding/clean-up-build-scripts
toebeann Apr 5, 2022
ee5d78f
Remove `NitroxCompat` from BZ mod.json since there is no Nitrox for B…
toebeann Apr 5, 2022
08033de
Merge pull request #258 from SubnauticaModding/add-nitrox-compatibili…
toebeann Apr 5, 2022
021e7d1
Remove the binaries from the repo (although they're still in the hist…
toebeann Apr 5, 2022
730a671
Move the Thunderstore metadata files into folders organised by config…
toebeann Apr 5, 2022
ed2243c
Add metadata files to solution
toebeann Apr 5, 2022
57d9c85
Update build script
toebeann Apr 5, 2022
d417987
Fixes an issue where mod.json not being correctly packaged
toebeann Apr 5, 2022
d0ad2cb
Merge pull request #259 from SubnauticaModding/clean-up-thunderstore-…
toebeann Apr 5, 2022
a244868
Added a `Deinitialize` for CustomSoundPatcher
Metious Apr 9, 2022
ca7f5c6
Merge pull request #260 from SubnauticaModding/potential-leaks
Metious Apr 9, 2022
867e3b3
Fix for deactivated cache types failing to be counted.
MrPurple6411 Apr 17, 2022
b341269
Log warning when trying to add new modded enum value that already exi…
MrPurple6411 Apr 17, 2022
106cec2
Remove extra event handler for Button
celvro May 14, 2022
e178fb7
Merge pull request #265 from celvro/buttons-called-twice
Metious May 15, 2022
27d6a7d
Merge pull request #262 from SubnauticaModding/FixCacheFileIssues
Metious Jun 24, 2022
93d23d8
Fixed a bug with stopping custom sound emitters
Metious Jun 29, 2022
27e72e6
Adds the `TooltipLanguageId` property to `ModOptionAttribute` and use…
toebeann Jul 22, 2022
454a1b3
Merge pull request #268 from SubnauticaModding/tooltip-language-id
toebeann Jul 22, 2022
47f97e0
Merge pull request #267 from SubnauticaModding/CustomSoundPatcher-Fixes
toebeann Jul 22, 2022
a567808
Fixed Unit test failing to compile
Metious Jul 22, 2022
4f13aea
Version bump
Metious Jul 22, 2022
742951e
Update LanguagePatcher.cs
MrPurple6411 Jul 25, 2022
3ed78fa
Merge pull request #269 from SubnauticaModding/LanguagePatcher-Runtim…
MrPurple6411 Jul 25, 2022
21c7809
Update instructions for publicizer
celvro Jul 26, 2022
827d1bc
Update publicizer link to latest
celvro Jul 26, 2022
3a2289c
added eatable patcher
Aug 20, 2022
43142e4
moved around a class, added public method
Aug 20, 2022
0cc374e
Update SMLHelper/Patchers/EatablePatcher.cs
Aug 21, 2022
af20c17
finished requested changes
Aug 21, 2022
8e61a5d
Update README.md
Metious Aug 27, 2022
c2a56a0
Merge pull request #270 from celvro/dev
Metious Aug 27, 2022
56306de
added interface and included files in .csproj
Aug 27, 2022
5b8cb75
Merge pull request #272 from Nagorogan/master
Metious Aug 27, 2022
469cc84
Add PostBuild.targets for each OS
Metious Sep 4, 2022
ac33a48
Add Version.targets to use globally
Metious Sep 4, 2022
dbb6ae2
Converted SMLHelper to .NET SDK template
Metious Sep 4, 2022
8f3feb9
Converted ExampleMod to .NET SDK template
Metious Sep 4, 2022
db12473
Add a note in the README file for .NET 6
Metious Sep 4, 2022
b45f069
Project reference instead of build for ExampleMod
Metious Sep 11, 2022
8645473
Merge pull request #274 from SubnauticaModding/NET-SDK
Metious Sep 11, 2022
30286a8
added below zero versions
Sep 11, 2022
39b5627
removed allowOverflow bool
Sep 11, 2022
5591c97
rename maxCharges
Metious Sep 11, 2022
12a6d40
Merge pull request #275 from Nagorogan/BZ-eatables
Metious Sep 11, 2022
bd2efca
Consistency changes for EatableHandler
Metious Sep 11, 2022
d5d5719
version bumps
Metious Sep 11, 2022
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
finished requested changes
  • Loading branch information
Nagorrogan committed Aug 21, 2022
commit af20c1711ca1290a595f3889c87613827ccebdad
7 changes: 2 additions & 5 deletions SMLHelper/Patchers/EatablePatcher.cs
Original file line number Diff line number Diff line change
Expand Up @@ -15,18 +15,15 @@ internal class EatablePatcher

public static void Patch(Harmony harmony)
{
Type eatableType = typeof(Eatable);
Type thisType = typeof(EatablePatcher);

harmony.Patch(AccessTools.Method(typeof(Eatable), nameof(Eatable.Awake)),
postfix: new HarmonyMethod(typeof(EatablePatcher), nameof(EatablePatcher.AwakePostfix)));

Logger.Debug("EatablePatcher is done.");
}
public static void AwakePostfix(Eatable __instance)
private static void AwakePostfix(Eatable __instance)
{
TechType tt = CraftData.GetTechType(__instance.gameObject);
if (EditedEatables.TryGetValue(tt, out EditedEatableValues value)
if (EditedEatables.TryGetValue(tt, out EditedEatableValues value))
{
__instance.foodValue = value.food;
__instance.waterValue = value.water;
Expand Down