装备:修改物品表格式
This commit is contained in:
@@ -140,8 +140,8 @@ export function checkEquipCanPut(hid: number, id: number) {
|
||||
let dicGood = gameData.goods.get(id);
|
||||
let dicHero = gameData.hero.get(hid);
|
||||
let dicJob = gameData.job.get(dicHero.jobid);
|
||||
if(dicGood.jobLimited != 0 && dicGood.jobLimited != dicJob.job_class) return false;
|
||||
if(dicGood.charLimited != 0 && dicGood.charLimited != hid) return false;
|
||||
if(dicGood.jobLimited.indexOf(0) == -1 && dicGood.jobLimited.indexOf(dicJob.job_class) == -1) return false;
|
||||
if(dicGood.charLimited.indexOf(0) == -1 && dicGood.charLimited.indexOf(hid) != -1) return false;
|
||||
return true
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user