public static T smethod_9 <T>(T gparam_0, PawnStat.MPType mptype_0, PawnStat.MPType mptype_1, bool bool_0) where T : PawnStat.IElementaryStat, new() { if (gparam_0 != null) { T t = (T)((object)null); if (!PawnStat.smethod_7(mptype_0, mptype_1)) { for (int i = 0; i < PawnStat.intFlag_0.Length; i++) { PawnStat.IntFlag intFlag = PawnStat.intFlag_0[i]; if (gparam_0.HasValue(intFlag)) { if (t == null) { if (bool_0) { t = Activator.CreateInstance <T>(); t.CopyFromES(gparam_0); } else { t = gparam_0; } } t.SetValue(intFlag, PawnStat.smethod_1(intFlag)); } } if (t != null) { return(t); } } } return(gparam_0); }
public static int smethod_8(PawnStat.MPType mptype_0, int int_1) { if (mptype_0 != PawnStat.MPType.TrueBlood) { return(int_1); } return(0); }
public static string smethod_10(PawnStat.MPType mptype_0) { if (mptype_0 == PawnStat.MPType.TrueBlood) { return("#MaxTrueBlood"); } if (mptype_0 != PawnStat.MPType.Bullet) { return("#MaxMP"); } return("#MaxBullet"); }
public static bool smethod_7(PawnStat.MPType mptype_0, PawnStat.MPType mptype_1) { return(mptype_1 != PawnStat.MPType.None && mptype_0 == mptype_1); }