修复状态栏百分比效果不显示,村庄的墙可以破,1~12血瓶图标规范化。

This commit is contained in:
bdf1 2024-07-27 12:17:17 +08:00
parent aa600b2b77
commit 1d3d458da4
3 changed files with 2 additions and 1 deletions

View File

@ -16,7 +16,7 @@ var maps_90f36752_8815_4be8_b32b_d7fad1d0542e =
"14": {"cls":"animates","id":"curseNet","canPass":true,"trigger":"null","script":"(function () {\n\tif (!core.hasItem('amulet')) {\n\t\tcore.triggerDebuff('get', 'curse');\n\t\tcore.updateStatusBar();\n\t}\n\n\t// 如果要做一次性咒网,可直接注释掉下面这句话:\n\t// core.removeBlock(core.getHeroLoc('x'), core.getHeroLoc('y'));\n})()","name":"咒网"},
"15": {"cls":"animates","id":"blueLava"},
"16": {"cls":"animates","id":"water"},
"20": {"cls":"autotile","id":"autotile"},
"20": {"cls":"autotile","id":"autotile","canBreak":true},
"21": {"cls":"items","id":"yellowKey"},
"22": {"cls":"items","id":"blueKey"},
"23": {"cls":"items","id":"redKey"},

Binary file not shown.

Before

Width:  |  Height:  |  Size: 108 KiB

After

Width:  |  Height:  |  Size: 77 KiB

View File

@ -1754,6 +1754,7 @@ var plugins_bb40132b_638b_4a9f_b028_d3fe47acc8d1 =
if (hero[name] < 0)
num = '-'.concat(num)
}
if (name === 'atk' || name === 'def' || name === 'mdef') num = core.getRealStatus(name).toString()
for (var i in num) {
core.drawIcon(ctx, 'X' + (10304), x + 5 + 10 * Number(i), y, 16, 16)
if (num[i] === '.')