Fix
This commit is contained in:
parent
2b0b27a3ed
commit
7108e3a786
@ -67,6 +67,12 @@ var comment_c456ea59_6018_45ef_8bcc_211a24c627dc = {
|
|||||||
"_lint": true,
|
"_lint": true,
|
||||||
"_data": "即捡即用类物品在获得时提示的文字,仅对cls为items有效。"
|
"_data": "即捡即用类物品在获得时提示的文字,仅对cls为items有效。"
|
||||||
},
|
},
|
||||||
|
"useItemEvent": {
|
||||||
|
"_leaf": true,
|
||||||
|
"_type": "event",
|
||||||
|
"_event": "item",
|
||||||
|
"_data": "碰触或使用本道具所执行的事件"
|
||||||
|
},
|
||||||
"useItemEffect": {
|
"useItemEffect": {
|
||||||
"_leaf": true,
|
"_leaf": true,
|
||||||
"_type": "textarea",
|
"_type": "textarea",
|
||||||
@ -74,12 +80,6 @@ var comment_c456ea59_6018_45ef_8bcc_211a24c627dc = {
|
|||||||
"_lint": true,
|
"_lint": true,
|
||||||
"_data": "道具效果,仅对cls为tools或constants有效。"
|
"_data": "道具效果,仅对cls为tools或constants有效。"
|
||||||
},
|
},
|
||||||
"useItemEvent": {
|
|
||||||
"_leaf": true,
|
|
||||||
"_type": "event",
|
|
||||||
"_event": "item",
|
|
||||||
"_data": "使用本道具所执行的事件"
|
|
||||||
},
|
|
||||||
"canUseItemEffect": {
|
"canUseItemEffect": {
|
||||||
"_leaf": true,
|
"_leaf": true,
|
||||||
"_type": "textarea",
|
"_type": "textarea",
|
||||||
|
|||||||
@ -90,6 +90,14 @@ items.prototype.getItemEffectTip = function (itemId) {
|
|||||||
return "";
|
return "";
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
if (this.useItemEvent[itemId]) {
|
||||||
|
try {
|
||||||
|
core.insertAction(this.useItemEvent[itemId]);
|
||||||
|
}
|
||||||
|
catch (e) {
|
||||||
|
main.log(e);
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
return "";
|
return "";
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user