mu3-mods/NaiveRating/MU3.User/patch_UserUtil.cs

15 lines
410 B
C#
Raw Normal View History

using MonoMod;
namespace MU3.User;
[MonoModPatch("global::MU3.User.UserUtil")]
public static class patch_UserUtil {
2024-07-07 14:47:46 +00:00
public extern static float orig_toRatingFloat(int rating);
public static float toRatingFloat(int rating) {
2024-07-07 14:47:46 +00:00
if(NaiveRating.IsEnabled()) {
return orig_toRatingFloat(NaiveRating.Get());
} else {
return orig_toRatingFloat(rating);
}
}
}