mu3-mods/NaiveRating/MU3.Data/patch_GameData.cs

14 lines
454 B
C#
Raw Permalink Normal View History

using MU3.DB;
namespace MU3.Data;
2024-07-04 12:39:11 +00:00
class patch_GameData: GameData {
public extern static RatingColorID orig_getRatingColorIDFromRating100(int rating100);
public static new RatingColorID getRatingColorIDFromRating100(int rating100) {
2024-07-07 14:47:46 +00:00
if(NaiveRating.IsEnabled()) {
return orig_getRatingColorIDFromRating100(NaiveRating.Get());
} else {
return orig_getRatingColorIDFromRating100(rating100);
}
}
}