disableShopOnDamage
This commit is contained in:
parent
e3766c811b
commit
7c28c1d2fb
@ -612,6 +612,12 @@ data_comment_c456ea59_6018_45ef_8bcc_211a24c627dc =
|
||||
"_bool": "bool",
|
||||
"_data": "是否允许查看未开启状态的快捷商店内容;如果此项为真,则对于未开启状态的商店允许查看其内容(但不能购买)"
|
||||
},
|
||||
"disableShopOnDamage": {
|
||||
"_leaf": true,
|
||||
"_type": "checkbox",
|
||||
"_bool": "bool",
|
||||
"_data": "是否在经过领域/夹击/路障等伤害后禁用快捷商店。"
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@ -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;
|
||||
|
||||
|
||||
@ -232,6 +232,7 @@ data_a1e2fb4a_e986_4524_b0da_9b7ba7c0874d =
|
||||
"portalWithoutTrigger": true,
|
||||
"canGoDeadZone": false,
|
||||
"enableMoveDirectly": true,
|
||||
"enableDisabledShop": true
|
||||
"enableDisabledShop": true,
|
||||
"disableShopOnDamage": true
|
||||
}
|
||||
}
|
||||
Loading…
Reference in New Issue
Block a user