电脑端界面显示居中;可以调整背景图亮度;加入计分;修复部分NPC;修复一个机关门

This commit is contained in:
bdf1 2024-08-30 14:51:06 +08:00
parent 7adfaa3e8b
commit de13d41470
9 changed files with 280 additions and 36 deletions

View File

@ -2264,6 +2264,55 @@ var data_a1e2fb4a_e986_4524_b0da_9b7ba7c0874d =
]
}
]
},
{
"id": "itemShop",
"item": true,
"textInList": "道具回收商店",
"use": "money",
"mustEnable": true,
"choices": [
{
"id": "I710",
"sell": "100"
},
{
"id": "I711",
"sell": "200"
},
{
"id": "I712",
"sell": "300"
},
{
"id": "I713",
"sell": "400"
},
{
"id": "I714",
"sell": "500"
},
{
"id": "I415",
"sell": "1000"
},
{
"id": "I416",
"sell": "2000"
},
{
"id": "yellowKey",
"sell": "40"
},
{
"id": "blueKey",
"sell": "120"
},
{
"id": "redKey",
"sell": "300"
}
]
}
],
"levelUp": [
@ -2363,6 +2412,6 @@ var data_a1e2fb4a_e986_4524_b0da_9b7ba7c0874d =
"enableRouteFolding": true,
"disableShopOnDamage": false,
"blurFg": false,
"hideLeftStatusBar": false
"hideLeftStatusBar": true
}
}

View File

@ -321,7 +321,7 @@ main.floors.BH1=
"红宝石增加攻击力\n蓝宝石增加防御力\n绿宝石增加护盾值\n黄宝石增加全属性\n白宝石进行加点\n血红宝石增加生命上限\n粉臻宝石增加魔力值\n各色钥匙对应各色门\n琼浆雨露以及血瓶进行相应的回复生命值"
],
"7,1": [
"商店50次升级一次\n计分方式"
"商店50次升级一次\n计分方式攻+防+护盾/6+血限/300\n计分前可以卖掉琼浆玉露和神之血加点。"
]
},
"changeFloor": {

View File

@ -143,7 +143,7 @@ main.floors.BH20=
"time": 500,
"keep": true
},
"\t[莫析辉,hero]\b[hero]打完希羽后,会自爆,勇者血量会变成一血!!"
"\t[莫析辉,hero]\b[hero]打完希羽后,会自爆,血量会变成一血!!"
],
"eachArrive": [],
"parallelDo": "",
@ -191,7 +191,7 @@ main.floors.BH20=
"direction": "down"
},
"\t[莫析辉,hero]\b[hero]希娜!",
"\t[黑暗圣女,N1161]\b[this,6,11]圣子哥哥,该你啦",
"\t[黑暗圣女,N481]\b[this,6,11]圣子哥哥,该你啦",
"\t[莫析辉,hero]\b[hero]哼!",
{
"type": "moveHero",

View File

@ -115,7 +115,7 @@ main.floors.CZ7=
},
{
"type": "setBlock",
"number": "N1152",
"number": "N472",
"loc": [
[
3,

View File

@ -555,7 +555,8 @@ main.floors.GM7=
]
],
"floorId": "XY7"
}
},
"提示前期不建议过快提高圣骑士的亲密度否则可能属性不足会导致打不过BOSS。"
],
"false": []
},

View File

@ -52,7 +52,74 @@ main.floors.MJ5=
]
}
]
},
"10,8": [
{
"type": "if",
"condition": "switch:A",
"true": [
{
"type": "unloadEquip",
"pos": 0
},
{
"type": "unloadEquip",
"pos": 1
},
{
"type": "unloadEquip",
"pos": 2
},
{
"type": "unloadEquip",
"pos": 3
},
{
"type": "setValue",
"name": "status:hp",
"value": "status:atk+status:def+status:mdef/6+status:hpmax/300+(flag:shop3)*5000"
},
{
"type": "if",
"condition": "flag:shengqishi>=90",
"true": [
{
"type": "win",
"reason": "paladin"
}
]
},
{
"type": "if",
"condition": "flag:heianshengzi",
"true": [
{
"type": "win",
"reason": "the son of darkness"
}
]
},
{
"type": "win",
"reason": "saint"
}
]
},
"这里可以计分。\n本塔的计分方式是攻击+防御+护盾/6+血限/300。如果买了额外的装备孔则分数+5000。\n圣骑士路线拿到火焰纹章后可以将分数乘以1.2。\n这里可以把神之血和琼浆玉露卖掉然后在商店加点换取分数。\n钥匙也可以按照商店的原价卖掉。",
"圣骑士结局:\n和圣骑士亲密度>=100\n黑暗圣子结局\n融合黑暗圣子和圣骑士亲密度在-1~99之间和准圣子及圣女亲密度均<5\n光明圣子或光明圣女结局\n不融合黑暗圣子和圣骑士亲密度在-1~99之间准圣子或圣女亲密度>5\n黑暗圣子+光明圣子或光明圣女结局:\n融合黑暗圣子和圣骑士亲密度在-1~99之间准圣子或圣女亲密度>5\n孤胆英雄结局\n不融合黑暗圣子和圣骑士亲密度在-1~99之间和准圣子及圣女亲密度均<5\n天命主角结局\n和圣骑士亲密度<=-2",
"这里由于部分内容还没实装因此这里圣骑士结局需要圣骑士的亲密度需求为90且火焰纹章不可能拿到且准圣子或圣女亲密度视为>5。",
{
"type": "openShop",
"id": "itemShop",
"open": true
},
"再访问我即计分。通过按V访问快捷商店来再次访问此商店。",
{
"type": "setValue",
"name": "switch:A",
"value": "true"
}
]
},
"changeFloor": {
"6,12": {
@ -222,26 +289,6 @@ main.floors.MJ5=
},
"1": null
},
"10,7": {
"0": {
"condition": "flag:door_MJ5_10_7==1",
"currentFloor": true,
"priority": 0,
"delayExecute": false,
"multiExecute": false,
"data": [
{
"type": "openDoor"
},
{
"type": "setValue",
"name": "flag:door_MJ5_10_7",
"operator": "=",
"value": "null"
}
]
}
},
"6,2": {
"0": {
"condition": "flag:door_MJ5_6_2==1",
@ -261,6 +308,27 @@ main.floors.MJ5=
}
]
}
},
"8,7": {
"0": {
"condition": "flag:door_MJ5_10_7==1",
"currentFloor": true,
"priority": 0,
"delayExecute": false,
"multiExecute": false,
"data": [
{
"type": "openDoor"
},
{
"type": "setValue",
"name": "flag:door_MJ5_10_7",
"operator": "=",
"value": "null"
}
]
},
"1": null
}
},
"cannotMove": {},
@ -273,8 +341,8 @@ main.floors.MJ5=
[ 4, 4, 4, 4, 4, 4, 0, 4, 4, 4, 4, 4, 4],
[ 4, 4, 4, 4, 4,1161,1170,1162, 4, 4, 4, 4, 4],
[ 4, 4, 4, 4, 4,1163,1164,1165, 4, 4, 4, 4, 4],
[ 4, 4, 4, 4, 4,1166,1169,1168, 0, 0, 85, 0, 4],
[ 4, 4, 4, 4, 4, 4, 83, 4, 4, 4, 4, 0, 4],
[ 4, 4, 4, 4, 4,1166,1169,1168, 85, 0, 0, 0, 4],
[ 4, 4, 4, 4, 4, 4, 83, 4, 4, 4,1135, 0, 4],
[ 4, 4, 4, 4, 4, 4,510, 4, 4, 4, 4, 0, 4],
[ 4, 4, 4, 4, 4, 4, 0, 4, 4, 4, 4, 0, 4],
[ 4, 4, 4, 4, 4, 4, 0, 4, 4, 4, 4,1095, 4],

View File

@ -75,7 +75,36 @@ main.floors.YS8=
]
}
},
"beforeBattle": {},
"beforeBattle": {
"9,4": [
{
"type": "if",
"condition": "(flag:shengqishi>8)",
"true": [
{
"type": "setValue",
"name": "flag:door_YS8_10_3",
"operator": "+=",
"value": "1"
}
]
}
],
"11,4": [
{
"type": "if",
"condition": "(flag:shengqishi>8)",
"true": [
{
"type": "setValue",
"name": "flag:door_YS8_10_3",
"operator": "+=",
"value": "1"
}
]
}
]
},
"afterBattle": {
"9,4": [
{

View File

@ -1409,6 +1409,59 @@ var items_296f5d02_12fd_4166_a7c1_b5e830c9ee3a =
]
}
]
},
{
"text": "调整背景图亮度 [${flags._statusbrg_}]",
"color": [
127,
127,
127,
1
],
"action": [
{
"type": "choices",
"text": "调整背景图亮度",
"choices": [
{
"text": "调亮",
"color": [
237,
3,
120,
1
],
"action": [
{
"type": "setValue",
"name": "flag:_statusbrg_",
"value": "Math.min(1, flags._statusbrg_+0.05)"
}
]
},
{
"text": "调暗",
"color": [
233,
233,
23,
1
],
"action": [
{
"type": "setValue",
"name": "flag:_statusbrg_",
"value": "Math.max(0, flags._statusbrg_-0.05)"
}
]
}
]
},
{
"type": "function",
"function": "function(){\ncore.createSpr0()\n}"
}
]
}
]
}

View File

@ -199,6 +199,50 @@ var plugins_bb40132b_638b_4a9f_b028_d3fe47acc8d1 =
}
core.control.setToolbarButton = function (useButton) {
if (!core.domStyle.showStatusBar) {
// 隐藏状态栏时检查竖屏
if (!core.domStyle.isVertical && !core.flags.extendToolbar) {
for (var i = 0; i < core.dom.tools.length; ++i)
core.dom.tools[i].style.display = 'none';
return;
}
if (!core.hasFlag('showToolbox')) return;
else core.dom.tools.hard.style.display = 'block';
}
if (useButton == null) useButton = core.domStyle.toolbarBtn;
if ((!core.domStyle.isVertical && !core.flags.extendToolbar)) useButton = false;
core.domStyle.toolbarBtn = useButton;
if (!core.domStyle.isVertical) {
["book", "fly", "toolbox", "keyboard", "shop", "save", "load", "settings"].forEach(function (t) {
core.statusBar.image[t].style.display = 'none';
});
["btn1", "btn2", "btn3", "btn4", "btn5", "btn6", "btn7", "btn8"].forEach(function (t) {
core.statusBar.image[t].style.display = 'none';
})
core.statusBar.hard.style.display = 'none';
} else
if (useButton) {
["book", "fly", "toolbox", "keyboard", "shop", "save", "load", "settings"].forEach(function (t) {
core.statusBar.image[t].style.display = 'none';
});
["btn1", "btn2", "btn3", "btn4", "btn5", "btn6", "btn7", "btn8"].forEach(function (t) {
core.statusBar.image[t].style.display = 'block';
})
main.statusBar.image.btn8.style.filter = core.getLocalStorage('altKey') ? 'sepia(1) contrast(1.5)' : '';
core.statusBar.hard.style.display = 'block';
} else {
["btn1", "btn2", "btn3", "btn4", "btn5", "btn6", "btn7", "btn8"].forEach(function (t) {
core.statusBar.image[t].style.display = 'none';
});
["book", "fly", "toolbox", "save", "load", "settings"].forEach(function (t) {
core.statusBar.image[t].style.display = 'block';
});
core.statusBar.image.keyboard.style.display = core.statusBar.image.shop.style.display = core.domStyle.isVertical || core.flags.extendToolbar ? "block" : "none";
core.statusBar.hard.style.display = 'block';
}
}
},
"drawLight": function () {
@ -2953,11 +2997,11 @@ var plugins_bb40132b_638b_4a9f_b028_d3fe47acc8d1 =
}
if (core.getSprite('Spr0') && des) {
core.getSprite('Spr0').destroy();
const sprite = new Sprite(core.domStyle.isVertical ? 0 : Math.floor(left - (16 - 129 + 172 - 0) * core.domStyle.scale), Math.floor(top_up - (64 + 0) * core.domStyle.scale), width, height, 10, 'window', 'Spr0');
const sprite = new Sprite(core.domStyle.isVertical ? 0 : Math.floor(left - (16 + 172 - 0) * core.domStyle.scale), Math.floor(top_up - (64 + 0) * core.domStyle.scale), width, height, 10, 'window', 'Spr0');
} else if (core.getSprite('Spr0')) {
core.clearMap(core.getSprite('Spr0').context);
} else { const sprite = new Sprite(core.domStyle.isVertical ? 0 : Math.floor(left - (16 - 129 + 172 - 0) * core.domStyle.scale), Math.floor(top_up - (64 + 0) * core.domStyle.scale), width, height, 10, 'window', 'Spr0'); }
} else { const sprite = new Sprite(core.domStyle.isVertical ? 0 : Math.floor(left - (16 + 172 - 0) * core.domStyle.scale), Math.floor(top_up - (64 + 0) * core.domStyle.scale), width, height, 10, 'window', 'Spr0'); }
var ctx = core.getSprite('Spr0').context;
@ -3048,11 +3092,11 @@ var plugins_bb40132b_638b_4a9f_b028_d3fe47acc8d1 =
}
if (core.getSprite('Spr1') && des) {
core.getSprite('Spr1').destroy();
const sprite = new Sprite(core.domStyle.isVertical ? 0 : Math.floor(left - (16 - 129 + 172 - 0) * core.domStyle.scale), Math.floor(top_up - (64 + 0) * core.domStyle.scale), width, height, 12, 'window', 'Spr1');
const sprite = new Sprite(core.domStyle.isVertical ? 0 : Math.floor(left - (16 + 172 - 0) * core.domStyle.scale), Math.floor(top_up - (64 + 0) * core.domStyle.scale), width, height, 12, 'window', 'Spr1');
} else if (core.getSprite('Spr1')) {
core.clearMap(core.getSprite('Spr1').context);
} else { const sprite = new Sprite(core.domStyle.isVertical ? 0 : Math.floor(left - (16 - 129 + 172 - 0) * core.domStyle.scale), Math.floor(top_up - (64 + 0) * core.domStyle.scale), width, height, 12, 'window', 'Spr1'); }
} else { const sprite = new Sprite(core.domStyle.isVertical ? 0 : Math.floor(left - (16 + 172 - 0) * core.domStyle.scale), Math.floor(top_up - (64 + 0) * core.domStyle.scale), width, height, 12, 'window', 'Spr1'); }
var ctx = core.getSprite('Spr1').context;
@ -3236,11 +3280,11 @@ var plugins_bb40132b_638b_4a9f_b028_d3fe47acc8d1 =
}
if (core.getSprite('Spr2') && des) {
core.getSprite('Spr2').destroy();
const sprite = new Sprite(core.domStyle.isVertical ? 0 : Math.floor(left - (16 - 129 + 172 - 0) * core.domStyle.scale), Math.floor(top_up - (64 + 0) * core.domStyle.scale), width, height, 10, 'window', 'Spr2');
const sprite = new Sprite(core.domStyle.isVertical ? 0 : Math.floor(left - (16 + 172 - 0) * core.domStyle.scale), Math.floor(top_up - (64 + 0) * core.domStyle.scale), width, height, 10, 'window', 'Spr2');
} else if (core.getSprite('Spr2')) {
core.clearMap(core.getSprite('Spr2').context);
} else { const sprite = new Sprite(core.domStyle.isVertical ? 0 : Math.floor(left - (16 - 129 + 172 - 0) * core.domStyle.scale), Math.floor(top_up - (64 + 0) * core.domStyle.scale), width, height, 10, 'window', 'Spr2'); }
} else { const sprite = new Sprite(core.domStyle.isVertical ? 0 : Math.floor(left - (16 + 172 - 0) * core.domStyle.scale), Math.floor(top_up - (64 + 0) * core.domStyle.scale), width, height, 10, 'window', 'Spr2'); }
var ctx = core.getSprite('Spr2').context;