Compare commits

..

No commits in common. "c0617ac80fc4df2e8df7ca87ecdaf0701c4a98fb" and "973b546a43ccbb54eac8b8269948d93858483ea1" have entirely different histories.

4 changed files with 1589 additions and 2413 deletions

View File

@ -1120,8 +1120,8 @@ var data_a1e2fb4a_e986_4524_b0da_9b7ba7c0874d =
"hp": 1000, "hp": 1000,
"manamax": -1, "manamax": -1,
"mana": 0, "mana": 0,
"atk": 60, "atk": 100,
"def": 10, "def": 100,
"mdef": 100, "mdef": 100,
"speed": 10, "speed": 10,
"money": 0, "money": 0,
@ -1140,8 +1140,7 @@ var data_a1e2fb4a_e986_4524_b0da_9b7ba7c0874d =
"flags": { "flags": {
"itemDetail": true, "itemDetail": true,
"useBetweenLight": true, "useBetweenLight": true,
"__mdef_buff__": 0, "__mdef_buff__": 0
"popmove": true
}, },
"followers": [], "followers": [],
"steps": 0, "steps": 0,

View File

@ -4,7 +4,7 @@ var enemys_fcae963b_31c9_42b4_b48c_bb48d09f3f80 =
"redSlime": {"name":"红头怪","hp":0,"atk":0,"def":0,"money":0,"exp":0,"point":0,"special":[],"value":10}, "redSlime": {"name":"红头怪","hp":0,"atk":0,"def":0,"money":0,"exp":0,"point":0,"special":[],"value":10},
"blackSlime": {"name":"青头怪","hp":0,"atk":0,"def":0,"money":0,"exp":0,"point":0,"special":0}, "blackSlime": {"name":"青头怪","hp":0,"atk":0,"def":0,"money":0,"exp":0,"point":0,"special":0},
"slimelord": {"name":"怪王","hp":100,"atk":120,"def":0,"money":10,"exp":0,"point":0,"special":[1,9]}, "slimelord": {"name":"怪王","hp":100,"atk":120,"def":0,"money":10,"exp":0,"point":0,"special":[1,9]},
"bat": {"name":"小蝙蝠","hp":100,"atk":50,"def":30,"money":2,"exp":0,"point":0,"special":[1],"mdef":0,"speed":15}, "bat": {"name":"小蝙蝠","hp":100,"atk":120,"def":0,"money":2,"exp":0,"point":0,"special":[1],"mdef":0,"speed":15},
"bigBat": {"name":"大蝙蝠","hp":0,"atk":0,"def":0,"money":0,"exp":0,"point":0,"special":0}, "bigBat": {"name":"大蝙蝠","hp":0,"atk":0,"def":0,"money":0,"exp":0,"point":0,"special":0},
"redBat": {"name":"红蝙蝠","hp":0,"atk":0,"def":0,"money":0,"exp":0,"point":0,"special":[]}, "redBat": {"name":"红蝙蝠","hp":0,"atk":0,"def":0,"money":0,"exp":0,"point":0,"special":[]},
"vampire": {"name":"冥灵魔王","hp":888,"atk":888,"def":888,"money":888,"exp":888,"point":0,"special":[6],"n":8}, "vampire": {"name":"冥灵魔王","hp":888,"atk":888,"def":888,"money":888,"exp":888,"point":0,"special":[6],"n":8},

View File

@ -1869,49 +1869,54 @@ var functions_d6ad677b_427a_4623_b50f_a445a3b0ef8a =
// core.stopAutomaticRoute(); // core.stopAutomaticRoute();
}, },
"moveDirectly": function (x, y, ignoreSteps) { "moveDirectly": function (x, y, ignoreSteps) {
// 瞬间移动x,y为要瞬间移动的点ignoreSteps为减少的步数可能之前已经被计算过 // 瞬间移动x,y为要瞬间移动的点ignoreSteps为减少的步数可能之前已经被计算过
// 返回true代表成功瞬移false代表没有成功瞬移 // 返回true代表成功瞬移false代表没有成功瞬移
// 判定能否瞬移到该点 // 判定能否瞬移到该点
if (ignoreSteps == null) ignoreSteps = core.canMoveDirectly(x, y); if (ignoreSteps == null) ignoreSteps = core.canMoveDirectly(x, y);
if (ignoreSteps >= 0) { if (ignoreSteps >= 0) {
// 中毒也允许瞬移 // 中毒也允许瞬移
if (core.hasFlag("poison")) { if (core.hasFlag("poison")) {
var damage = ignoreSteps * core.values.poisonDamage; var damage = ignoreSteps * core.values.poisonDamage;
if (damage >= core.status.hero.hp) return false; if (damage >= core.status.hero.hp) return false;
core.status.hero.statistics.poisonDamage += damage; core.status.hero.statistics.poisonDamage += damage;
core.status.hero.hp -= damage; core.status.hero.hp -= damage;
} }
core.clearMap("hero"); core.clearMap("hero");
if ( if (
core.bigmap.width * 32 === core.bigmap.height * 32 && core.bigmap.width * 32 === core.bigmap.height * 32 &&
core.bigmap.width * 32 === core.__PIXELS__ core.bigmap.width * 32 === core.__PIXELS__
) )
if (core.getFlag('popmove')) core.addPopMove(32 * core.status.hero.loc.x + 16, 32 * core.status.hero.loc.y + 16, 32 * x + 16, 32 * y + 16); core.addPopMove(
// 获得勇士最后的朝向 32 * core.status.hero.loc.x + 16,
var lastDirection = core.status.route[core.status.route.length - 1]; 32 * core.status.hero.loc.y + 16,
if (["left", "right", "up", "down"].indexOf(lastDirection) >= 0) 32 * x + 16,
core.setHeroLoc("direction", lastDirection); 32 * y + 16
// 设置坐标,并绘制 );
core.control._moveDirectyFollowers(x, y); // 获得勇士最后的朝向
core.status.hero.loc.x = x; var lastDirection = core.status.route[core.status.route.length - 1];
core.status.hero.loc.y = y; if (["left", "right", "up", "down"].indexOf(lastDirection) >= 0)
core.drawHero(); core.setHeroLoc("direction", lastDirection);
// 记录录像 // 设置坐标,并绘制
core.status.route.push("move:" + x + ":" + y); core.control._moveDirectyFollowers(x, y);
// 统计信息 core.status.hero.loc.x = x;
core.status.hero.statistics.moveDirectly++; core.status.hero.loc.y = y;
core.status.hero.statistics.ignoreSteps += ignoreSteps; core.drawHero();
if (core.hasFlag("poison")) { // 记录录像
core.updateStatusBar(false, true); core.status.route.push("move:" + x + ":" + y);
} // 统计信息
core.status.hero.statistics.moveDirectly++;
core.status.hero.statistics.ignoreSteps += ignoreSteps;
if (core.hasFlag("poison")) {
core.updateStatusBar(false, true);
}
core.checkRouteFolding(); core.checkRouteFolding();
return true; return true;
} }
return false; return false;
}, },
"parallelDo": function (timestamp) { "parallelDo": function (timestamp) {
// 并行事件处理,可以在这里写任何需要并行处理的脚本或事件 // 并行事件处理,可以在这里写任何需要并行处理的脚本或事件
// 该函数将被系统反复执行每次执行间隔视浏览器或设备性能而定一般约为16.6ms一次 // 该函数将被系统反复执行每次执行间隔视浏览器或设备性能而定一般约为16.6ms一次

File diff suppressed because it is too large Load Diff