diff --git a/images/autotile.png b/images/autotile.png new file mode 100644 index 00000000..18e92ecf Binary files /dev/null and b/images/autotile.png differ diff --git a/libs/core.js b/libs/core.js index 82d7ddd6..831c1e41 100644 --- a/libs/core.js +++ b/libs/core.js @@ -425,49 +425,48 @@ core.prototype.keyDown = function(keyCode) { } core.prototype.keyUp = function(keyCode) { - if(!core.status.played) { - return; -} + if(!core.status.played) + return; -if (core.status.lockControl) { - if (core.status.event.id == 'book' && (keyCode==27 || keyCode==88)) - core.ui.closePanel(true); - if (core.status.event.id == 'fly' && (keyCode==71 || keyCode==27)) - core.ui.closePanel(); - if (core.status.event.id == 'fly' && keyCode==13) { - var index=core.status.hero.flyRange.indexOf(core.status.floorId); - var stair=core.status.event.data1) { // 1血夹击不死 core.status.hero.hp = parseInt(core.status.hero.hp/2); @@ -490,19 +490,19 @@ events.prototype.afterBattle = function(enemyId,x,y,callback) { // 毒衰咒的处理 var special = core.material.enemys[enemyId].special; // 中毒 - if (special==12 && !core.hasFlag('poison')) { + if (core.enemys.hasSpecial(special, 12) && !core.hasFlag('poison')) { core.setFlag('poison', true); core.updateStatusBar(); } // 衰弱 - if (special==13 && !core.hasFlag('weak')) { + if (core.enemys.hasSpecial(special, 13) && !core.hasFlag('weak')) { core.setFlag('weak', true); core.status.hero.atk-=core.values.weakValue; core.status.hero.def-=core.values.weakValue; core.updateStatusBar(); } // 诅咒 - if (special==14 && !core.hasFlag('curse')) { + if (core.enemys.hasSpecial(special, 14) && !core.hasFlag('curse')) { core.setFlag('curse', true); core.updateStatusBar(); } diff --git a/libs/ui.js b/libs/ui.js index bd62e491..9ee04878 100644 --- a/libs/ui.js +++ b/libs/ui.js @@ -377,28 +377,34 @@ ui.prototype.drawBattleAnimate = function(monsterId, callback) { hero_hp -= core.enemys.getExtraDamage(monster); - if (mon_special==2) hero_def=0; // 魔攻 - if (mon_special==3 && mon_def + + + + + + + + + + + + + + +

通过鼠标拖拽或点击添加草地

+ + + + + + \ No newline at end of file diff --git a/更新内容.txt b/更新内容.txt new file mode 100644 index 00000000..d67dbba6 --- /dev/null +++ b/更新内容.txt @@ -0,0 +1,6 @@ +新增:支持Autotile +新增:怪物支持双属性 √ +新增:单向箭头、感叹号 +快捷道具使用:1破2炸3飞;读档改为D键 √ +更多的默认素材;无需P图,直接替换即可 +破甲、反击、净化等效果放全局变量