Compare commits

..

No commits in common. "a0c6d80700b93ce4f209d09e69c3d9f74213846e" and "63de0f7785f4b6e03498a371101f5e1765bf8b2a" have entirely different histories.

3 changed files with 11 additions and 15 deletions

View File

@ -14,7 +14,14 @@ main.floors.yiqu1=
"firstArrive": [],
"eachArrive": [],
"parallelDo": "",
"events": {},
"events": {
"5,9": [
{
"type": "insert",
"name": "chapter01"
}
]
},
"changeFloor": {
"0,7": {
"floorId": "yiqu2",

View File

@ -905,10 +905,9 @@ var functions_d6ad677b_427a_4623_b50f_a445a3b0ef8a =
var hero_hp = core.getRealStatusOrDefault(hero, "hp"),
hero_atk = core.getRealStatusOrDefault(hero, "atk"),
hero_def = core.getRealStatusOrDefault(hero, "def"),
hero_matk = core.getRealStatusOrDefault(hero, "matk"),
hero_mdef = core.getRealStatusOrDefault(hero, "mdef"),
hero_speed = core.getRealStatusOrDefault(hero, "speed"),
hero_spell = core.getRealStatusOrDefault(hero, "spell"),
hero_magic = core.getRealStatusOrDefault(hero, "magic"),
origin_hero_hp = core.getStatusOrDefault(hero, "hp"),
origin_hero_atk = core.getStatusOrDefault(hero, "atk"),
origin_hero_def = core.getStatusOrDefault(hero, "def");
@ -977,9 +976,6 @@ var functions_d6ad677b_427a_4623_b50f_a445a3b0ef8a =
//---第三部分:递归开始---
let length = hero_speed * mon_speed;
let heroDiffPerTurn = [],
enemyDiffPerTurn = [];
for (
let now_mon_hp = mon_hp,
last_mon_hp = mon_hp,
@ -994,7 +990,7 @@ var functions_d6ad677b_427a_4623_b50f_a445a3b0ef8a =
hero_time = hero_length / hero_speed;
if (
mon_time < hero_time ||
((mon_time == hero_time) && mon_speed > hero_speed)
((mon_time = hero_time) && mon_speed > hero_speed)
) {
//怪物攻击的回合
//这里计算怪物攻击时发生的各种变化
@ -1025,11 +1021,6 @@ var functions_d6ad677b_427a_4623_b50f_a445a3b0ef8a =
hero_length = length;
mon_length = mon_length - hero_time * mon_speed;
}
let hero_diff = {},
mon_diff = {};
//这里插入汇总勇士和怪物在此回合结束时的情况数值,用以跑条动画读取
heroDiffPerTurn.push(hero_diff);
enemyDiffPerTurn.push(mon_diff); //将勇士和怪物此回合结束时的属性变动保存到heroPerInfo和enemyPerInfo中用以跑条动画读取
}
//下面这些还没修改
@ -1060,7 +1051,7 @@ var functions_d6ad677b_427a_4623_b50f_a445a3b0ef8a =
//上面这些还没修改
//勇士护盾计算
let barrier = hero_mdef;
if (enemyInfo.magic) barrier = hero_def;
// ------ 支援 ----- //
// 这个递归最好想明白为什么flag:__extraTurn__是怎么用的
@ -1128,8 +1119,6 @@ var functions_d6ad677b_427a_4623_b50f_a445a3b0ef8a =
1. 显示怪物是魔攻还是物攻在怪物名字上做颜色变化物攻是黄色魔攻是蓝色
2. 一防减伤是物防还是魔防由怪物是物攻还是魔攻来转换
3. 特殊战斗的怪物在怪物手册里伤害写为特殊战*/
/*TODO:
怪物勇士和装备同时跑条时的计算*/
}
},
"actions": {

Binary file not shown.

Before

Width:  |  Height:  |  Size: 347 KiB

After

Width:  |  Height:  |  Size: 343 KiB