51_AstralParty/project/items.js
Sunumbrella 7e7f36250b fix:
- 修复 items.js 中 StarCoinHammer2 没有 text 导致绘制道具信息出错的问题
- 修复因为 star 变量引用错误导致无法进入最终 boss 战的问题
2025-09-20 00:33:26 +08:00

1140 lines
44 KiB
JavaScript
Raw Permalink Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

var items_296f5d02_12fd_4166_a7c1_b5e830c9ee3a =
{
"yellowKey": {
"cls": "tools",
"name": "黄钥匙",
"text": "可以打开一扇黄门",
"hideInToolbox": true,
"hideInReplay": true
},
"blueKey": {
"cls": "tools",
"name": "蓝钥匙",
"text": "可以打开一扇蓝门",
"hideInToolbox": true,
"hideInReplay": true
},
"redKey": {
"cls": "tools",
"name": "红钥匙",
"text": "可以打开一扇红门",
"hideInToolbox": true,
"hideInReplay": true
},
"redGem": {
"cls": "items",
"name": "红宝石",
"text": "攻击+1",
"itemEffect": "",
"itemEffectTip": "",
"useItemEffect": "core.status.hero.atk += core.values.redGem",
"canUseItemEffect": "true"
},
"blueGem": {
"cls": "items",
"name": "蓝宝石",
"text": ",防御+1",
"itemEffect": "",
"itemEffectTip": "",
"useItemEffect": "core.status.hero.def += core.values.blueGem",
"canUseItemEffect": "true"
},
"greenGem": {
"cls": "items",
"name": "绿宝石",
"text": ",护盾+${core.values.greenGem}",
"itemEffect": "core.status.hero.mdef += core.values.greenGem * core.status.thisMap.ratio",
"itemEffectTip": ",护盾+${core.values.greenGem * core.status.thisMap.ratio}",
"useItemEffect": "core.status.hero.mdef += core.values.greenGem",
"canUseItemEffect": "true"
},
"yellowGem": {
"cls": "items",
"name": "黄宝石",
"text": "可以进行加点",
"itemEffect": "core.status.hero.hp+=1000;core.status.hero.atk+=6;core.status.hero.def+=6;core.status.hero.mdef+=10;",
"itemEffectTip": ",全属性提升",
"useItemEvent": [
{
"type": "choices",
"choices": [
{
"text": "攻击+1",
"action": [
{
"type": "setValue",
"name": "status:atk",
"operator": "+=",
"value": "1"
}
]
},
{
"text": "防御+2",
"action": [
{
"type": "setValue",
"name": "status:def",
"operator": "+=",
"value": "2"
}
]
},
{
"text": "生命+200",
"action": [
{
"type": "setValue",
"name": "status:hp",
"operator": "+=",
"value": "200"
}
]
}
]
}
],
"canUseItemEffect": "true"
},
"redPotion": {
"cls": "items",
"name": "红血瓶",
"text": ",生命+${core.values.redPotion}",
"itemEffect": "let HP = 50 * flags.ratio\nif (core.hasItem(\"TeaCake\")) HP *= 1.5\nif (core.status.hero.name === \"潘大猛\") HP *= 2\nif (core.status.floorId.startsWith(\"MAR\")) HP *= 2\ncore.status.hero.hp += HP\ncore.setFlag(\"DPS\", HP)",
"itemEffectTip": ",提升 ${(core.hasItem(\"TeaCake\")?75:50) * flags.ratio* (core.status.hero.name===\"潘大猛\"?2:1) * (core.status.floorId.startsWith(\"MAR\") ? 2 : 1)} 点生命",
"useItemEffect": "core.status.hero.hp += core.values.redPotion",
"canUseItemEffect": "true"
},
"bluePotion": {
"cls": "items",
"name": "蓝血瓶",
"text": ",生命+${core.values.bluePotion}",
"itemEffect": "let HP = 200 * flags.ratio\nif (core.hasItem(\"TeaCake\")) HP *= 1.5\nif (core.status.hero.name === \"潘大猛\") HP *= 2\nif (core.status.floorId.startsWith(\"MAR\")) HP *= 2\ncore.status.hero.hp += HP\ncore.setFlag(\"DPS\", HP)",
"itemEffectTip": ",提升 ${(core.hasItem(\"TeaCake\")?300:200) * flags.ratio* (core.status.hero.name===\"潘大猛\"?2:1)* (core.status.floorId.startsWith(\"MAR\") ? 2 : 1)} 点生命",
"useItemEffect": "core.status.hero.hp += core.values.bluePotion",
"canUseItemEffect": "true"
},
"yellowPotion": {
"cls": "items",
"name": "黄血瓶",
"text": ",生命+${core.values.yellowPotion}",
"itemEffect": "let HP = 250 * flags.ratio\nif (core.hasItem(\"TeaCake\")) HP *= 1.5\nif (core.status.hero.name === \"潘大猛\") HP *= 2\nif (core.status.floorId.startsWith(\"MAR\")) HP *= 2\ncore.status.hero.hp += HP\ncore.setFlag(\"DPS\", HP)",
"itemEffectTip": ",生命+${(core.hasItem(\"TeaCake\")?375:250) * flags.ratio* (core.status.hero.name===\"潘大猛\"?2:1)* (core.status.floorId.startsWith(\"MAR\") ? 2 : 1)}",
"useItemEffect": "core.status.hero.hp += core.values.yellowPotion",
"canUseItemEffect": "true"
},
"greenPotion": {
"cls": "items",
"name": "绿血瓶",
"text": ",生命+${core.values.greenPotion}",
"itemEffect": "let HP = 1000 * flags.ratio\nif (core.hasItem(\"TeaCake\")) HP *= 1.5\nif (core.status.hero.name === \"潘大猛\") HP *= 2\nif (core.status.floorId.startsWith(\"MAR\")) HP *= 2\ncore.status.hero.hp += HP\ncore.setFlag(\"DPS\", HP)",
"itemEffectTip": ",生命+${(core.hasItem(\"TeaCake\")?1500:1000) * flags.ratio* (core.status.hero.name===\"潘大猛\"?2:1)* (core.status.floorId.startsWith(\"MAR\") ? 2 : 1)}",
"useItemEffect": "core.status.hero.hp += core.values.greenPotion",
"canUseItemEffect": "true"
},
"sword0": {
"cls": "items",
"name": "破旧的剑",
"text": "一把已经生锈的剑",
"equip": {
"type": 0,
"animate": "sword",
"value": {
"atk": 0
},
"percentage": {}
},
"itemEffect": "core.status.hero.atk += 0",
"itemEffectTip": ",攻击+0"
},
"shield0": {
"cls": "items",
"name": "破旧的盾",
"text": "一个很破旧的铁盾",
"equip": {
"type": 1,
"value": {
"def": 0
}
},
"itemEffect": "core.status.hero.def += 0",
"itemEffectTip": ",防御+0"
},
"shield5": {
"cls": "items",
"name": "神圣盾",
"text": "一个很普通的神圣盾",
"equip": {
"type": 1,
"value": {
"def": 100,
"mdef": 100
}
},
"itemEffect": "core.status.hero.def += 100;\ncore.setFlag('nowShield', 'shield5');\ncore.setFlag('shield5', 1);",
"itemEffectTip": ",提升 100 点防御,并免疫魔法伤害"
},
"superPotion": {
"cls": "tools",
"name": "圣水",
"itemEffect": "core.status.hero.hp *= 2",
"itemEffectTip": "增加10倍攻击+5倍防御的生命",
"useItemEffect": "var hp = Math.round(10 * core.status.hero.atk + 5 * core.status.hero.def)\ncore.status.hero.hp += hp;\ncore.insertAction([\n\t{ \"type\": \"playSound\", \"name\": \"item.mp3\" },\n\t{ \"type\": \"tip\", \"text\": \"使用圣水,增加 \" + hp + \" 生命\" },\n]);",
"canUseItemEffect": "true",
"text": "增加10倍攻击+5倍防御的生命",
"hideInToolbox": true,
"hideInReplay": true
},
"book": {
"cls": "constants",
"name": "怪物手册",
"text": "可以查看当前楼层各怪物属性",
"hideInToolbox": true,
"useItemEffect": "core.ui.drawBook(0)",
"canUseItemEffect": "true",
"hideInReplay": true
},
"fly": {
"cls": "constants",
"name": "楼层传送器",
"text": "可以自由往来去过的楼层",
"hideInReplay": true,
"hideInToolbox": true,
"useItemEffect": "core.ui.drawFly(core.floorIds.indexOf(core.status.floorId));\n//core.ui.drawFly(core.floorIds.indexOf(core.status.floorId));",
"canUseItemEffect": "(function () {\n\treturn core.status.maps[core.status.floorId].canFlyFrom;\n})();"
},
"coin": {
"cls": "constants",
"name": "幸运金币",
"text": "打败怪物可得双倍金币(与银行卡-用不完可叠加为4倍",
"hideInToolbox": false,
"hideInReplay": true
},
"snow": {
"cls": "constants",
"name": "冰冻徽章",
"text": "可以将面前的熔岩变成平地",
"useItemEffect": "(function () {\n\tvar success = false;\n\n\tvar snowFourDirections = true; // 是否多方向雪花如果是将其改成true\n\tif (snowFourDirections) {\n\t\t// 多方向雪花\n\t\tfor (var direction in core.utils.scan) { // 多方向雪花默认四方向如需改为八方向请将这两个scan改为scan2\n\t\t\tvar delta = core.utils.scan[direction];\n\t\t\tvar nx = core.getHeroLoc('x') + delta.x,\n\t\t\t\tny = core.getHeroLoc('y') + delta.y;\n\t\t\tif (core.getBlockId(nx, ny) == 'lava') {\n\t\t\t\tcore.removeBlock(nx, ny);\n\t\t\t\tsuccess = true;\n\t\t\t}\n\t\t}\n\t} else {\n\t\tif (core.getBlockId(core.nextX(), core.nextY()) == 'lava') {\n\t\t\tcore.removeBlock(core.nextX(), core.nextY());\n\t\t\tsuccess = true;\n\t\t}\n\t}\n\n\tif (success) {\n\t\tcore.playSound('打开界面');\n\t\tcore.drawTip(core.material.items[itemId].name + '使用成功', itemId);\n\t} else {\n\t\tcore.playSound('操作失败');\n\t\tcore.drawTip(\"当前无法使用\" + core.material.items[itemId].name, itemId);\n\t\tcore.addItem(itemId, 1);\n\t\treturn;\n\t}\n})();",
"canUseItemEffect": "true",
"hideInToolbox": false,
"hideInReplay": true
},
"cross": {
"cls": "constants",
"name": "十字架",
"text": "对吸血鬼兽人和兽人武士攻击力加倍(临时加攻击的战斗筹码不计算)",
"hideInToolbox": false,
"hideInReplay": true
},
"knife": {
"cls": "constants",
"name": "屠龙匕首",
"text": "对魔龙攻击加倍(临时加攻击的战斗筹码不计算)",
"hideInToolbox": false,
"hideInReplay": true
},
"amulet": {
"cls": "constants",
"name": "护符",
"text": "持有时无视负面地形",
"hideInToolbox": true,
"hideInReplay": true
},
"bigKey": {
"cls": "tools",
"name": "大黄门钥匙",
"text": "可以开启当前层所有黄门",
"itemEffect": "core.addItem('yellowKey', 1);\ncore.addItem('blueKey', 1);\ncore.addItem('redKey', 1);",
"itemEffectTip": ",全钥匙+1",
"useItemEffect": "(function () {\n\tvar actions = core.searchBlock(\"yellowDoor\").map(function (block) {\n\t\treturn { \"type\": \"openDoor\", \"loc\": [block.x, block.y], \"async\": true };\n\t});\n\tactions.push({ \"type\": \"waitAsync\" });\n\tactions.push({ \"type\": \"tip\", \"text\": core.material.items[itemId].name + \"使用成功\" });\n\tcore.insertAction(actions);\n})();",
"canUseItemEffect": "(function () {\n\treturn core.searchBlock('yellowDoor').length > 0;\n})();",
"hideInToolbox": true,
"hideInReplay": true
},
"greenKey": {
"cls": "tools",
"name": "绿钥匙",
"text": "可以打开一扇绿门",
"hideInToolbox": true,
"hideInReplay": true
},
"steelKey": {
"cls": "tools",
"name": "铁门钥匙",
"text": "可以打开一扇铁门",
"hideInToolbox": true,
"hideInReplay": true
},
"pickaxe": {
"cls": "tools",
"name": "破墙镐",
"text": "可以破坏勇士面前的墙壁",
"useItemEffect": "(function () {\n\tvar canBreak = function (x, y) {\n\t\tvar block = core.getBlock(x, y);\n\t\tif (block == null || block.disable) return false;\n\t\treturn block.event.canBreak;\n\t};\n\n\tvar success = false;\n\tvar pickaxeFourDirections = true; // 是否多方向破如果是将其改成true\n\tif (pickaxeFourDirections) {\n\t\t// 多方向破\n\t\tfor (var direction in core.utils.scan) { // 多方向破默认四方向如需改成八方向请将这两个scan改为scan2\n\t\t\tvar delta = core.utils.scan[direction];\n\t\t\tvar nx = core.getHeroLoc('x') + delta.x,\n\t\t\t\tny = core.getHeroLoc('y') + delta.y;\n\t\t\ttrue\n\t\t\tif (canBreak(nx, ny)) {\n\t\t\t\tcore.removeBlock(nx, ny);\n\t\t\t\tsuccess = true;\n\t\t\t}\n\t\t}\n\t} else {\n\t\t// 仅破当前\n\t\tif (canBreak(core.nextX(), core.nextY())) {\n\t\t\tcore.removeBlock(core.nextX(), core.nextY());\n\t\t\tsuccess = true;\n\t\t}\n\t}\n\n\tif (success) {\n\t\tcore.playSound('破墙镐');\n\t\tcore.drawMap()\n\t\tcore.drawTip(core.material.items[itemId].name + '使用成功', itemId);\n\t} else {\n\t\t// 无法使用\n\t\tcore.playSound('操作失败');\n\t\tcore.drawTip(\"当前无法使用\" + core.material.items[itemId].name, itemId);\n\t\tcore.addItem(itemId, 1);\n\t\treturn;\n\t}\n})();",
"canUseItemEffect": "true",
"hideInToolbox": true,
"hideInReplay": true
},
"icePickaxe": {
"cls": "tools",
"name": "破冰镐",
"text": "可以破坏勇士面前的一堵冰墙",
"useItemEffect": "(function () {\n\tcore.drawTip(core.material.items[itemId].name + '使用成功', itemId);\n\tcore.insertAction({ \"type\": \"openDoor\", \"loc\": [\"core.nextX()\", \"core.nextY()\"] });\n})();",
"canUseItemEffect": "(function () {\n\treturn core.getBlockId(core.nextX(), core.nextY()) == 'ice';\n})();",
"hideInToolbox": true,
"hideInReplay": true
},
"bomb": {
"cls": "tools",
"name": "炸弹",
"text": "可以炸掉勇士面前的怪物",
"useItemEffect": "(function () {\n\tvar bombList = []; // 炸掉的怪物坐标列表\n\tvar todo = []; // 炸弹后事件\n\tvar money = 0,\n\t\texp = 0; // 炸弹获得的金币和经验\n\n\tvar canBomb = function (x, y) {\n\t\tvar block = core.getBlock(x, y);\n\t\tif (block == null || block.disable || block.event.cls.indexOf('enemy') != 0) return false;\n\t\tvar enemy = core.material.enemys[block.event.id];\n\t\treturn enemy && !enemy.notBomb;\n\t};\n\n\tvar bomb = function (x, y) {\n\t\tif (!canBomb(x, y)) return;\n\t\tbombList.push([x, y]);\n\t\tvar id = core.getBlockId(x, y),\n\t\t\tenemy = core.material.enemys[id];\n\t\tmoney += core.getEnemyInfo(enemy, void 0, x, y).money\n\t\tcore.push(todo, core.floors[core.status.floorId].afterBattle[x + \",\" + y]);\n\t\tcore.push(todo, enemy.afterBattle);\n\t\tdelete((flags.enemyOnPoint || {})[core.status.floorId] || {})[x + \",\" + y];\n\t\tcore.removeBlock(x, y);\n\t}\n\n\t// 如果要多方向可炸把这里的false改成true\n\tif (true) {\n\t\tvar scan = core.utils.scan; // 多方向炸时默认四方向,如果要改成八方向炸可以改成 core.utils.scan2\n\t\tfor (var direction in scan) {\n\t\t\tvar delta = scan[direction];\n\t\t\tbomb(core.getHeroLoc('x') + delta.x, core.getHeroLoc('y') + delta.y);\n\t\t}\n\t} else {\n\t\t// 仅炸当前\n\t\tbomb(core.nextX(), core.nextY());\n\t}\n\n\tif (bombList.length == 0) {\n\t\tcore.playSound('操作失败');\n\t\tcore.drawTip('当前无法使用' + core.material.items[itemId].name, itemId);\n\t\tcore.addItem(itemId, 1);\n\t\treturn;\n\t}\n\n\tcore.playSound('炸弹');\n\tcore.drawTip(core.material.items[itemId].name + '使用成功', itemId);\n\n\t// 取消这里的注释可以炸弹后获得金币和经验\n\tcore.status.hero.money += money;\n\t//core.status.hero.exp += exp;\n\n\t// 取消这里的注释可以炸弹引发战后事件\n\tif (todo.length > 0) core.insertAction(todo);\n\n})();",
"canUseItemEffect": "true",
"hideInToolbox": true,
"hideInReplay": true
},
"centerFly": {
"cls": "tools",
"name": "对称飞行器",
"text": "可以飞向当前楼层中心对称的位置",
"useItemEffect": "core.playSound('centerFly.mp3');\ncore.clearMap('hero');\ncore.setHeroLoc('x', core.bigmap.width - 1 - core.getHeroLoc('x'));\ncore.setHeroLoc('y', core.bigmap.height - 1 - core.getHeroLoc('y'));\ncore.drawHero();\ncore.drawTip(core.material.items[itemId].name + '使用成功');",
"canUseItemEffect": "(function () {\n\tvar toX = core.bigmap.width - 1 - core.getHeroLoc('x'),\n\t\ttoY = core.bigmap.height - 1 - core.getHeroLoc('y');\n\tvar id = core.getBlockId(toX, toY);\n\treturn id == null;\n})();",
"hideInToolbox": true,
"hideInReplay": true,
"useItemEvent": null
},
"upFly": {
"cls": "tools",
"name": "上楼器",
"text": "可以飞往楼上的相同位置",
"useItemEffect": "(function () {\n\tvar floorId = core.floorIds[core.floorIds.indexOf(core.status.floorId) + 1];\n\tif (core.status.event.id == 'action') {\n\t\tcore.insertAction([\n\t\t\t{ \"type\": \"changeFloor\", \"loc\": [core.getHeroLoc('x'), core.getHeroLoc('y')], \"floorId\": floorId },\n\t\t\t{ \"type\": \"tip\", \"text\": core.material.items[itemId].name + '使用成功' }\n\t\t]);\n\t} else {\n\t\tcore.changeFloor(floorId, null, core.status.hero.loc, null, function () {\n\t\t\tcore.drawTip(core.material.items[itemId].name + '使用成功');\n\t\t\tcore.replay();\n\t\t});\n\t}\n})();",
"canUseItemEffect": "(function () {\n\tvar floorId = core.status.floorId,\n\t\tindex = core.floorIds.indexOf(floorId);\n\tif ([\"MT49\", \"MT50\", \"MAL49\", \"MAL50\", \"MAR49\", \"SC10_5\", \"SC20_5\", \"SC40_5\", \"SC49_5\"].includes(floorId)) return false;\n\tif (index < core.floorIds.length - 1) {\n\t\tvar toId = core.floorIds[index + 1],\n\t\t\ttoX = core.getHeroLoc('x'),\n\t\t\ttoY = core.getHeroLoc('y');\n\t\tvar mw = core.floors[toId].width,\n\t\t\tmh = core.floors[toId].height;\n\t\tif (toX >= 0 && toX < mw && toY >= 0 && toY < mh && core.getBlock(toX, toY, toId) == null) {\n\t\t\treturn true;\n\t\t}\n\t}\n\treturn false;\n})();",
"hideInToolbox": true,
"hideInReplay": true
},
"downFly": {
"cls": "tools",
"name": "下楼器",
"text": "可以飞往楼下的相同位置",
"useItemEffect": "(function () {\n\tvar floorId = core.floorIds[core.floorIds.indexOf(core.status.floorId) - 1];\n\tif (core.status.event.id == 'action') {\n\t\tcore.insertAction([\n\t\t\t{ \"type\": \"changeFloor\", \"loc\": [core.getHeroLoc('x'), core.getHeroLoc('y')], \"floorId\": floorId },\n\t\t\t{ \"type\": \"tip\", \"text\": core.material.items[itemId].name + '使用成功' }\n\t\t]);\n\t} else {\n\t\tcore.changeFloor(floorId, null, core.status.hero.loc, null, function () {\n\t\t\tcore.drawTip(core.material.items[itemId].name + '使用成功');\n\t\t\tcore.replay();\n\t\t});\n\t}\n})();",
"canUseItemEffect": "(function () {\n\tvar floorId = core.status.floorId,\n\t\tindex = core.floorIds.indexOf(floorId);\n\tif ([\"MT50\", \"MAL50\", \"MAR1\", \"MAC1\", \"SC50\"].includes(floorId)) return false;\n\tif (index > 0) {\n\t\tvar toId = core.floorIds[index - 1],\n\t\t\ttoX = core.getHeroLoc('x'),\n\t\t\ttoY = core.getHeroLoc('y');\n\t\tvar mw = core.floors[toId].width,\n\t\t\tmh = core.floors[toId].height;\n\t\tif (toX >= 0 && toX < mw && toY >= 0 && toY < mh && core.getBlock(toX, toY, toId) == null) {\n\t\t\treturn true;\n\t\t}\n\t}\n\treturn false;\n})();",
"hideInToolbox": true,
"hideInReplay": true
},
"earthquake": {
"cls": "tools",
"name": "地震卷轴",
"text": "可以破坏当前层的所有墙壁",
"useItemEffect": "(function () {\n\tcore.autosave();\n\tvar indexes = [];\n\tfor (var index in core.status.thisMap.blocks) {\n\t\tvar block = core.status.thisMap.blocks[index];\n\t\tif (!block.disable && block.event.canBreak) {\n\t\t\tindexes.push(index);\n\t\t}\n\t}\n\tcore.removeBlockByIndexes(indexes);\n\tcore.drawMap();\n\tcore.playSound('door.mp3');\n\tcore.drawTip(core.material.items[itemId].name + '使用成功');\n})();",
"canUseItemEffect": "(function () {\n\treturn core.status.thisMap.blocks.filter(function (block) {\n\t\treturn !block.disable && block.event.canBreak;\n\t}).length > 0;\n})();",
"hideInToolbox": true,
"hideInReplay": true
},
"poisonWine": {
"cls": "tools",
"name": "解毒药水",
"text": "可以解除中毒状态",
"useItemEffect": "core.triggerDebuff('remove', 'poison');",
"canUseItemEffect": "core.hasFlag('poison');"
},
"weakWine": {
"cls": "tools",
"name": "解衰药水",
"text": "可以解除衰弱状态",
"useItemEffect": "core.triggerDebuff('remove', 'weak');",
"canUseItemEffect": "core.hasFlag('weak');"
},
"curseWine": {
"cls": "tools",
"name": "解咒药水",
"text": "可以解除诅咒状态",
"useItemEffect": "core.triggerDebuff('remove', 'curse');",
"canUseItemEffect": "core.hasFlag('curse');"
},
"superWine": {
"cls": "tools",
"name": "万能药水",
"text": "可以解除所有不良状态",
"useItemEffect": "core.triggerDebuff('remove', ['poison', 'weak', 'curse']);",
"canUseItemEffect": "(function() {\n\treturn core.hasFlag('poison') || core.hasFlag('weak') || core.hasFlag('curse');\n})();"
},
"hammer": {
"cls": "tools",
"name": "圣锤",
"text": "该道具尚未被定义"
},
"lifeWand": {
"cls": "tools",
"name": "生命魔杖",
"text": "可以恢复100点生命值",
"useItemEvent": [
{
"type": "comment",
"text": "先恢复一个魔杖(因为使用道具必须消耗一个)"
},
{
"type": "function",
"function": "function(){\ncore.addItem('lifeWand', 1);\n}"
},
{
"type": "playSound",
"name": "打开界面"
},
{
"type": "input",
"text": "请输入生命魔杖使用次数:(0-${item:lifeWand})"
},
{
"type": "comment",
"text": "【接受用户输入】弹窗输入的结果将会保存在“flag:input”中\n如果需要更多帮助请查阅帮助文档"
},
{
"type": "if",
"condition": "flag:input<=item:lifeWand",
"true": [
{
"type": "setValue",
"name": "item:lifeWand",
"operator": "-=",
"value": "flag:input"
},
{
"type": "setValue",
"name": "status:hp",
"operator": "+=",
"value": "flag:input*100"
},
{
"type": "playSound",
"name": "回血"
},
"成功使用${flag:input}次生命魔杖,恢复${flag:input*100}点生命。"
],
"false": [
{
"type": "playSound",
"name": "操作失败"
},
"输入不合法!"
]
}
],
"canUseItemEffect": "true"
},
"jumpShoes": {
"cls": "tools",
"name": "跳跃靴",
"text": "能跳跃到前方两格处",
"useItemEffect": "core.playSound(\"跳跃\");\ncore.insertAction({ \"type\": \"jumpHero\", \"loc\": [core.nextX(2), core.nextY(2)] });",
"canUseItemEffect": "(function () {\n\tvar nx = core.nextX(2),\n\t\tny = core.nextY(2);\n\treturn nx >= 0 && nx < core.bigmap.width && ny >= 0 && ny < core.bigmap.height && core.getBlockId(nx, ny) == null;\n})();"
},
"skill1": {
"cls": "constants",
"name": "技能:二倍斩",
"text": "可以打开或关闭主动技能二倍斩",
"hideInReplay": true,
"useItemEffect": "(function () {\n\tvar skillValue = 1; // 技能的flag:skill值可用于当前开启技能的判定对于新技能可以依次改成23等等\n\tvar skillNeed = 5; // 技能的需求\n\tvar skillName = '二倍斩'; // 技能的名称\n\n\tif (core.getFlag('skill', 0) != skillValue) { // 判断当前是否已经开了技能\n\t\tif (core.getStatus('mana') >= skillNeed) { // 这里要写当前能否开技能的条件判断,比如魔力值至少要多少\n\t\t\tcore.playSound('打开界面');\n\t\t\tcore.setFlag('skill', skillValue); // 开技能1\n\t\t\tcore.setFlag('skillName', skillName); // 设置技能名\n\t\t} else {\n\t\t\tcore.playSound('操作失败');\n\t\t\tcore.drawTip('魔力不足,无法开启技能');\n\t\t}\n\t} else { // 关闭技能\n\t\tcore.setFlag('skill', 0); // 关闭技能状态\n\t\tcore.setFlag('skillName', '无');\n\t}\n})();",
"canUseItemEffect": "true"
},
"wand": {
"cls": "constants",
"name": "筹码列表",
"text": "查看你已获得的所有战斗筹码详细信息",
"itemEffect": null,
"canUseItemEffect": "true",
"hideInToolbox": false,
"hideInReplay": true,
"useItemEffect": "core.plugin.wand()",
"useItemEvent": null
},
"pack": {
"cls": "items",
"name": "钱袋",
"itemEffect": "core.status.hero.money += 500",
"itemEffectTip": ",金币+500"
},
"I300": {
"cls": "constants",
"name": "帮助",
"text": "使用后可以查看帮助",
"itemEffect": "core.insertCommonEvent(\"帮助\");",
"canUseItemEffect": "true",
"hideInToolbox": true,
"hideInReplay": true
},
"itembag": {
"cls": "items",
"name": "新物品",
"canUseItemEffect": "true"
},
"itemequip": {
"cls": "items",
"name": "新物品",
"canUseItemEffect": "true"
},
"I359": {
"cls": "items",
"name": "新物品",
"canUseItemEffect": "true"
},
"I360": {
"cls": "items",
"name": "新物品",
"canUseItemEffect": "true"
},
"I361": {
"cls": "items",
"name": "新物品",
"canUseItemEffect": "true"
},
"I362": {
"cls": "items",
"name": "新物品",
"canUseItemEffect": "true"
},
"I363": {
"cls": "items",
"name": "新物品",
"canUseItemEffect": "true"
},
"I383": {
"cls": "items",
"name": "新物品",
"canUseItemEffect": "true"
},
"I384": {
"cls": "items",
"name": "新物品",
"canUseItemEffect": "true"
},
"I385": {
"cls": "constants",
"name": "筹码图鉴",
"canUseItemEffect": "true",
"text": "查看筹码列表",
"useItemEvent": null,
"hideInToolbox": false,
"hideInReplay": true,
"useItemEffect": "core.plugin.Gallery()"
},
"I386": {
"cls": "items",
"name": "新物品",
"canUseItemEffect": "true"
},
"I387": {
"cls": "items",
"name": "新物品",
"canUseItemEffect": "true"
},
"battletoken": {
"cls": "items",
"name": "战斗筹码",
"canUseItemEffect": "true",
"itemEffect": null,
"useItemEvent": [
{
"type": "function",
"function": "function(){\ncore.plugin.drawToken()\n}"
}
]
},
"BankcardL": {
"cls": "items",
"name": "银行卡-余额少",
"canUseItemEffect": "true",
"useItemEffect": null,
"itemEffect": "flags.star.level += 15",
"text": "\\i[BuffStarlight]+15"
},
"BankcardH": {
"cls": "items",
"name": "银行卡-余额多",
"canUseItemEffect": "true",
"itemEffect": "flags.star.level += 25",
"text": "\\i[BuffStarlight]+25"
},
"BankcardU": {
"cls": "items",
"name": "银行卡-用不完",
"canUseItemEffect": "true",
"itemEffect": "flags.star.level += 8;\ncore.addItem(\"BankcardU2\")",
"text": "\\i[BuffStarlight]+8从怪物身上获得\\i[money]翻倍(可与\\i[coin]叠加至4倍)"
},
"BankcardU2": {
"cls": "constants",
"name": "银行卡-用不完",
"canUseItemEffect": "false",
"hideInToolbox": true,
"hideInReplay": true
},
"CursedSword": {
"cls": "constants",
"name": "诅咒之剑",
"canUseItemEffect": "false",
"hideInToolbox": true,
"text": "每进行10次战斗\\i[atk]+\\i[stars]\\i[def]-1\\n如果受到的战斗伤害大于125×\\i[stars]视为进行了10次战斗并重置次数"
},
"AdrenalineR": {
"cls": "constants",
"name": "肾上腺素-一般",
"canUseItemEffect": "false",
"text": "若当前\\i[hp]<=125×\\i[stars],伤害计算时\\i[atk]+30倍\\i[stars]",
"hideInToolbox": true
},
"AdrenalineH": {
"cls": "constants",
"name": "肾上腺素-高效",
"canUseItemEffect": "false",
"text": "若当前\\i[hp]<=125×\\i[stars],伤害计算时\\i[atk]+80倍\\i[stars]",
"hideInToolbox": true
},
"BoxingGlovesB": {
"cls": "items",
"name": "拳击手套-初级",
"text": "\\i[atk]+10×\\i[stars]的算术平方根(魔法学院翻倍)",
"equip": null,
"itemEffect": "core.status.hero.atk += Math.floor(10 * Math.sqrt(flags.ratio));\nif (flags.MapStatus?.Map === \"魔法学院\") core.status.hero.atk += Math.floor(10 * Math.sqrt(flags.ratio));",
"itemEffectTip": null
},
"BoxingGlovesE": {
"cls": "items",
"name": "拳击手套-高级",
"text": "\\i[atk]+50×\\i[stars]的算术平方根(魔法学院翻倍)",
"equip": null,
"itemEffect": "core.status.hero.atk += Math.floor(50 * Math.sqrt(flags.ratio));\nif (flags.MapStatus?.Map === \"魔法学院\") core.status.hero.atk += Math.floor(50 * Math.sqrt(flags.ratio));",
"itemEffectTip": null
},
"MotorcycleHelmetG": {
"cls": "items",
"name": "摩托头盔-中级",
"text": "\\i[def]+40×\\i[stars]的算术平方根(魔法学院翻倍)",
"equip": null,
"itemEffect": "core.status.hero.def += Math.floor(40 * Math.sqrt(flags.ratio));\nif (flags.MapStatus?.Map === \"魔法学院\") core.status.hero.def += Math.floor(40 * Math.sqrt(flags.ratio));",
"itemEffectTip": null
},
"MotorcycleHelmetE": {
"cls": "items",
"name": "摩托头盔-高级",
"text": "\\i[def]+80×\\i[stars]的算术平方根(魔法学院翻倍)",
"equip": null,
"itemEffect": "core.status.hero.def += Math.floor(80 * Math.sqrt(flags.ratio));\nif (flags.MapStatus?.Map === \"魔法学院\") core.status.hero.def += Math.floor(80 * Math.sqrt(flags.ratio));",
"itemEffectTip": null
},
"MotorcycleHelmetB": {
"cls": "items",
"name": "摩托头盔-一般",
"text": "\\i[def]+20×\\i[stars]的算术平方根(魔法学院翻倍)",
"equip": null,
"itemEffect": "core.status.hero.def += Math.floor(20 * Math.sqrt(flags.ratio));\nif (flags.MapStatus?.Map === \"魔法学院\") core.status.hero.def += Math.floor(20 * Math.sqrt(flags.ratio));",
"itemEffectTip": null
},
"BoxingGlovesG": {
"cls": "items",
"name": "拳击手套-中级",
"text": "\\i[atk]+30×\\i[stars]的算术平方根(魔法学院翻倍)",
"equip": null,
"itemEffect": "core.status.hero.atk += Math.floor(30 * Math.sqrt(flags.ratio));\nif (flags.MapStatus?.Map === \"魔法学院\") core.status.hero.atk += Math.floor(30 * Math.sqrt(flags.ratio));",
"itemEffectTip": null
},
"MedicalKitE": {
"cls": "items",
"name": "医疗箱-紧急治疗",
"canUseItemEffect": "true",
"itemEffect": "flags.health.upbuff += 12",
"text": "战后,\\i[BuffHealth]+12"
},
"MedicalKitC": {
"cls": "items",
"name": "医疗箱-完备治疗",
"canUseItemEffect": "true",
"itemEffect": "flags.health.upbuff += 30",
"text": "战后,\\i[BuffHealth]+30"
},
"MembershipLetterB": {
"cls": "items",
"name": "会员推荐信-一般",
"canUseItemEffect": "true",
"itemEffect": "core.addFlag(\"折扣\", -4)",
"text": "\\i[shop]价格-20%"
},
"MembershipLetterV": {
"cls": "items",
"name": "会员推荐信-高级",
"canUseItemEffect": "true",
"itemEffect": "core.addFlag(\"折扣\", 4)\ncore.addItem(\"MembershipLetterV2\")",
"text": "\\i[shop]效果翻倍但价格+20%"
},
"PiggyBank": {
"cls": "constants",
"name": "小猪存钱罐",
"canUseItemEffect": "false",
"text": "在\\i[shop]购物后,获得一次星光奖励的\\i[money]",
"hideInToolbox": true
},
"RollerSkates": {
"cls": "constants",
"name": "速度轮滑",
"canUseItemEffect": "false",
"text": "获得二连击",
"hideInToolbox": true
},
"VitaminPills": {
"cls": "constants",
"name": "维生素药丸",
"canUseItemEffect": "false",
"text": "在\\i[shop]购物时,\\i[BuffHealth]+10\\i[BuffHealth]的保留效果提升至75%",
"hideInToolbox": true
},
"FriendshipBadge": {
"cls": "constants",
"name": "友情徽章",
"canUseItemEffect": "false",
"text": "与\\i[woman]交易前可消耗\\i[BuffStarlight]进行一次额外交易,每个\\i[woman]限一次",
"hideInToolbox": true
},
"UtilityKnifeS": {
"cls": "items",
"name": "美工刀-锋利",
"canUseItemEffect": "true",
"itemEffect": "core.status.hero.atk += 35;\ncore.addItem(\"UtilityKnifeS2\")",
"text": "\\i[atk]+35若\\i[hp]>=800×\\i[stars],伤害计算时\\i[atk]提升\\i[BuffHealth]×\\i[stars]的算术平方根"
},
"UtilityKnifeS2": {
"cls": "constants",
"name": "美工刀-锋利",
"canUseItemEffect": "false",
"hideInToolbox": true
},
"UtilityKnifeB": {
"cls": "items",
"name": "美工刀-一般",
"canUseItemEffect": "true",
"itemEffect": "core.status.hero.atk += 15;\ncore.addItem(\"UtilityKnifeB2\")",
"text": "\\i[atk]+15若\\i[hp]>=1000×\\i[stars],伤害计算时\\i[atk]提升\\i[BuffHealth]×\\i[stars]的算术平方根"
},
"UtilityKnifeB2": {
"cls": "constants",
"name": "美工刀-一般",
"canUseItemEffect": "true",
"hideInToolbox": true
},
"redGem2": {
"cls": "items",
"name": "2级红宝石",
"canUseItemEffect": "true",
"itemEffect": null
},
"redGem3": {
"cls": "items",
"name": "3级红宝石",
"canUseItemEffect": "true"
},
"redGem4": {
"cls": "items",
"name": "4级红宝石",
"canUseItemEffect": "true"
},
"blueGem2": {
"cls": "items",
"name": "2级蓝宝石",
"canUseItemEffect": "true"
},
"blueGem3": {
"cls": "items",
"name": "3级蓝宝石",
"canUseItemEffect": "true"
},
"blueGem4": {
"cls": "items",
"name": "4级蓝宝石",
"canUseItemEffect": "true"
},
"StarCoinHammer": {
"cls": "items",
"name": "星币锤",
"canUseItemEffect": "true",
"itemEffect": "flags.star.level += 7;\ncore.addItem(\"StarCoinHammer2\")\nflags.StarCoinHammer = false",
"text": "\\i[BuffStarlight]+7可消耗100×\\i[stars]的\\i[money](魔法学院消耗X3),伤害计算时获得\\i[money]×\\i[stars]%(魔法学院效果-90%)的\\i[atk](上限1000×\\i[stars])\\n开启/关闭需消耗1\\i[BuffStarlight]"
},
"StarCoinHammer2": {
"cls": "constants",
"name": "星币锤",
"canUseItemEffect": "true",
"hideInToolbox": true,
"useItemEffect": "if (flags.star.level > 0) {\n\tflags.star.level--\n\tflags.StarCoinHammer = !flags.StarCoinHammer\n} else core.drawTip(\"当前暂无星光\")",
"text": "\\i[BuffStarlight]+7可消耗100×\\i[stars]的\\i[money](魔法学院消耗X3),伤害计算时获得\\i[money]×\\i[stars]%(魔法学院效果-90%)的\\i[atk](上限1000×\\i[stars])\\n开启/关闭需消耗1\\i[BuffStarlight]"
},
"FlashlightS": {
"cls": "items",
"name": "手电筒-爆闪",
"canUseItemEffect": "true",
"itemEffect": "flags.star.level += 5;\ncore.addItem(\"FlashlightS2\")",
"text": "\\i[BuffStarlight]+5伤害计算时\\i[atk]提升\\i[BuffStarlight]×\\i[stars]的算术平方根"
},
"FlashlightB": {
"cls": "constants",
"name": "手电筒-强光",
"canUseItemEffect": "false",
"text": "获得星光奖励时,\\i[BuffStarlight]+1",
"hideInToolbox": true
},
"FlashlightS2": {
"cls": "constants",
"name": "手电筒-爆闪",
"canUseItemEffect": "true",
"hideInToolbox": true
},
"Dice8": {
"cls": "constants",
"name": "“8面”骰子",
"canUseItemEffect": "true",
"hideInToolbox": true,
"text": "到达新楼层时\\i[BuffStarlight]+1\\n受到的伤害为8的正整数倍时获得8倍\\i[stars]的\\i[money],\\i[def]提升\\i[stars]算术平方根",
"hideInReplay": false
},
"SandwichCookieD": {
"cls": "items",
"name": "夹心饼干-美味",
"canUseItemEffect": "true",
"itemEffect": "hero.hp += 10000\nif (flags.MapStatus?.Map === \"魔法学院\") hero.hp += 10000\nflags.SandwichCookieD = true",
"text": "\\i[hp]+10000进入最终楼层时\\i[hp]×2(魔法学院再生效一次)"
},
"SandwichCookieT": {
"cls": "items",
"name": "夹心饼干-可口",
"canUseItemEffect": "true",
"itemEffect": "hero.hp += 3000\nif (flags.MapStatus?.Map === \"魔法学院\") hero.hp += 3000\nflags.SandwichCookieT = true",
"text": "\\i[hp]+3000进入最终楼层时\\i[hp]×1.4(魔法学院再生效一次)"
},
"SandwichCookieR": {
"cls": "items",
"name": "夹心饼干-一般",
"canUseItemEffect": "true",
"itemEffect": "hero.hp += 1500\nif (flags.MapStatus?.Map === \"魔法学院\") hero.hp += 1500",
"text": "\\i[hp]+1500(魔法学院翻倍)"
},
"Backpack": {
"cls": "constants",
"name": "大背包",
"canUseItemEffect": "true",
"text": "从\\i[woman]\\i[Parunan]获得的东西翻倍",
"hideInReplay": false,
"hideInToolbox": true
},
"tripleYellowKey": {
"cls": "items",
"name": "一串黄钥匙",
"canUseItemEffect": "true",
"itemEffectTip": ",黄钥匙+3",
"itemEffect": "core.addItem(\"yellowKey\", 3)"
},
"TargetBoard": {
"cls": "constants",
"name": "标靶",
"canUseItemEffect": "false",
"text": "战后,同楼层其他怪物\\i[BuffMark]+2",
"hideInToolbox": true
},
"EagleEyeSight": {
"cls": "constants",
"name": "鹰眼瞄具",
"canUseItemEffect": "false",
"text": "与怪物战斗时先附加3层\\i[BuffMark]伤害计算时防御力提升2×\\i[BuffMark]×\\i[stars]",
"hideInToolbox": true
},
"PiercingGun": {
"cls": "constants",
"name": "贯穿之铳",
"canUseItemEffect": "false",
"text": "怪物防御减少75%(魔法学院改为50%)",
"hideInToolbox": true
},
"SprayCanR": {
"cls": "items",
"name": "标记喷罐-存量少",
"canUseItemEffect": "true",
"text": "除\\i[N397]\\i[N398]\\i[redKing]和\\i[Gawu]家族外所有怪物附加8\\i[BuffMark]",
"itemEffect": "[\"greenSlime\", \"redSlime\", \"blackSlime\", \"slimelord\", \"slimeMan\", \"bat\", \"bigBat\", \"redBat\", \"vampire\", \"zombie\", \"zombieKnight\", \"skeleton\", \"skeletonSoilder\", \"skeletonCaptain\", \"ghostSkeleton\", \"bluePriest\", \"redPriest\", \"brownWizard\", \"redWizard\", \"blackKing\", \"whiteKing\", \"blackMagician\", \"swordsman\", \"soldier\", \"yellowKnight\", \"redKnight\", \"darkKnight\", \"rock\", \"yellowGuard\", \"blueGuard\", \"redGuard\", \"Thief\", \"SharkPirate\", \"KaniBro\", \"Loudmouth\", \"Trainee\", \"GoldenFish\", \"EbiBro\"].forEach(v => flags.race[v] = 8 + (flags.race[v] ?? 0))"
},
"SprayCanL": {
"cls": "items",
"name": "标记喷罐-存量多",
"canUseItemEffect": "true",
"text": "除\\i[N397]\\i[N398]\\i[redKing]和\\i[Gawu]家族外所有怪物附加16\\i[BuffMark]",
"itemEffect": "[\"greenSlime\", \"redSlime\", \"blackSlime\", \"slimelord\", \"slimeMan\", \"bat\", \"bigBat\", \"redBat\", \"vampire\", \"zombie\", \"zombieKnight\", \"skeleton\", \"skeletonSoilder\", \"skeletonCaptain\", \"ghostSkeleton\", \"bluePriest\", \"redPriest\", \"brownWizard\", \"redWizard\", \"blackKing\", \"whiteKing\", \"blackMagician\", \"swordsman\", \"soldier\", \"yellowKnight\", \"redKnight\", \"darkKnight\", \"rock\", \"yellowGuard\", \"blueGuard\", \"redGuard\", \"Thief\", \"SharkPirate\", \"KaniBro\", \"Loudmouth\", \"Trainee\", \"GoldenFish\", \"EbiBro\"].forEach(v => flags.race[v] = 16 + (flags.race[v] ?? 0))"
},
"SprayCanN": {
"cls": "items",
"name": "标记喷罐-未拆封",
"canUseItemEffect": "true",
"text": "除\\i[N397]\\i[N398]\\i[redKing]和\\i[Gawu]家族外所有怪物附加40\\i[BuffMark]",
"itemEffect": "[\"greenSlime\", \"redSlime\", \"blackSlime\", \"slimelord\", \"slimeMan\", \"bat\", \"bigBat\", \"redBat\", \"vampire\", \"zombie\", \"zombieKnight\", \"skeleton\", \"skeletonSoilder\", \"skeletonCaptain\", \"ghostSkeleton\", \"bluePriest\", \"redPriest\", \"brownWizard\", \"redWizard\", \"blackKing\", \"whiteKing\", \"blackMagician\", \"swordsman\", \"soldier\", \"yellowKnight\", \"redKnight\", \"darkKnight\", \"rock\", \"yellowGuard\", \"blueGuard\", \"redGuard\", \"Thief\", \"SharkPirate\", \"KaniBro\", \"Loudmouth\", \"Trainee\", \"GoldenFish\", \"EbiBro\"].forEach(v => flags.race[v] = 40 + (flags.race[v] ?? 0))"
},
"BufferShieldP": {
"cls": "items",
"name": "缓冲盾牌-完美",
"canUseItemEffect": "true",
"hideInToolbox": true,
"text": "\\i[def]+35。受到的战斗伤害减少\\i[def]×\\i[BuffHealth]÷(\\i[stars]×75)%百分比减伤加算上限75%",
"itemEffect": "hero.def += 35\ncore.addItem(\"BufferShieldP2\")"
},
"MembershipLetterV2": {
"cls": "constants",
"name": "会员推荐信-高级",
"canUseItemEffect": "false",
"text": "",
"itemEffectTip": null,
"itemEffect": "",
"hideInToolbox": true
},
"BufferShieldR": {
"cls": "items",
"name": "缓冲盾牌-一般",
"canUseItemEffect": "true",
"text": "\\i[def]+15。受到的战斗伤害减少(\\i[def]×(\\i[BuffHealth]+1)÷15倍\\i[stars])",
"itemEffect": "hero.def += 15\ncore.addItem(\"BufferShieldR2\")"
},
"BufferShieldR2": {
"cls": "constants",
"name": "缓冲盾牌-一般",
"canUseItemEffect": "false",
"text": null,
"itemEffect": null,
"hideInToolbox": true
},
"BufferShieldP2": {
"cls": "constants",
"name": "缓冲盾牌-完美",
"canUseItemEffect": "false",
"hideInToolbox": true
},
"ATM": {
"cls": "items",
"name": "ATM机",
"text": "获得1~3个\\i[battletoken]",
"equip": null,
"itemEffect": "let tokenrandom, k\nlet haschip = [...core.getFlag(\"hasChip\")]\nconst j = core.rand(3) + 1\nfor (i = 0; i < j; i++) {\n\ttokenrandom = [...core.plugin.chip].filter(v => !haschip.includes(v))\n\tk = core.rand(100000) % tokenrandom.length\n\ttokenrandom = tokenrandom[k]\n\tcore.getItem(tokenrandom)\n\tflags.hasChip.push(tokenrandom)\n\thaschip.push(tokenrandom)\n}",
"itemEffectTip": null
},
"MagicTome": {
"cls": "constants",
"name": "魔法秘典",
"text": "每5场战斗后获得一张无消耗的高升炮",
"equip": null,
"itemEffect": null,
"itemEffectTip": null,
"canUseItemEffect": "false",
"hideInToolbox": true
},
"ExtraBatteryR": {
"cls": "items",
"name": "额外电池-一般",
"canUseItemEffect": "true",
"text": "技能冷却-10",
"itemEffect": "hero.ActiveSkillCD -= 10\nif (hero.ActiveCD <= 10) hero.ActiveCD = 0\nelse hero.ActiveCD -= 10"
},
"ExtraBatteryC": {
"cls": "constants",
"name": "额外电池-蓄能",
"canUseItemEffect": "true",
"text": "战后技能冷却额外-1",
"itemEffect": null
},
"TeaCake": {
"cls": "constants",
"name": "佐茶蛋糕",
"text": "\\i[redPotion]\\i[bluePotion]\\i[yellowPotion]\\i[greenPotion]+50%",
"equip": null,
"itemEffect": null,
"itemEffectTip": null,
"canUseItemEffect": "false",
"hideInToolbox": true
},
"Candy": {
"cls": "constants",
"name": "可口糖果",
"canUseItemEffect": "false",
"hideInToolbox": true,
"text": "出牌后\\i[BuffHealth]+10。如果\\i[BuffHealth]>=100且\\i[hp]<=1000倍\\i[stars]失去100\\i[BuffHealth]并回复200倍\\i[stars]的\\i[hp]"
},
"GourmetStew": {
"cls": "constants",
"name": "大碗炖肉",
"canUseItemEffect": "false",
"text": "到达新楼层时战后获得的\\i[BuffHealth]+1",
"hideInToolbox": true
},
"HandheldFanS": {
"cls": "constants",
"name": "手持风扇-小",
"canUseItemEffect": "false",
"text": "使用技能后\\i[cost]+3",
"hideInToolbox": true
},
"HandheldFanL": {
"cls": "constants",
"name": "手持风扇-大",
"canUseItemEffect": "false",
"text": "使用技能后,\\i[cost]回满,\\i[card]+3",
"hideInToolbox": true
},
"MagicQuiver": {
"cls": "constants",
"name": "魔法箭袋",
"canUseItemEffect": "false",
"hideInToolbox": true,
"text": "对\\i[BuffMark]>=8的怪物使用卡牌后\\i[card]+1"
},
"NinjaThrowingDarts": {
"cls": "constants",
"name": "忍术飞镖",
"canUseItemEffect": "false",
"hideInToolbox": true,
"text": "出牌后,除\\i[N397]\\i[N398]和\\i[Gawu]家族外所有怪物附加1\\i[BuffMark]"
},
"RevengeHalberd": {
"cls": "constants",
"name": "复仇之戟",
"canUseItemEffect": "false",
"text": "每累计受到1000伤害最终攻击力+1%",
"hideInToolbox": true
},
"Smartwatch": {
"cls": "constants",
"name": "智能手表",
"canUseItemEffect": "false",
"text": "战后若手牌<5\\i[card]+1",
"hideInToolbox": true
},
"AncientStaff": {
"cls": "items",
"name": "古老法杖",
"canUseItemEffect": "true",
"itemEffect": "hero.cost++\nhero.costmax++\ncore.addItem(\"AncientStaff2\")",
"text": "\\i[cost]上限+1卡牌\\i[cost]消耗-1"
},
"AncientStaff2": {
"cls": "constants",
"name": "古老法杖",
"canUseItemEffect": "false",
"hideInToolbox": true
},
"cardbag": {
"cls": "items",
"name": "卡牌袋",
"canUseItemEffect": "true",
"useItemEvent": [
{
"type": "choices",
"text": "\t[神秘学者,oldMan]请选择以下一项增益",
"choices": [
{
"text": "回复全部cost",
"action": [
{
"type": "setValue",
"name": "status:cost",
"value": "status:costmax"
}
]
},
{
"text": "回复${flags.ratio*1000}生命",
"action": [
{
"type": "setValue",
"name": "status:hp",
"operator": "+=",
"value": "1000*flags.ratio"
}
]
},
{
"text": "抽3张牌",
"action": [
{
"type": "function",
"function": "function(){\ncore.drawFolds([core.plugin.card.cardList[core.randcard()], core.plugin.card.cardList[core.randcard()], core.plugin.card.cardList[core.randcard()]])\n}"
}
]
}
]
}
]
},
"PremiumSwordShield": {
"cls": "items",
"name": "精品剑盾",
"canUseItemEffect": "true",
"text": "\\i[atk]\\i[def]+20。每拥有1个\\i[battletoken],最终\\i[atk]+2%,最终\\i[def]+5%",
"itemEffect": "hero.atk += 20;\nhero.def += 20;\ncore.addItem(\"PremiumSwordShield2\")",
"hideInToolbox": true,
"hideInReplay": true
},
"PremiumSwordShield2": {
"cls": "constants",
"name": "精品剑盾",
"canUseItemEffect": "false",
"hideInReplay": true,
"hideInToolbox": true
},
"card": {
"cls": "items",
"name": "新物品",
"canUseItemEffect": "true"
},
"cost": {
"cls": "items",
"name": "新物品",
"canUseItemEffect": "true"
},
"reset": {
"cls": "items",
"name": "新物品",
"canUseItemEffect": "true"
},
"stars": {
"cls": "items",
"name": "新物品",
"canUseItemEffect": "true"
},
"NormalSight": {
"cls": "constants",
"name": "普通瞄具",
"canUseItemEffect": "false",
"text": "与怪物战斗时先附加2层\\i[BuffMark]伤害计算时防御力提升2×\\i[BuffMark]",
"hideInToolbox": true,
"hideInReplay": true
},
"DreamlinerModel": {
"cls": "constants",
"name": "梦想号模型",
"canUseItemEffect": "false",
"text": "每累计战斗15回合技能冷却-1",
"hideInToolbox": true,
"hideInReplay": true
},
"Trident": {
"cls": "constants",
"name": "三叉戟",
"canUseItemEffect": "false",
"text": "发动技能后,本局游戏最终\\i[atk]+3%,最终\\i[def]+5%",
"hideInToolbox": true,
"hideInReplay": true
},
"Magnifier": {
"cls": "items",
"name": "放大镜",
"canUseItemEffect": "true",
"text": "快捷商店新增事件卡商店",
"hideInToolbox": true,
"hideInReplay": true,
"itemEffect": "flags.Magnifier = 0\ncore.setShopVisited(\"Eventshop\", true)"
},
"FoxMask": {
"cls": "constants",
"name": "狐狸面具",
"canUseItemEffect": "true",
"text": "若出牌后消耗\\i[cost]>=2\\i[atk]和\\i[def]提升\\i[stars]数值"
}
}