Update Between Attack
This commit is contained in:
parent
9039eb1f27
commit
02a0f0aa43
@ -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);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@ -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
|
||||
|
||||
Loading…
Reference in New Issue
Block a user