Commit 9284512aaa9413dc4c4ad83453999adf6ccc94df
1 parent
08bfcb88
输出异常
Showing
1 changed file
with
5 additions
and
1 deletions
Show diff stats
src/adv/AdvPassive.lua
... | ... | @@ -442,7 +442,11 @@ end |
442 | 442 | |
443 | 443 | --8=获得drop,直接进入背包 |
444 | 444 | function Passive:effect8(dropId) |
445 | - local item = csvdb["event_dropCsv"][dropId]["range"]:randWeight(true) | |
445 | + local dropData = csvdb["event_dropCsv"][dropId] | |
446 | + if not dropData then | |
447 | + skynet.error(string.format("CSVDATA Error adv_map_passive %s effect 8 not id %s in event_drop", self.id, dropId)) | |
448 | + end | |
449 | + local item = dropData["range"]:randWeight(true) | |
446 | 450 | self.owner.battle.adv:award({[item[1]] = item[2]}) |
447 | 451 | end |
448 | 452 | ... | ... |