采用超导体元素的fix试一下

This commit is contained in:
shenjack 2024-05-24 22:57:39 +08:00
parent b916c6cbdb
commit 94b7d84b37
Signed by: shenjack
GPG Key ID: 7B1134A979775551

View File

@ -1,6 +1,6 @@
'use strict';
const _version_ = "0.3.0";
const _version_ = "0.3.1";
// let name_input = "!test!\n\natest\n\ntest2";
// let name_input = "!test!\n\nthis_is_a";
@ -17400,7 +17400,10 @@ T.Plr.prototype = {
try {
var tmparr = diy.split("]");
var attrs = JSON.parse(tmparr[0] + "]");
if (tmparr[1].startsWith("{")) var diyskills = JSON.parse(tmparr[1]);
if (tmparr[1].startsWith("{")) {
var diyskills = JSON.parse(tmparr[1]);
this_.isDiySkill = 1;
}
if (attrs.length != 8) throw new Error('八围要有八个元素')
} catch (error) {
console.error(error)
@ -17605,7 +17608,7 @@ T.Plr.prototype = {
skl = sortedSkills[s]
if (skl.f > 0 && skl instanceof T.ActionSkill) actions.push(skl)
}
if (this.diy == undefined) {
if (!this_.isDiySkill) {
if (actions.length > 0)
for (s = actions.length - 1; s >= 0; --s) {
act = actions[s]