diff --git a/_server/data.comment.js b/_server/data.comment.js index af1c0b4b..0f7dc2ba 100644 --- a/_server/data.comment.js +++ b/_server/data.comment.js @@ -612,6 +612,12 @@ data_comment_c456ea59_6018_45ef_8bcc_211a24c627dc = "_bool": "bool", "_data": "是否允许查看未开启状态的快捷商店内容;如果此项为真,则对于未开启状态的商店允许查看其内容(但不能购买)" }, + "disableShopOnDamage": { + "_leaf": true, + "_type": "checkbox", + "_bool": "bool", + "_data": "是否在经过领域/夹击/路障等伤害后禁用快捷商店。" + } } } } diff --git a/libs/control.js b/libs/control.js index 11602683..9530927f 100644 --- a/libs/control.js +++ b/libs/control.js @@ -1245,6 +1245,14 @@ control.prototype.checkBlock = function () { if (damage>0) { core.playSound('zone.mp3'); core.drawAnimate("zone", x, y); + + // 禁用快捷商店 + if (core.flags.disableShopOnDamage) { + for (var shopId in core.status.shops) { + core.status.shops[shopId].visited = false; + } + } + } core.status.hero.statistics.extraDamage += damage; diff --git a/project/data.js b/project/data.js index 22b396ea..66e83fbb 100644 --- a/project/data.js +++ b/project/data.js @@ -232,6 +232,7 @@ data_a1e2fb4a_e986_4524_b0da_9b7ba7c0874d = "portalWithoutTrigger": true, "canGoDeadZone": false, "enableMoveDirectly": true, - "enableDisabledShop": true + "enableDisabledShop": true, + "disableShopOnDamage": true } } \ No newline at end of file