equipmentBaseAttrTableRepo.cs 441 B

12345678910111213141516
  1. 
  2. namespace XGame.Database
  3. {
  4. public partial class EquipmentBaseAttrTableRepo
  5. {
  6. /***
  7. * 品质*100000+部位(1_武器 2_其他)*1000+等级
  8. */
  9. public static EquipmentBaseAttrTable GetEquipmentBaseAttrTable(EQualityLevel quality, int level, bool bWeapon)
  10. {
  11. int tableId = (int)quality * 100000 + (bWeapon ? 1 : 2) * 1000 + level;
  12. return Get(tableId);
  13. }
  14. }
  15. }