public static Origin.Grade ToGfxGrade(Enums.eType iType, Enums.eEnhGrade iGrade) { switch (iType) { case Enums.eType.None: return(Origin.Grade.None); case Enums.eType.Normal: switch (iGrade) { case Enums.eEnhGrade.None: return(Origin.Grade.None); case Enums.eEnhGrade.TrainingO: return(Origin.Grade.TrainingO); case Enums.eEnhGrade.DualO: return(Origin.Grade.DualO); case Enums.eEnhGrade.SingleO: return(Origin.Grade.SingleO); } break; case Enums.eType.InventO: return(Origin.Grade.IO); case Enums.eType.SpecialO: return(Origin.Grade.HO); case Enums.eType.SetO: return(Origin.Grade.SetO); } return(Origin.Grade.None); }
public static Origin.Grade ToGfxGrade(Enums.eType iType) { Origin.Grade grade; switch (iType) { case Enums.eType.None: grade = Origin.Grade.None; break; case Enums.eType.Normal: grade = Origin.Grade.TrainingO; break; case Enums.eType.InventO: grade = Origin.Grade.IO; break; case Enums.eType.SpecialO: grade = Origin.Grade.HO; break; case Enums.eType.SetO: grade = Origin.Grade.SetO; break; default: grade = Origin.Grade.None; break; } return(grade); }
public static Origin.Grade ToGfxGrade(Enums.eType iType) { var grade = iType switch { Enums.eType.None => Origin.Grade.None, Enums.eType.Normal => Origin.Grade.TrainingO, Enums.eType.InventO => Origin.Grade.IO, Enums.eType.SpecialO => Origin.Grade.HO, Enums.eType.SetO => Origin.Grade.SetO, _ => Origin.Grade.None }; return(grade); }
float GetScheduleMult(Enums.eType iType, Enums.eSchedule iSched) { if (this.Grade < Enums.eEnhGrade.None) { this.Grade = Enums.eEnhGrade.None; } if (this.RelativeLevel < Enums.eEnhRelative.None) { this.RelativeLevel = Enums.eEnhRelative.None; } if (this.Grade > Enums.eEnhGrade.SingleO) { this.Grade = Enums.eEnhGrade.SingleO; } if (this.RelativeLevel > Enums.eEnhRelative.PlusFive) { this.RelativeLevel = Enums.eEnhRelative.PlusFive; } float num1 = 0.0f; if (this.IOLevel <= 0) { this.IOLevel = 0; } if (this.IOLevel > DatabaseAPI.Database.MultIO.Length - 1) { this.IOLevel = DatabaseAPI.Database.MultIO.Length - 1; } if (iSched == Enums.eSchedule.None || iSched == Enums.eSchedule.Multiple) { num1 = 0.0f; } else { switch (iType) { case Enums.eType.Normal: switch (this.Grade) { case Enums.eEnhGrade.None: num1 = 0.0f; break; case Enums.eEnhGrade.TrainingO: num1 = DatabaseAPI.Database.MultTO[0][(int)iSched]; break; case Enums.eEnhGrade.DualO: num1 = DatabaseAPI.Database.MultDO[0][(int)iSched]; break; case Enums.eEnhGrade.SingleO: num1 = DatabaseAPI.Database.MultSO[0][(int)iSched]; break; } break; case Enums.eType.InventO: num1 = DatabaseAPI.Database.MultIO[this.IOLevel][(int)iSched]; break; case Enums.eType.SpecialO: num1 = DatabaseAPI.Database.MultSO[0][(int)iSched]; break; case Enums.eType.SetO: num1 = DatabaseAPI.Database.MultIO[this.IOLevel][(int)iSched]; break; } } float num2 = num1 * this.GetRelativeLevelMultiplier(); if (this.Enh > -1 && DatabaseAPI.Database.Enhancements[this.Enh].Superior) { num2 *= 1.25f; } return(num2); }
private float GetScheduleMult(Enums.eType iType, Enums.eSchedule iSched) { if (Grade < Enums.eEnhGrade.None) { Grade = Enums.eEnhGrade.None; } if (RelativeLevel < Enums.eEnhRelative.None) { RelativeLevel = Enums.eEnhRelative.None; } if (Grade > Enums.eEnhGrade.SingleO) { Grade = Enums.eEnhGrade.SingleO; } if (RelativeLevel > Enums.eEnhRelative.PlusFive) { RelativeLevel = Enums.eEnhRelative.PlusFive; } var num1 = 0.0f; if (IOLevel <= 0) { IOLevel = 0; } if (IOLevel > DatabaseAPI.Database.MultIO.Length - 1) { IOLevel = DatabaseAPI.Database.MultIO.Length - 1; } if (iSched == Enums.eSchedule.None || iSched == Enums.eSchedule.Multiple) { num1 = 0.0f; } else { switch (iType) { case Enums.eType.Normal: num1 = Grade switch { Enums.eEnhGrade.None => 0.0f, Enums.eEnhGrade.TrainingO => DatabaseAPI.Database.MultTO[0][(int)iSched], Enums.eEnhGrade.DualO => DatabaseAPI.Database.MultDO[0][(int)iSched], Enums.eEnhGrade.SingleO => DatabaseAPI.Database.MultSO[0][(int)iSched], _ => num1 }; break; case Enums.eType.InventO: num1 = DatabaseAPI.Database.MultIO[IOLevel][(int)iSched]; break; case Enums.eType.SpecialO: num1 = DatabaseAPI.Database.MultSO[0][(int)iSched]; break; case Enums.eType.SetO: num1 = DatabaseAPI.Database.MultIO[IOLevel][(int)iSched]; break; } } var num2 = num1 * GetRelativeLevelMultiplier(); if (Enh > -1 && DatabaseAPI.Database.Enhancements[Enh].Superior) { num2 *= 1.25f; } return(num2); }