Compare commits
No commits in common. "ed783309e20607d8b4ba1fb1fa9bcecc6b3b7bbb" and "d63f7b19528ce59a6a7bcd19cf8b184ceaf3bc31" have entirely different histories.
ed783309e2
...
d63f7b1952
@ -460,7 +460,6 @@ var data_a1e2fb4a_e986_4524_b0da_9b7ba7c0874d =
|
|||||||
"r.webp",
|
"r.webp",
|
||||||
"sound.webp",
|
"sound.webp",
|
||||||
"status.webp",
|
"status.webp",
|
||||||
"statusBackground.webp",
|
|
||||||
"suiji.webp",
|
"suiji.webp",
|
||||||
"tati_020101.webp",
|
"tati_020101.webp",
|
||||||
"tati_020101a.webp",
|
"tati_020101a.webp",
|
||||||
@ -1523,7 +1522,6 @@ var data_a1e2fb4a_e986_4524_b0da_9b7ba7c0874d =
|
|||||||
"name": "Eustia",
|
"name": "Eustia",
|
||||||
"version": "鸽子窝造塔小队",
|
"version": "鸽子窝造塔小队",
|
||||||
"floorId": "jiaocheng01",
|
"floorId": "jiaocheng01",
|
||||||
"floorId": "jiaocheng01",
|
|
||||||
"hero": {
|
"hero": {
|
||||||
"image": "hero.webp",
|
"image": "hero.webp",
|
||||||
"animate": false,
|
"animate": false,
|
||||||
@ -1535,11 +1533,8 @@ var data_a1e2fb4a_e986_4524_b0da_9b7ba7c0874d =
|
|||||||
"mana": 0,
|
"mana": 0,
|
||||||
"atk": 30,
|
"atk": 30,
|
||||||
"def": 20,
|
"def": 20,
|
||||||
"atk": 30,
|
|
||||||
"def": 20,
|
|
||||||
"mdef": 100,
|
"mdef": 100,
|
||||||
"speed": 20,
|
"speed": 20,
|
||||||
"speed": 20,
|
|
||||||
"money": 0,
|
"money": 0,
|
||||||
"exp": 0,
|
"exp": 0,
|
||||||
"equipment": [],
|
"equipment": [],
|
||||||
@ -1552,7 +1547,6 @@ var data_a1e2fb4a_e986_4524_b0da_9b7ba7c0874d =
|
|||||||
"direction": "up",
|
"direction": "up",
|
||||||
"x": 6,
|
"x": 6,
|
||||||
"y": 12
|
"y": 12
|
||||||
"y": 12
|
|
||||||
},
|
},
|
||||||
"flags": {
|
"flags": {
|
||||||
"itemDetail": true,
|
"itemDetail": true,
|
||||||
@ -1563,10 +1557,9 @@ var data_a1e2fb4a_e986_4524_b0da_9b7ba7c0874d =
|
|||||||
"followers": [],
|
"followers": [],
|
||||||
"steps": 0,
|
"steps": 0,
|
||||||
"matk": 0,
|
"matk": 0,
|
||||||
"spell": 10,
|
"spell": 20,
|
||||||
"spelldef": 0,
|
"spelldef": 0,
|
||||||
"mhp": 100
|
"mhp": 100
|
||||||
"mhp": 100
|
|
||||||
},
|
},
|
||||||
"startCanvas": [
|
"startCanvas": [
|
||||||
{
|
{
|
||||||
@ -1922,28 +1915,7 @@ var data_a1e2fb4a_e986_4524_b0da_9b7ba7c0874d =
|
|||||||
],
|
],
|
||||||
"startText": [
|
"startText": [
|
||||||
{
|
{
|
||||||
"type": "if",
|
"type": "setText"
|
||||||
"condition": "false",
|
|
||||||
"true": [
|
|
||||||
{
|
|
||||||
"type": "setText"
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"type": "setHeroOpacity",
|
|
||||||
"opacity": 0
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"type": "setCurtain",
|
|
||||||
"color": [
|
|
||||||
0,
|
|
||||||
0,
|
|
||||||
0,
|
|
||||||
1
|
|
||||||
],
|
|
||||||
"time": 500,
|
|
||||||
"keep": true
|
|
||||||
}
|
|
||||||
]
|
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"type": "function",
|
"type": "function",
|
||||||
@ -1958,14 +1930,8 @@ var data_a1e2fb4a_e986_4524_b0da_9b7ba7c0874d =
|
|||||||
"name": "强制横屏"
|
"name": "强制横屏"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"type": "if",
|
"type": "insert",
|
||||||
"condition": "false",
|
"name": "chapter0"
|
||||||
"true": [
|
|
||||||
{
|
|
||||||
"type": "insert",
|
|
||||||
"name": "chapter0"
|
|
||||||
}
|
|
||||||
]
|
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
"shops": [
|
"shops": [
|
||||||
@ -2141,7 +2107,6 @@ var data_a1e2fb4a_e986_4524_b0da_9b7ba7c0874d =
|
|||||||
"bluePotion": 250,
|
"bluePotion": 250,
|
||||||
"yellowPotion": 500,
|
"yellowPotion": 500,
|
||||||
"greenPotion": 900,
|
"greenPotion": 900,
|
||||||
"greenPotion": 900,
|
|
||||||
"breakArmor": 0.9,
|
"breakArmor": 0.9,
|
||||||
"counterAttack": 0.1,
|
"counterAttack": 0.1,
|
||||||
"purify": 3,
|
"purify": 3,
|
||||||
@ -2151,8 +2116,6 @@ var data_a1e2fb4a_e986_4524_b0da_9b7ba7c0874d =
|
|||||||
"statusCanvasRowsOnMobile": 3,
|
"statusCanvasRowsOnMobile": 3,
|
||||||
"floorChangeTime": 500,
|
"floorChangeTime": 500,
|
||||||
"yellowGem": 2
|
"yellowGem": 2
|
||||||
"floorChangeTime": 500,
|
|
||||||
"yellowGem": 2
|
|
||||||
},
|
},
|
||||||
"flags": {
|
"flags": {
|
||||||
"statusBarItems": [
|
"statusBarItems": [
|
||||||
|
@ -308,12 +308,14 @@ var functions_d6ad677b_427a_4623_b50f_a445a3b0ef8a =
|
|||||||
}
|
}
|
||||||
// 获得战斗伤害信息
|
// 获得战斗伤害信息
|
||||||
var damageInfo = core.getDamageInfo(enemyId, null, x, y) || {};
|
var damageInfo = core.getDamageInfo(enemyId, null, x, y) || {};
|
||||||
|
|
||||||
if (!core.getFlag("noAnimate")) await core.attackAnimate(
|
if (!core.getFlag("noAnimate")) await core.attackAnimate(
|
||||||
enemyId,
|
enemyId,
|
||||||
damageInfo.start[0],
|
damageInfo.start[0],
|
||||||
damageInfo.start[1],
|
damageInfo.start[1],
|
||||||
damageInfo.start[2],
|
damageInfo.start[2],
|
||||||
damageInfo.start[3],
|
damageInfo.start[3],
|
||||||
|
damageInfo.start[4],
|
||||||
damageInfo.heroDiffList,
|
damageInfo.heroDiffList,
|
||||||
damageInfo.enemyDiffList,
|
damageInfo.enemyDiffList,
|
||||||
damageInfo.heroanimateList,
|
damageInfo.heroanimateList,
|
||||||
@ -790,6 +792,7 @@ var functions_d6ad677b_427a_4623_b50f_a445a3b0ef8a =
|
|||||||
}
|
}
|
||||||
|
|
||||||
var guards = [];
|
var guards = [];
|
||||||
|
|
||||||
// 光环和支援检查
|
// 光环和支援检查
|
||||||
if (!core.status.checkBlock) core.status.checkBlock = {};
|
if (!core.status.checkBlock) core.status.checkBlock = {};
|
||||||
|
|
||||||
@ -1044,7 +1047,7 @@ var functions_d6ad677b_427a_4623_b50f_a445a3b0ef8a =
|
|||||||
enemyinfo.now = oneTurn
|
enemyinfo.now = oneTurn
|
||||||
enemyinfo.onAttack = true
|
enemyinfo.onAttack = true
|
||||||
}
|
}
|
||||||
const start = [core.clone(heroinfo), core.clone(enemyinfo), core.clone(equipInfo), oneTurn] //记录开始战斗时的属性并转发
|
const start = [core.clone(heroinfo), core.clone(enemyinfo), core.clone(equipInfo), oneTurn, onegcd] //记录开始战斗时的属性并转发
|
||||||
//---第三部分:递归开始---
|
//---第三部分:递归开始---
|
||||||
|
|
||||||
const heroDiffList = [],
|
const heroDiffList = [],
|
||||||
@ -1061,6 +1064,7 @@ var functions_d6ad677b_427a_4623_b50f_a445a3b0ef8a =
|
|||||||
enemy_diff = {},
|
enemy_diff = {},
|
||||||
hero_animate = [],
|
hero_animate = [],
|
||||||
enemy_animate = [];
|
enemy_animate = [];
|
||||||
|
|
||||||
if (enemyinfo.onAttack) { //怪物先攻的场合
|
if (enemyinfo.onAttack) { //怪物先攻的场合
|
||||||
//这里计算怪物攻击时发生的各种变化,同时计入enemy_diff
|
//这里计算怪物攻击时发生的各种变化,同时计入enemy_diff
|
||||||
let mon_damage = 0
|
let mon_damage = 0
|
||||||
@ -1093,7 +1097,6 @@ var functions_d6ad677b_427a_4623_b50f_a445a3b0ef8a =
|
|||||||
enemyinfo.onAttack = false
|
enemyinfo.onAttack = false
|
||||||
enemyinfo.now = 0
|
enemyinfo.now = 0
|
||||||
onattack = true
|
onattack = true
|
||||||
|
|
||||||
}
|
}
|
||||||
equipInfo.forEach(v => {
|
equipInfo.forEach(v => {
|
||||||
if (v.onAttack) {
|
if (v.onAttack) {
|
||||||
@ -1201,26 +1204,25 @@ var functions_d6ad677b_427a_4623_b50f_a445a3b0ef8a =
|
|||||||
}
|
}
|
||||||
|
|
||||||
})
|
})
|
||||||
if (onattack) {
|
|
||||||
//处理完毕后的数据处理
|
|
||||||
heroDiffList.push(hero_diff)
|
|
||||||
enemyDiffList.push(enemy_diff)
|
|
||||||
heroanimateList.push(hero_animate)
|
|
||||||
enemyanimateList.push(enemy_animate)
|
|
||||||
//处理属性变化
|
|
||||||
for (let v in hero_diff) {
|
|
||||||
heroinfo[v] += hero_diff[v]
|
|
||||||
}
|
|
||||||
for (let v in enemy_diff) {
|
|
||||||
enemyinfo[v] += enemy_diff[v]
|
|
||||||
}
|
|
||||||
|
|
||||||
//出手50回合怪物生命未降低直接判负,避免死循环
|
//处理完毕后的数据处理
|
||||||
if (hero_turn === 50) {
|
heroDiffList.push(hero_diff)
|
||||||
|
enemyDiffList.push(enemy_diff)
|
||||||
|
heroanimateList.push(hero_animate)
|
||||||
|
enemyanimateList.push(enemy_animate)
|
||||||
|
//处理属性变化
|
||||||
|
for (let v in hero_diff) {
|
||||||
|
heroinfo[v] += hero_diff[v]
|
||||||
|
}
|
||||||
|
for (let v in enemy_diff) {
|
||||||
|
enemyinfo[v] += enemy_diff[v]
|
||||||
|
}
|
||||||
|
|
||||||
if (enemyinfo.hp >= beforehp) {
|
//出手50回合怪物生命未降低直接判负,避免死循环
|
||||||
return null
|
if (hero_turn === 50) {
|
||||||
}
|
|
||||||
|
if (enemyinfo.hp >= beforehp) {
|
||||||
|
return null
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Binary file not shown.
Before Width: | Height: | Size: 5.8 KiB |
@ -565,7 +565,11 @@ var items_296f5d02_12fd_4166_a7c1_b5e830c9ee3a =
|
|||||||
"equipCls": "法杖",
|
"equipCls": "法杖",
|
||||||
"equip": {
|
"equip": {
|
||||||
"type": 0,
|
"type": 0,
|
||||||
"value": {},
|
"animate": "sword",
|
||||||
|
"value": {
|
||||||
|
"mhp": -100,
|
||||||
|
"matk": 10
|
||||||
|
},
|
||||||
"percentage": {}
|
"percentage": {}
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
1038
project/plugins.js
1038
project/plugins.js
File diff suppressed because it is too large
Load Diff
Loading…
Reference in New Issue
Block a user