Update Between Attack

This commit is contained in:
oc 2018-01-20 10:10:35 +08:00
parent 9039eb1f27
commit 02a0f0aa43
2 changed files with 3 additions and 2 deletions

View File

@ -2727,7 +2727,7 @@ core.prototype.updateCheckBlock = function() {
if (core.isset(block.event) && !(core.isset(block.enable) && !block.enable) && block.event.cls=='enemys') {
var id = block.event.id, enemy = core.enemys.getEnemys(id);
if (core.isset(enemy)) {
core.status.checkBlock.map[13*block.x+block.y]=id;
core.status.checkBlock.map[13*block.x+block.y]=id;
}
}
}
@ -2802,7 +2802,7 @@ core.prototype.updateCheckBlock = function() {
core.status.checkBlock.betweenAttack[13*x+y]=true;
var leftHp = core.status.hero.hp - core.status.checkBlock.damage[13*x+y];
if (leftHp>1)
core.status.checkBlock.damage[13*x+y] += parseInt((leftHp+1)/2);
core.status.checkBlock.damage[13*x+y] += parseInt((leftHp+(core.flags.betweenAttackCeil?0:1))/2);
}
}
}

View File

@ -158,6 +158,7 @@ data.prototype.init = function() {
"bigKeyIsBox": false, // 如果此项为true则视为钥匙盒红黄蓝钥匙+1若为false则视为大黄门钥匙
/****** 怪物相关 ******/
"enableNegativeDamage": true, // 是否支持负伤害(回血)
"betweenAttackCeil": true, // 夹击方式是向上取整还是向下取整。如果此项为true则为向上取整为false则为向下取整
/****** 系统相关 ******/
"startDirectly": false, // 点击“开始游戏”后是否立刻开始游戏而不显示难度选择界面
"canOpenBattleAnimate": true, // 是否允许用户开启战斗过程如果此项为false则下面两项均强制视为false