forked from akanyan/mu3-mods
15 lines
410 B
C#
15 lines
410 B
C#
using MonoMod;
|
|
|
|
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(NaiveRating.IsEnabled()) {
|
|
return orig_toRatingFloat(NaiveRating.Get());
|
|
} else {
|
|
return orig_toRatingFloat(rating);
|
|
}
|
|
}
|
|
} |