forked from akanyan/mu3-mods
16 lines
427 B
C#
16 lines
427 B
C#
using MonoMod;
|
|
using MU3.Mod;
|
|
|
|
namespace MU3.User;
|
|
|
|
[MonoModPatch("global::MU3.User.UserUtil")]
|
|
public static class patch_UserUtil {
|
|
public extern static float orig_toRatingFloat(int rating);
|
|
public static float toRatingFloat(int rating) {
|
|
if(CustomRating.IsEnabled()) {
|
|
return orig_toRatingFloat(CustomRating.Get());
|
|
} else {
|
|
return orig_toRatingFloat(rating);
|
|
}
|
|
}
|
|
} |