| | |
| | | int score = -1;
|
| | | string equipGuid = string.Empty;
|
| | | var equipSet = equipModel.GetEquipSet(equipLevel);
|
| | | if (equipSet == null)
|
| | | {
|
| | | return -1;
|
| | | }
|
| | | equipGuid = equipSet.GetEquip(equipPlace);
|
| | | var equiped = !string.IsNullOrEmpty(equipGuid);
|
| | | if (equiped)
|
| | |
| | | return score;
|
| | | }
|
| | |
|
| | | public bool WhetherEquipped(int equipLevel, int equipPlace)//是否装备
|
| | | public bool WhetherEquipped(int equipLevel, int equipPlace)//是否显示需要
|
| | | {
|
| | | bool isBool = false;
|
| | | string equipGuid = string.Empty;
|
| | | var equipSet = equipModel.GetEquipSet(equipLevel);
|
| | | if (equipSet == null)
|
| | | {
|
| | | return false;
|
| | | return true;
|
| | | }
|
| | | equipGuid = equipSet.GetEquip(equipPlace);
|
| | | isBool = !string.IsNullOrEmpty(equipGuid);
|