/// <summary> /// 船板破坏程度判定 /// </summary> /// <param name="damageRate"></param> /// <returns>1 轻度破坏 , 2 中度破坏,3完全破坏</returns> public static int GetFloorDamageLevel(int damageRate) { if (NdUtil.IsIntBetween(damageRate, GetParaStrToInt(8, 1, 0), GetParaStrToInt(8, 1, 1))) { return(1); } else if (NdUtil.IsIntBetween(damageRate, GetParaStrToInt(8, 2, 0), GetParaStrToInt(8, 2, 1))) { return(2); } else if (NdUtil.IsIntBetween(damageRate, GetParaStrToInt(8, 3, 0), GetParaStrToInt(8, 3, 1))) { return(3); } return(-1); }