// Writes the parameter for the current [rank] to [ret]. Duplicated for all // bosses except YuugenMagan, for some reason... // TODO: Should be `static` once all bosses have been decompiled. void select_for_rank( int &ret, int for_easy, int for_normal, int for_hard, int for_lunatic ) { ret = (static_cast(rank) == RANK_EASY) ? for_easy : (static_cast(rank) == RANK_NORMAL) ? for_normal : (static_cast(rank) == RANK_HARD) ? for_hard : (static_cast(rank) == RANK_LUNATIC) ? for_lunatic : for_normal; }