移除回放动画,增加即死动画
This commit is contained in:
parent
d7b49eb037
commit
8c586f70b0
@ -1523,7 +1523,6 @@ var data_a1e2fb4a_e986_4524_b0da_9b7ba7c0874d =
|
||||
"name": "Eustia",
|
||||
"version": "鸽子窝造塔小队",
|
||||
"floorId": "jiaocheng01",
|
||||
"floorId": "jiaocheng01",
|
||||
"hero": {
|
||||
"image": "hero.webp",
|
||||
"animate": false,
|
||||
@ -1535,11 +1534,8 @@ var data_a1e2fb4a_e986_4524_b0da_9b7ba7c0874d =
|
||||
"mana": 0,
|
||||
"atk": 30,
|
||||
"def": 20,
|
||||
"atk": 30,
|
||||
"def": 20,
|
||||
"mdef": 100,
|
||||
"speed": 20,
|
||||
"speed": 20,
|
||||
"money": 0,
|
||||
"exp": 0,
|
||||
"equipment": [],
|
||||
@ -1562,7 +1558,7 @@ var data_a1e2fb4a_e986_4524_b0da_9b7ba7c0874d =
|
||||
"followers": [],
|
||||
"steps": 0,
|
||||
"matk": 0,
|
||||
"spell": 10,
|
||||
"spell": 20,
|
||||
"spelldef": 0,
|
||||
"mhp": 100
|
||||
},
|
||||
@ -2139,7 +2135,6 @@ var data_a1e2fb4a_e986_4524_b0da_9b7ba7c0874d =
|
||||
"bluePotion": 250,
|
||||
"yellowPotion": 500,
|
||||
"greenPotion": 900,
|
||||
"greenPotion": 900,
|
||||
"breakArmor": 0.9,
|
||||
"counterAttack": 0.1,
|
||||
"purify": 3,
|
||||
|
@ -16,7 +16,7 @@ main.floors.jiaocheng02=
|
||||
"parallelDo": "",
|
||||
"events": {
|
||||
"5,11": [
|
||||
"教程初始属性:\n1000HP,30攻击,20防御,20速度,10法强(*100%=10护盾)\n绿血瓶此处900,红血瓶100"
|
||||
"教程初始属性:\n1000HP,30攻击,20防御,20速度,20法强(*100%=20护盾)\n绿血瓶此处900,红血瓶100"
|
||||
],
|
||||
"0,0": [
|
||||
"匕首:速度+20"
|
||||
|
@ -308,7 +308,7 @@ var functions_d6ad677b_427a_4623_b50f_a445a3b0ef8a =
|
||||
}
|
||||
// 获得战斗伤害信息
|
||||
var damageInfo = core.getDamageInfo(enemyId, null, x, y) || {};
|
||||
if (!core.getFlag("noAnimate")) await core.attackAnimate(
|
||||
if ((!core.getFlag("noAnimate") || damageInfo.damage >= core.status.hero.hp) && (!main.replayChecking && !core.isReplaying())) await core.attackAnimate(
|
||||
enemyId,
|
||||
damageInfo.start[0],
|
||||
damageInfo.start[1],
|
||||
|
@ -93,7 +93,7 @@ var items_296f5d02_12fd_4166_a7c1_b5e830c9ee3a =
|
||||
},
|
||||
"sword0": {
|
||||
"cls": "equips",
|
||||
"name": "破旧的剑",
|
||||
"name": "基础匕首",
|
||||
"text": "一把已经生锈的剑",
|
||||
"equip": {
|
||||
"type": 0,
|
||||
@ -560,12 +560,15 @@ var items_296f5d02_12fd_4166_a7c1_b5e830c9ee3a =
|
||||
},
|
||||
"I375": {
|
||||
"cls": "equips",
|
||||
"name": "新物品",
|
||||
"name": "基础法杖",
|
||||
"canUseItemEffect": "true",
|
||||
"equipCls": "法杖",
|
||||
"equip": {
|
||||
"type": 0,
|
||||
"value": {},
|
||||
"value": {
|
||||
"matk": 10,
|
||||
"mhp": -100
|
||||
},
|
||||
"percentage": {}
|
||||
}
|
||||
},
|
||||
|
@ -1,268 +1,266 @@
|
||||
var plugins_bb40132b_638b_4a9f_b028_d3fe47acc8d1 =
|
||||
{
|
||||
"init": function () {
|
||||
this._afterLoadResources = function () {
|
||||
// 本函数将在所有资源加载完毕后,游戏开启前被执行
|
||||
core.ui.statusBar.init();
|
||||
core.dom.playGame.style.fontFamily = "pala";
|
||||
core.dom.loadGame.style.fontFamily = "pala";
|
||||
core.dom.CGMode.style.fontFamily = "pala";
|
||||
core.dom.musicMode.style.fontFamily = "pala";
|
||||
core.dom.replayGame.style.fontFamily = "pala";
|
||||
core.registerEvent("changeMouse", function (data) {
|
||||
if (!main.replayChecking && !core.isReplaying())
|
||||
core.changeMouse(
|
||||
data.icon,
|
||||
data.div,
|
||||
data.translate[0],
|
||||
data.translate[1],
|
||||
data.scale[0],
|
||||
data.scale[1],
|
||||
data.angel,
|
||||
data.px,
|
||||
data.py
|
||||
);
|
||||
core.doAction();
|
||||
});
|
||||
core.registerEvent("removeMouse", function (data) {
|
||||
if (!main.replayChecking && !core.isReplaying())
|
||||
core.removeMouse(data.div);
|
||||
core.doAction();
|
||||
});
|
||||
core.registerEvent("addPop", function (data) {
|
||||
if (!main.replayChecking && !core.isReplaying()) {
|
||||
data.value = core.replaceText(data.value);
|
||||
core.addPop(
|
||||
data.value,
|
||||
data.px,
|
||||
data.py,
|
||||
data.color,
|
||||
data.boldColor,
|
||||
data.left,
|
||||
data.jump,
|
||||
data.time,
|
||||
data.show,
|
||||
data.font,
|
||||
data.speed
|
||||
);
|
||||
}
|
||||
core.doAction();
|
||||
});
|
||||
core.registerEvent("drawWarning", function (data) {
|
||||
if (!main.replayChecking && !core.isReplaying()) {
|
||||
data.text = core.replaceText(data.text);
|
||||
data.text2 = core.replaceText(data.text2);
|
||||
core.drawWarning(
|
||||
data.x,
|
||||
data.y,
|
||||
data?.text,
|
||||
data?.text2,
|
||||
data?.warning,
|
||||
data.large,
|
||||
data.size
|
||||
);
|
||||
this._afterLoadResources = function () {
|
||||
// 本函数将在所有资源加载完毕后,游戏开启前被执行
|
||||
core.ui.statusBar.init();
|
||||
core.dom.playGame.style.fontFamily = "pala";
|
||||
core.dom.loadGame.style.fontFamily = "pala";
|
||||
core.dom.CGMode.style.fontFamily = "pala";
|
||||
core.dom.musicMode.style.fontFamily = "pala";
|
||||
core.dom.replayGame.style.fontFamily = "pala";
|
||||
core.registerEvent("changeMouse", function (data) {
|
||||
if (!main.replayChecking && !core.isReplaying())
|
||||
core.changeMouse(
|
||||
data.icon,
|
||||
data.div,
|
||||
data.translate[0],
|
||||
data.translate[1],
|
||||
data.scale[0],
|
||||
data.scale[1],
|
||||
data.angel,
|
||||
data.px,
|
||||
data.py
|
||||
);
|
||||
core.doAction();
|
||||
});
|
||||
core.registerEvent("removeMouse", function (data) {
|
||||
if (!main.replayChecking && !core.isReplaying())
|
||||
core.removeMouse(data.div);
|
||||
core.doAction();
|
||||
});
|
||||
core.registerEvent("addPop", function (data) {
|
||||
if (!main.replayChecking && !core.isReplaying()) {
|
||||
data.value = core.replaceText(data.value);
|
||||
core.addPop(
|
||||
data.value,
|
||||
data.px,
|
||||
data.py,
|
||||
data.color,
|
||||
data.boldColor,
|
||||
data.left,
|
||||
data.jump,
|
||||
data.time,
|
||||
data.show,
|
||||
data.font,
|
||||
data.speed
|
||||
);
|
||||
}
|
||||
core.doAction();
|
||||
});
|
||||
core.registerEvent("drawWarning", function (data) {
|
||||
if (!main.replayChecking && !core.isReplaying()) {
|
||||
data.text = core.replaceText(data.text);
|
||||
data.text2 = core.replaceText(data.text2);
|
||||
core.drawWarning(
|
||||
data.x,
|
||||
data.y,
|
||||
data?.text,
|
||||
data?.text2,
|
||||
data?.warning,
|
||||
data.large,
|
||||
data.size
|
||||
);
|
||||
|
||||
setTimeout(() => core.doAction(), 3100);
|
||||
} else {
|
||||
core.doAction();
|
||||
}
|
||||
});
|
||||
setTimeout(() => core.doAction(), 3100);
|
||||
} else {
|
||||
core.doAction();
|
||||
}
|
||||
});
|
||||
|
||||
core.registerEvent("over", function (data) {
|
||||
let image = data.image ?? "";
|
||||
let time = data.time ?? 3000;
|
||||
let sound = data.sound ?? "";
|
||||
let textColor = data.textColor ?? "#FFFFFF";
|
||||
let boldColor = data.boldColor ?? "#000000";
|
||||
let font = data.font ?? "bold 48px Verdana";
|
||||
let text = data.text ?? "";
|
||||
let hidetime = data.hidetime ?? 100;
|
||||
if (!main.replayChecking && !core.isReplaying()) {
|
||||
core.over(
|
||||
image,
|
||||
data.memory,
|
||||
time,
|
||||
hidetime,
|
||||
sound,
|
||||
textColor,
|
||||
boldColor,
|
||||
font,
|
||||
text
|
||||
);
|
||||
} else {
|
||||
core.doAction();
|
||||
}
|
||||
});
|
||||
core.registerEvent("changebg", function (data) {
|
||||
if (!main.replayChecking && !core.isReplaying()) {
|
||||
core.changebg(
|
||||
data.img1,
|
||||
data.memory1,
|
||||
data.img2,
|
||||
data.memory2,
|
||||
data.time,
|
||||
data.style
|
||||
);
|
||||
} else {
|
||||
core.doAction();
|
||||
}
|
||||
});
|
||||
core.registerEvent("overlist", function (data) {
|
||||
if (!main.replayChecking && !core.isReplaying()) {
|
||||
core.overlist(
|
||||
data.image,
|
||||
data.memory,
|
||||
data.hidetime || 30,
|
||||
data.list || [
|
||||
{
|
||||
text: "",
|
||||
sound: "",
|
||||
time: 50,
|
||||
textColor: "#FFFFFF",
|
||||
boldColor: "#000000",
|
||||
font: "bold 48px Verdana",
|
||||
frame: 0,
|
||||
},
|
||||
]
|
||||
);
|
||||
} else {
|
||||
core.doAction();
|
||||
}
|
||||
});
|
||||
core.registerEvent("op", function (data) {
|
||||
if (!main.replayChecking && !core.isReplaying()) {
|
||||
core.openvideo();
|
||||
} else {
|
||||
core.doAction();
|
||||
}
|
||||
});
|
||||
core.registerEvent("animationDrawable", function (data) {
|
||||
if (!main.replayChecking && !core.isReplaying()) {
|
||||
core.animationDrawable(
|
||||
data.allFarme,
|
||||
data.color,
|
||||
data.globalAlpha,
|
||||
data.imageList,
|
||||
data.soundList
|
||||
);
|
||||
} else {
|
||||
core.doAction();
|
||||
}
|
||||
});
|
||||
core.registerEvent("setanimate", function (data) {
|
||||
data.px = data.px ?? 0;
|
||||
data.py = data.py ?? 0;
|
||||
core.setanimate(
|
||||
data.name,
|
||||
data.px,
|
||||
data.py,
|
||||
data.width,
|
||||
data.height,
|
||||
data.allFarme,
|
||||
data.imageList,
|
||||
data.soundList
|
||||
);
|
||||
core.doAction();
|
||||
});
|
||||
core.registerEvent("clearanimate", function (data) {
|
||||
core.plugin.playing.clear();
|
||||
core.registerEvent("over", function (data) {
|
||||
let image = data.image ?? "";
|
||||
let time = data.time ?? 3000;
|
||||
let sound = data.sound ?? "";
|
||||
let textColor = data.textColor ?? "#FFFFFF";
|
||||
let boldColor = data.boldColor ?? "#000000";
|
||||
let font = data.font ?? "bold 48px Verdana";
|
||||
let text = data.text ?? "";
|
||||
let hidetime = data.hidetime ?? 100;
|
||||
if (!main.replayChecking && !core.isReplaying()) {
|
||||
core.over(
|
||||
image,
|
||||
data.memory,
|
||||
time,
|
||||
hidetime,
|
||||
sound,
|
||||
textColor,
|
||||
boldColor,
|
||||
font,
|
||||
text
|
||||
);
|
||||
} else {
|
||||
core.doAction();
|
||||
}
|
||||
});
|
||||
core.registerEvent("changebg", function (data) {
|
||||
if (!main.replayChecking && !core.isReplaying()) {
|
||||
core.changebg(
|
||||
data.img1,
|
||||
data.memory1,
|
||||
data.img2,
|
||||
data.memory2,
|
||||
data.time,
|
||||
data.style
|
||||
);
|
||||
} else {
|
||||
core.doAction();
|
||||
}
|
||||
});
|
||||
core.registerEvent("overlist", function (data) {
|
||||
if (!main.replayChecking && !core.isReplaying()) {
|
||||
core.overlist(
|
||||
data.image,
|
||||
data.memory,
|
||||
data.hidetime || 30,
|
||||
data.list || [{
|
||||
text: "",
|
||||
sound: "",
|
||||
time: 50,
|
||||
textColor: "#FFFFFF",
|
||||
boldColor: "#000000",
|
||||
font: "bold 48px Verdana",
|
||||
frame: 0,
|
||||
}, ]
|
||||
);
|
||||
} else {
|
||||
core.doAction();
|
||||
}
|
||||
});
|
||||
core.registerEvent("op", function (data) {
|
||||
if (!main.replayChecking && !core.isReplaying()) {
|
||||
core.openvideo();
|
||||
} else {
|
||||
core.doAction();
|
||||
}
|
||||
});
|
||||
core.registerEvent("animationDrawable", function (data) {
|
||||
if (!main.replayChecking && !core.isReplaying()) {
|
||||
core.animationDrawable(
|
||||
data.allFarme,
|
||||
data.color,
|
||||
data.globalAlpha,
|
||||
data.imageList,
|
||||
data.soundList
|
||||
);
|
||||
} else {
|
||||
core.doAction();
|
||||
}
|
||||
});
|
||||
core.registerEvent("setanimate", function (data) {
|
||||
data.px = data.px ?? 0;
|
||||
data.py = data.py ?? 0;
|
||||
core.setanimate(
|
||||
data.name,
|
||||
data.px,
|
||||
data.py,
|
||||
data.width,
|
||||
data.height,
|
||||
data.allFarme,
|
||||
data.imageList,
|
||||
data.soundList
|
||||
);
|
||||
core.doAction();
|
||||
});
|
||||
core.registerEvent("clearanimate", function (data) {
|
||||
core.plugin.playing.clear();
|
||||
|
||||
core.doAction();
|
||||
});
|
||||
core.registerEvent("deleteanimate", function (data) {
|
||||
core.deleteanimate(data.name);
|
||||
core.doAction();
|
||||
});
|
||||
core.registerEvent("playanimate", function (data) {
|
||||
if (!main.replayChecking && !core.isReplaying()) {
|
||||
data.x = data.x ?? 0;
|
||||
data.y = data.y ?? 0;
|
||||
data.scalex = data.scalex ?? 1;
|
||||
data.scaley = data.scaley ?? 1;
|
||||
core.playanimate(
|
||||
data.name,
|
||||
data.x,
|
||||
data.y,
|
||||
data.hero,
|
||||
data.scalex,
|
||||
data.scaley
|
||||
);
|
||||
core.doAction();
|
||||
} else {
|
||||
core.doAction();
|
||||
}
|
||||
});
|
||||
core.registerEvent("cgtextList", function (data) {
|
||||
core.ui.cgText.textList = core.plugin[data.textList];
|
||||
core.doAction();
|
||||
});
|
||||
core.registerEvent("cgtext", function (data) {
|
||||
if (!main.replayChecking && !core.isReplaying()) {
|
||||
core.ui.cgText.image = data.bg;
|
||||
core.ui.cgText.nobg = data.nobg ?? false;
|
||||
core.ui.cgText.memory = data.memory;
|
||||
core.ui.cgText.head = core.clone(data.head);
|
||||
core.ui.cgText.index = data.index;
|
||||
core.ui.cgText.name = core.ui.cgText.textList[data.index][0];
|
||||
core.ui.cgText.text = data.text
|
||||
? data.text
|
||||
: core.ui.cgText.textList[data.index][1];
|
||||
core.ui.cgText.time = data.time;
|
||||
core.ui.cgText.wait = data.wait;
|
||||
core.ui.cgText.WindowSkin = data.WindowSkin;
|
||||
core.ui.cgText.sound =
|
||||
data.sound === ""
|
||||
? data.sound
|
||||
: core.ui.cgText.textList[data.index][2] || "";
|
||||
core.ui.cgText.bodyList = core.clone(data.bodyList);
|
||||
main.dom.cgText.style.display = "block";
|
||||
core.ui.cgText.update();
|
||||
} else {
|
||||
core.doAction();
|
||||
}
|
||||
});
|
||||
core.registerEvent("introAndLoop", function (data) {
|
||||
if (!main.replayChecking && !core.isReplaying()) {
|
||||
core.plugin.introAndLoop(data.intro, data.time, data.loop);
|
||||
core.doAction();
|
||||
} else {
|
||||
core.doAction();
|
||||
}
|
||||
});
|
||||
core.registerEvent("setq", function (data) {
|
||||
core.setFlag("任务地点", data.id);
|
||||
core.doAction();
|
||||
});
|
||||
core.registerEvent("deleteanimate", function (data) {
|
||||
core.deleteanimate(data.name);
|
||||
core.doAction();
|
||||
});
|
||||
core.registerEvent("playanimate", function (data) {
|
||||
if (!main.replayChecking && !core.isReplaying()) {
|
||||
data.x = data.x ?? 0;
|
||||
data.y = data.y ?? 0;
|
||||
data.scalex = data.scalex ?? 1;
|
||||
data.scaley = data.scaley ?? 1;
|
||||
core.playanimate(
|
||||
data.name,
|
||||
data.x,
|
||||
data.y,
|
||||
data.hero,
|
||||
data.scalex,
|
||||
data.scaley
|
||||
);
|
||||
core.doAction();
|
||||
} else {
|
||||
core.doAction();
|
||||
}
|
||||
});
|
||||
core.registerEvent("cgtextList", function (data) {
|
||||
core.ui.cgText.textList = core.plugin[data.textList];
|
||||
core.doAction();
|
||||
});
|
||||
core.registerEvent("cgtext", function (data) {
|
||||
if (!main.replayChecking && !core.isReplaying()) {
|
||||
core.ui.cgText.image = data.bg;
|
||||
core.ui.cgText.nobg = data.nobg ?? false;
|
||||
core.ui.cgText.memory = data.memory;
|
||||
core.ui.cgText.head = core.clone(data.head);
|
||||
core.ui.cgText.index = data.index;
|
||||
core.ui.cgText.name = core.ui.cgText.textList[data.index][0];
|
||||
core.ui.cgText.text = data.text ?
|
||||
data.text :
|
||||
core.ui.cgText.textList[data.index][1];
|
||||
core.ui.cgText.time = data.time;
|
||||
core.ui.cgText.wait = data.wait;
|
||||
core.ui.cgText.WindowSkin = data.WindowSkin;
|
||||
core.ui.cgText.sound =
|
||||
data.sound === "" ?
|
||||
data.sound :
|
||||
core.ui.cgText.textList[data.index][2] || "";
|
||||
core.ui.cgText.bodyList = core.clone(data.bodyList);
|
||||
main.dom.cgText.style.display = "block";
|
||||
core.ui.cgText.update();
|
||||
} else {
|
||||
core.doAction();
|
||||
}
|
||||
});
|
||||
core.registerEvent("introAndLoop", function (data) {
|
||||
if (!main.replayChecking && !core.isReplaying()) {
|
||||
core.plugin.introAndLoop(data.intro, data.time, data.loop);
|
||||
core.doAction();
|
||||
} else {
|
||||
core.doAction();
|
||||
}
|
||||
});
|
||||
core.registerEvent("setq", function (data) {
|
||||
core.setFlag("任务地点", data.id);
|
||||
|
||||
core.doAction();
|
||||
});
|
||||
core.doAction();
|
||||
});
|
||||
|
||||
core.registerEvent("setmusics", function (data) {
|
||||
if (
|
||||
(core.getLocalStorage("musics") &&
|
||||
core.getLocalStorage("musics").length === 0) ||
|
||||
!core.getLocalStorage("musics")
|
||||
)
|
||||
core.setLocalStorage("musics", ["theme.mp3"]);
|
||||
let a = core.getLocalStorage("musics");
|
||||
if (!data.bgm) {
|
||||
core.setLocalStorage("musics", ["theme.mp3"]);
|
||||
} else {
|
||||
if (!a.includes(data.bgm)) a.push(data.bgm);
|
||||
core.setLocalStorage("musics", a);
|
||||
}
|
||||
core.doAction();
|
||||
});
|
||||
core.registerEvent("setcgs", function (data) {
|
||||
if (!data.img) {
|
||||
core.setLocalStorage("cgs", []);
|
||||
} else {
|
||||
let a = core.getLocalStorage("cgs") ?? [];
|
||||
if (!a.includes(data.img)) a.push(data.img);
|
||||
core.setLocalStorage("cgs", a);
|
||||
}
|
||||
core.doAction();
|
||||
});
|
||||
};
|
||||
},
|
||||
core.registerEvent("setmusics", function (data) {
|
||||
if (
|
||||
(core.getLocalStorage("musics") &&
|
||||
core.getLocalStorage("musics").length === 0) ||
|
||||
!core.getLocalStorage("musics")
|
||||
)
|
||||
core.setLocalStorage("musics", ["theme.mp3"]);
|
||||
let a = core.getLocalStorage("musics");
|
||||
if (!data.bgm) {
|
||||
core.setLocalStorage("musics", ["theme.mp3"]);
|
||||
} else {
|
||||
if (!a.includes(data.bgm)) a.push(data.bgm);
|
||||
core.setLocalStorage("musics", a);
|
||||
}
|
||||
core.doAction();
|
||||
});
|
||||
core.registerEvent("setcgs", function (data) {
|
||||
if (!data.img) {
|
||||
core.setLocalStorage("cgs", []);
|
||||
} else {
|
||||
let a = core.getLocalStorage("cgs") ?? [];
|
||||
if (!a.includes(data.img)) a.push(data.img);
|
||||
core.setLocalStorage("cgs", a);
|
||||
}
|
||||
core.doAction();
|
||||
});
|
||||
};
|
||||
},
|
||||
"drawLight": function () {
|
||||
// 绘制灯光/漆黑层效果。调用方式 core.plugin.drawLight(...)
|
||||
// 【参数说明】
|
||||
|
Loading…
Reference in New Issue
Block a user