Compare commits
2 Commits
d63f7b1952
...
ed783309e2
Author | SHA1 | Date | |
---|---|---|---|
ed783309e2 | |||
a77c7bf184 |
@ -460,6 +460,7 @@ 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",
|
||||||
@ -1522,6 +1523,7 @@ 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,
|
||||||
@ -1533,8 +1535,11 @@ 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": [],
|
||||||
@ -1547,6 +1552,7 @@ 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,
|
||||||
@ -1557,9 +1563,10 @@ var data_a1e2fb4a_e986_4524_b0da_9b7ba7c0874d =
|
|||||||
"followers": [],
|
"followers": [],
|
||||||
"steps": 0,
|
"steps": 0,
|
||||||
"matk": 0,
|
"matk": 0,
|
||||||
"spell": 20,
|
"spell": 10,
|
||||||
"spelldef": 0,
|
"spelldef": 0,
|
||||||
"mhp": 100
|
"mhp": 100
|
||||||
|
"mhp": 100
|
||||||
},
|
},
|
||||||
"startCanvas": [
|
"startCanvas": [
|
||||||
{
|
{
|
||||||
@ -1915,7 +1922,28 @@ var data_a1e2fb4a_e986_4524_b0da_9b7ba7c0874d =
|
|||||||
],
|
],
|
||||||
"startText": [
|
"startText": [
|
||||||
{
|
{
|
||||||
"type": "setText"
|
"type": "if",
|
||||||
|
"condition": "false",
|
||||||
|
"true": [
|
||||||
|
{
|
||||||
|
"type": "setText"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"type": "setHeroOpacity",
|
||||||
|
"opacity": 0
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"type": "setCurtain",
|
||||||
|
"color": [
|
||||||
|
0,
|
||||||
|
0,
|
||||||
|
0,
|
||||||
|
1
|
||||||
|
],
|
||||||
|
"time": 500,
|
||||||
|
"keep": true
|
||||||
|
}
|
||||||
|
]
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"type": "function",
|
"type": "function",
|
||||||
@ -1930,8 +1958,14 @@ var data_a1e2fb4a_e986_4524_b0da_9b7ba7c0874d =
|
|||||||
"name": "强制横屏"
|
"name": "强制横屏"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"type": "insert",
|
"type": "if",
|
||||||
"name": "chapter0"
|
"condition": "false",
|
||||||
|
"true": [
|
||||||
|
{
|
||||||
|
"type": "insert",
|
||||||
|
"name": "chapter0"
|
||||||
|
}
|
||||||
|
]
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
"shops": [
|
"shops": [
|
||||||
@ -2107,6 +2141,7 @@ 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,
|
||||||
@ -2116,6 +2151,8 @@ 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,14 +308,12 @@ 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,
|
||||||
@ -792,7 +790,6 @@ 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 = {};
|
||||||
|
|
||||||
@ -1047,7 +1044,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, onegcd] //记录开始战斗时的属性并转发
|
const start = [core.clone(heroinfo), core.clone(enemyinfo), core.clone(equipInfo), oneTurn] //记录开始战斗时的属性并转发
|
||||||
//---第三部分:递归开始---
|
//---第三部分:递归开始---
|
||||||
|
|
||||||
const heroDiffList = [],
|
const heroDiffList = [],
|
||||||
@ -1064,7 +1061,6 @@ 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
|
||||||
@ -1097,6 +1093,7 @@ 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) {
|
||||||
@ -1204,25 +1201,26 @@ 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回合怪物生命未降低直接判负,避免死循环
|
||||||
heroDiffList.push(hero_diff)
|
if (hero_turn === 50) {
|
||||||
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 (enemyinfo.hp >= beforehp) {
|
||||||
if (hero_turn === 50) {
|
return null
|
||||||
|
}
|
||||||
if (enemyinfo.hp >= beforehp) {
|
|
||||||
return null
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
BIN
project/images/statusBackground.webp
Normal file
BIN
project/images/statusBackground.webp
Normal file
Binary file not shown.
After Width: | Height: | Size: 5.8 KiB |
@ -565,11 +565,7 @@ var items_296f5d02_12fd_4166_a7c1_b5e830c9ee3a =
|
|||||||
"equipCls": "法杖",
|
"equipCls": "法杖",
|
||||||
"equip": {
|
"equip": {
|
||||||
"type": 0,
|
"type": 0,
|
||||||
"animate": "sword",
|
"value": {},
|
||||||
"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