forked from akanyan/mu3-mods
15 lines
471 B
C#
15 lines
471 B
C#
using MU3.DB;
|
|
using MU3.Mod;
|
|
|
|
namespace MU3.Data;
|
|
|
|
class patch_GameData: GameData {
|
|
public extern static RatingColorID orig_getRatingColorIDFromRating100(int rating100);
|
|
public static new RatingColorID getRatingColorIDFromRating100(int rating100) {
|
|
if(CustomRating.IsEnabled()) {
|
|
return orig_getRatingColorIDFromRating100(CustomRating.Get());
|
|
} else {
|
|
return orig_getRatingColorIDFromRating100(rating100);
|
|
}
|
|
}
|
|
} |