var items_296f5d02_12fd_4166_a7c1_b5e830c9ee3a = { "yellowKey": { "cls": "tools", "name": "黄钥匙", "text": "可以打开一扇黄门", "hideInToolbox": true }, "blueKey": { "cls": "tools", "name": "蓝钥匙", "text": "可以打开一扇蓝门", "hideInToolbox": true }, "redKey": { "cls": "tools", "name": "红钥匙", "text": "可以打开一扇红门", "hideInToolbox": true }, "redGem": { "cls": "items", "name": "红宝石", "canUseItemEffect": "true", "itemEffectTip": "攻击力提升", "itemEffect": "core.status.hero.hp += 0;\ncore.status.hero.atk += 1;\ncore.status.hero.def += 0;\ncore.status.hero.mdef += 0;\nif (flags.heroId == 1)\n\thero.atk -= 1;" }, "blueGem": { "cls": "items", "name": "蓝宝石", "canUseItemEffect": "true", "itemEffectTip": "防御力提升", "itemEffect": "core.status.hero.hp += 0;\ncore.status.hero.atk += 0;\ncore.status.hero.def += 1;\ncore.status.hero.mdef += 0;\nif (flags.heroId == 1)\n\thero.def -= 1;" }, "greenGem": { "cls": "items", "name": "绿宝石", "canUseItemEffect": "true", "itemEffectTip": "魔防提升", "itemEffect": "core.status.hero.hp += 0;\ncore.status.hero.atk += 0;\ncore.status.hero.def += 0;\ncore.status.hero.mdef += 1;\nif (flags.heroId == 1)\n\thero.mdef -= 1;" }, "yellowGem": { "cls": "items", "name": "黄宝石", "text": "全属性提升", "itemEffect": "core.status.hero.hp += 0;\ncore.status.hero.atk += 1;\ncore.status.hero.def += 1;\ncore.status.hero.mdef += 1;\nif (flags.heroId == 1)\n\thero.mdef -= 1;", "itemEffectTip": ",全属性提升", "useItemEvent": null, "canUseItemEffect": "true" }, "redPotion": { "cls": "items", "name": "红血瓶", "canUseItemEffect": "true", "itemEffect": "core.status.hero.hp += 75;\nif (core.getFlag(\"hard\") == 1)\n\thero.hp += 25;\nif (core.getFlag(\"hard\") == 3)\n\thero.hp -= 25;", "itemEffectTip": "恢复生命值" }, "bluePotion": { "cls": "items", "name": "蓝血瓶", "canUseItemEffect": "true", "itemEffect": "core.status.hero.hp += 100;\nif (core.getFlag(\"hard\") == 1)\n\thero.hp += 25;\nif (core.getFlag(\"hard\") == 3)\n\thero.hp -= 25;", "itemEffectTip": "恢复生命值" }, "yellowPotion": { "cls": "items", "name": "黄血瓶", "canUseItemEffect": "true", "itemEffect": "core.status.hero.hp += 200;\nif (core.getFlag(\"hard\") == 1)\n\thero.hp += 50;\nif (core.getFlag(\"hard\") == 3)\n\thero.hp -= 50;", "itemEffectTip": "恢复生命值" }, "greenPotion": { "cls": "items", "name": "绿血瓶", "canUseItemEffect": "true", "itemEffect": "core.status.hero.hp += 300;\nif (core.getFlag(\"hard\") == 1)\n\thero.hp += 50;\nif (core.getFlag(\"hard\") == 3)\n\thero.hp -= 100;", "itemEffectTip": "恢复生命值" }, "sword0": { "cls": "items", "name": "破旧的剑", "text": "一把已经生锈的剑", "equip": null, "itemEffect": "core.status.hero.atk += 2", "itemEffectTip": "" }, "sword1": { "cls": "items", "name": "铁剑", "text": "", "equip": null, "itemEffect": "core.status.hero.atk += 5", "itemEffectTip": "攻击提升" }, "sword2": { "cls": "items", "name": "银剑", "text": "", "equip": null, "itemEffect": "core.status.hero.atk += 20", "itemEffectTip": "攻击提升" }, "sword3": { "cls": "items", "name": "骑士剑", "text": "", "equip": null, "itemEffect": "core.status.hero.atk += 40", "itemEffectTip": "攻击提升" }, "sword4": { "cls": "items", "name": "圣剑", "text": "", "equip": null, "itemEffect": "core.status.hero.atk += 50", "itemEffectTip": "攻击提升" }, "sword5": { "cls": "items", "name": "神圣剑", "text": "", "equip": null, "itemEffect": "core.status.hero.atk += 100", "itemEffectTip": "攻击提升" }, "shield0": { "cls": "items", "name": "破旧的盾", "text": "一个已破旧的盾牌", "equip": null, "itemEffect": "core.status.hero.def += 2", "itemEffectTip": "" }, "shield1": { "cls": "items", "name": "铁盾", "text": "", "equip": null, "itemEffect": "core.status.hero.def += 5", "itemEffectTip": "防御提升" }, "shield2": { "cls": "items", "name": "银盾", "text": "", "equip": null, "itemEffect": "core.status.hero.def += 50", "itemEffectTip": "防御提升" }, "shield3": { "cls": "items", "name": "骑士盾", "text": "", "equip": null, "itemEffect": "core.status.hero.def += 40", "itemEffectTip": "防御提升" }, "shield4": { "cls": "items", "name": "圣盾", "text": "", "equip": null, "itemEffect": "core.status.hero.def += 5", "itemEffectTip": "防御提升" }, "shield5": { "cls": "items", "name": "神圣盾", "text": "", "equip": null, "itemEffect": "core.status.hero.def += 100", "itemEffectTip": "防御提升" }, "superPotion": { "cls": "items", "name": "圣水", "itemEffect": "core.status.hero.hp *= 2", "itemEffectTip": ",生命值翻倍", "useItemEffect": "core.status.hero.hp *= 2;core.playSound('回血');", "canUseItemEffect": "true", "text": "生命值翻倍" }, "book": { "cls": "constants", "name": "心灵宝典", "text": "可以查看当前楼层各怪物属性", "hideInToolbox": true, "useItemEffect": "core.ui.drawBook(0);", "canUseItemEffect": "true" }, "fly": { "cls": "constants", "name": "楼层传送器", "text": "可以自由往来去过的楼层", "hideInReplay": true, "hideInToolbox": true, "useItemEffect": "core.ui.drawFly(core.floorIds.indexOf(core.status.floorId));", "canUseItemEffect": "(function () {\n\tif (core.flags.flyNearStair && !core.nearStair()) return false;\n\treturn core.status.maps[core.status.floorId].canFlyFrom;\n})();" }, "coin": { "cls": "constants", "name": "幸运金币", "text": "持有时打败怪物可得双倍金币" }, "freezeBadge": { "cls": "constants", "name": "冰冻徽章", "text": "可以将面前的熔岩变成平地", "useItemEffect": "(function () {\n\tvar success = false;\n\n\tvar snowFourDirections = false; // 是否多方向雪花;如果是将其改成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" }, "cross": { "cls": "constants", "name": "十字架", "text": "持有后无视怪物的无敌属性" }, "dagger": { "cls": "constants", "name": "屠龙匕首", "text": "该道具尚未被定义" }, "amulet": { "cls": "constants", "name": "护符", "text": "持有时无视负面地形" }, "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})();" }, "greenKey": { "cls": "tools", "name": "绿钥匙", "text": "可以打开一扇绿门" }, "steelKey": { "cls": "tools", "name": "万能钥匙", "text": "可以转换成任意钥匙", "useItemEvent": [ { "type": "confirm", "text": "确认要转换吗?", "yes": [ { "type": "choices", "text": "\t[万能钥匙,steelKey]选择转换", "choices": [ { "text": "黄钥匙", "action": [ { "type": "setValue", "name": "item:yellowKey", "operator": "+=", "value": "1" } ] }, { "text": "蓝钥匙", "action": [ { "type": "setValue", "name": "item:blueKey", "operator": "+=", "value": "1" } ] }, { "text": "红钥匙", "action": [ { "type": "setValue", "name": "item:redKey", "operator": "+=", "value": "1" } ] }, { "text": "绿钥匙", "action": [ { "type": "setValue", "name": "item:greenKey", "operator": "+=", "value": "1" } ] }, { "text": "不换啦", "action": [ { "type": "setValue", "name": "item:steelKey", "operator": "+=", "value": "1" } ] } ] } ], "no": [ { "type": "setValue", "name": "item:steelKey", "operator": "+=", "value": "1" } ] } ], "canUseItemEffect": 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 = false; // 是否多方向破;如果是将其改成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\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.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" }, "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})();" }, "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.getEnemyValue(enemy, 'money', x, y) || 0;\n\t\texp += core.getEnemyValue(enemy, 'exp', x, y) || 0;\n\t\tcore.push(todo, core.floors[core.status.floorId].afterBattle[x + \",\" + y]);\n\t\tcore.push(todo, enemy.afterBattle);\n\t\tcore.removeBlock(x, y);\n\t}\n\n\t// 如果要多方向可炸,把这里的false改成true\n\tif (false) {\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\t// core.status.hero.money += money;\n\t// core.status.hero.exp += exp;\n\n\t// 取消这里的注释可以炸弹引发战后事件\n\t// if (todo.length > 0) core.insertAction(todo);\n\n})();", "canUseItemEffect": "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})();" }, "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 (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})();" }, "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 (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})();" }, "earthquake": { "cls": "tools", "name": "地震卷轴", "text": "可以破坏当前层的所有墙", "useItemEffect": "(function () {\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.redrawMap();\n\tcore.playSound('炸弹');\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})();" }, "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值,可用于当前开启技能的判定;对于新技能可以依次改成2,3等等\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": "可以切换角色", "useItemEffect": "core.changeHero()", "canUseItemEffect": "ture" }, "pack": { "cls": "items", "name": "钱袋", "itemEffect": "core.status.hero.money += 500", "itemEffectTip": ",金币+500" }, "I331": { "cls": "items", "name": "新物品", "canUseItemEffect": "true" }, "I332": { "cls": "constants", "name": "血瓶数据显示", "canUseItemEffect": "true", "useItemEvent": [ { "type": "confirm", "text": "是否开启血瓶宝石显示数据(默认开启)", "yes": [ { "type": "setValue", "name": "flag:itemDetail", "value": "true" } ], "no": [ { "type": "setValue", "name": "flag:itemDetail", "value": "false" } ] } ], "text": "开启或关闭血瓶数据显示" }, "I333": { "cls": "items", "name": "新物品", "canUseItemEffect": "true" }, "I334": { "cls": "items", "name": "新物品", "canUseItemEffect": "true" }, "I335": { "cls": "items", "name": "新物品", "canUseItemEffect": "true" }, "I336": { "cls": "constants", "name": "切换角色(男)", "canUseItemEffect": "true", "useItemEffect": "core.changeHero(0)\ncore.setGlobalAttribute('equipName', '[\"武器\",\"盾牌\",\"卷轴\",\"卷轴\",\"卷轴\",\"卷轴\",\"卷轴\",\"卷轴\",\"卷轴\"]')", "text": "可以切换成男主角", "useItemEvent": [ { "type": "setValue", "name": "item:I372", "value": "0" } ] }, "I337": { "cls": "constants", "name": "切换角色(女)", "canUseItemEffect": "true", "useItemEvent": [ { "type": "setValue", "name": "item:I372", "value": "1", "norefresh": true } ], "useItemEffect": "core.changeHero(1)\ncore.setGlobalAttribute('equipName', '[]')", "text": "可以切换为女主角" }, "I338": { "cls": "items", "name": "新物品", "canUseItemEffect": "true" }, "I339": { "cls": "constants", "name": "罪恶的插件", "canUseItemEffect": "true", "useItemEvent": [ { "type": "choices", "text": "这里是自动拾取开关!", "choices": [ { "text": "开启自动拾取", "color": [ 105, 231, 153, 1 ], "action": [ "自动拾取已开启!", { "type": "setValue", "name": "flag:shiqu", "value": "true" } ] }, { "text": "关闭自动拾取", "color": [ 243, 184, 78, 1 ], "action": [ "自动拾取已关闭!", { "type": "setValue", "name": "flag:shiqu", "value": "false" } ] } ] } ], "text": "自动拾取宝物,捡到了不该捡的别怪我" }, "I340": { "cls": "items", "name": "新物品", "canUseItemEffect": "true" }, "I341": { "cls": "items", "name": "新物品", "canUseItemEffect": "true" }, "I342": { "cls": "constants", "name": "仙医点化术(残卷)", "canUseItemEffect": "true", "useItemEvent": [ { "type": "if", "condition": "(status:mana<(status:manamax*0.25))", "true": [ { "type": "playSound", "name": "操作失败" }, "\t[仙医点化术,I342]\b[this]你的魔力不足!" ], "false": [ { "type": "setValue", "name": "status:mana", "operator": "-=", "value": "(status:manamax*0.25)" }, { "type": "setValue", "name": "status:hp", "operator": "+=", "value": "(status:manamax)" } ] } ], "text": "消耗25%的最大魔力值,恢复最大魔力值的生命值" }, "I343": { "cls": "constants", "name": "仙医点化术(解除异常状态要领)", "canUseItemEffect": "true", "useItemEvent": [ { "type": "if", "condition": "(flag:hard===3)", "true": [ { "type": "if", "condition": "(status:mana<35)", "true": [ { "type": "playSound", "name": "操作失败" }, "\t[仙医点化术,I342]\b[this]你的魔力不足!" ], "false": [ { "type": "setValue", "name": "status:mana", "operator": "-=", "value": "35" }, { "type": "setValue", "name": "flag:poison", "value": "false" } ] } ], "false": [ { "type": "if", "condition": "(status:mana<30)", "true": [ { "type": "playSound", "name": "操作失败" }, "\t[仙医点化术,I342]\b[this]你的魔力不足!" ], "false": [ { "type": "setValue", "name": "status:mana", "operator": "-=", "value": "30" }, { "type": "setValue", "name": "flag:poison", "value": "false" } ] } ] } ], "text": "消耗魔力值解除异常状态(正常模式消耗30魔力值,变态模式35魔力值)" }, "I344": { "cls": "items", "name": "新物品", "canUseItemEffect": "true" }, "I345": { "cls": "items", "name": "新物品", "canUseItemEffect": "true" }, "I346": { "cls": "items", "name": "新物品", "canUseItemEffect": "true" }, "I347": { "cls": "items", "name": "新物品", "canUseItemEffect": "true" }, "I348": { "cls": "items", "name": "新物品", "canUseItemEffect": "true" }, "I349": { "cls": "items", "name": "新物品", "canUseItemEffect": "true" }, "I350": { "cls": "items", "name": "新物品", "canUseItemEffect": "true" }, "I351": { "cls": "items", "name": "新物品", "canUseItemEffect": "true" }, "I352": { "cls": "items", "name": "新物品", "canUseItemEffect": "true" }, "I353": { "cls": "items", "name": "新物品", "canUseItemEffect": "true" }, "I354": { "cls": "items", "name": "新物品", "canUseItemEffect": "true" }, "I355": { "cls": "items", "name": "二阶红宝石", "canUseItemEffect": "true", "itemEffectTip": null, "itemEffect": "core.status.hero.hp += 0;\ncore.status.hero.atk += 2;\ncore.status.hero.def += 0;\ncore.status.hero.mdef += 0;\nif (flags.heroId == 1)\n\thero.atk -= 2;" }, "I356": { "cls": "items", "name": "二阶蓝宝石", "canUseItemEffect": "true", "itemEffect": "core.status.hero.hp += 0;\ncore.status.hero.atk += 0;\ncore.status.hero.def += 2;\ncore.status.hero.mdef += 0;\nif (flags.heroId == 1)\n\thero.def -= 2;", "itemEffectTip": null }, "I357": { "cls": "items", "name": "二阶绿宝石", "canUseItemEffect": "true", "itemEffect": "core.status.hero.hp += 0;\ncore.status.hero.atk += 0;\ncore.status.hero.def += 0;\ncore.status.hero.mdef += 2;\nif (flags.heroId == 1)\n\thero.mdef -= 2;", "itemEffectTip": null }, "I358": { "cls": "items", "name": "二阶黄宝石", "canUseItemEffect": "true", "itemEffect": "core.status.hero.hp += 0;\ncore.status.hero.atk += 2;\ncore.status.hero.def += 2;\ncore.status.hero.mdef += 2;\nif (flags.heroId == 1) {\n\thero.mdef -= 2\n\thero.def -= 1;\n}", "itemEffectTip": null }, "I359": { "cls": "items", "name": "三阶红宝石", "canUseItemEffect": "true", "itemEffect": "core.status.hero.hp += 0;\ncore.status.hero.atk += 4;\ncore.status.hero.def += 0;\ncore.status.hero.mdef += 0;\nif (flags.heroId == 1)\n\thero.atk -= 4;", "itemEffectTip": null }, "I360": { "cls": "items", "name": "三阶蓝宝石", "canUseItemEffect": "true", "itemEffect": "core.status.hero.hp += 0;\ncore.status.hero.atk += 0;\ncore.status.hero.def += 4;\ncore.status.hero.mdef += 0;\nif (flags.heroId == 1)\n\thero.def -= 4;", "itemEffectTip": "" }, "I361": { "cls": "items", "name": "三阶绿宝石", "canUseItemEffect": "true", "itemEffect": "core.status.hero.hp += 0;\ncore.status.hero.atk += 0;\ncore.status.hero.def += 0;\ncore.status.hero.mdef += 4;\nif (flags.heroId == 1)\n\thero.mdef -= 4;", "itemEffectTip": null }, "I362": { "cls": "items", "name": "三阶黄宝石", "canUseItemEffect": "true", "itemEffect": "core.status.hero.hp += 0;\ncore.status.hero.atk += 3;\ncore.status.hero.def += 3;\ncore.status.hero.mdef += 3;\nif (flags.heroId == 1) {\n\thero.mdef -= 3;\n\thero.def -= 2\n}", "itemEffectTip": null }, "I363": { "cls": "items", "name": "四阶红宝石", "canUseItemEffect": "true", "itemEffect": "core.status.hero.hp += 0;\ncore.status.hero.atk += 8;\ncore.status.hero.def += 0;\ncore.status.hero.mdef += 0;\nif (flags.heroId == 1)\n\thero.atk -= 8;", "itemEffectTip": null }, "I364": { "cls": "items", "name": "四阶蓝宝石", "canUseItemEffect": "true", "itemEffect": "core.status.hero.hp += 0;\ncore.status.hero.atk += 0;\ncore.status.hero.def += 8;\ncore.status.hero.mdef += 0;\nif (flags.heroId == 1)\n\thero.def -= 8;", "itemEffectTip": null }, "I365": { "cls": "items", "name": "四阶绿宝石", "canUseItemEffect": "true", "itemEffect": "core.status.hero.hp += 0;\ncore.status.hero.atk += 0;\ncore.status.hero.def += 0;\ncore.status.hero.mdef += 8;\nif (core.hasItem('I372'))\n\thero.mdef -= 8;", "itemEffectTip": "护盾+8" }, "I366": { "cls": "items", "name": "四阶黄宝石", "canUseItemEffect": "true", "itemEffect": "core.status.hero.hp += 0;\ncore.status.hero.atk += 4;\ncore.status.hero.def += 4;\ncore.status.hero.mdef += 4;\nif (core.getFlag('hard') == 3) {\n\thero.def -= 1;\n\tmdef -= 1\n}\nif (flags.heroId == 1) {\n\thero.def -= 2;\n\thero.mdef -= 3\n}", "itemEffectTip": null }, "I367": { "cls": "items", "name": "一阶红药水", "canUseItemEffect": "true", "itemEffect": "core.status.hero.hp += 500;\nif (core.getFlag(\"hard\") == 1)\n\thero.hp += 100;\nif (core.getFlag(\"hard\") == 3)\n\thero.hp -= 100;", "itemEffectTip": "恢复生命值" }, "I368": { "cls": "items", "name": "三阶黄药水", "canUseItemEffect": "true", "itemEffect": "core.status.hero.hp += 2000;\nif (core.getFlag(\"hard\") == 1)\n\thero.hp += 800;\nif (core.getFlag(\"hard\") == 3)\n\thero.hp -= 1000;", "itemEffectTip": "恢复生命值" }, "I369": { "cls": "items", "name": "四阶绿药水", "canUseItemEffect": "true", "itemEffect": "core.status.hero.hp += 3000;\nif (core.getFlag(\"hard\") == 1)\n\thero.hp += 1000;\nif (core.getFlag(\"hard\") == 3)\n\thero.hp -= 1500;", "itemEffectTip": "恢复生命值" }, "I370": { "cls": "items", "name": "二阶蓝药水", "canUseItemEffect": "true", "itemEffect": "core.status.hero.hp += 1000;\nif (core.getFlag(\"hard\") == 1)\n\thero.hp += 250;\nif (core.getFlag(\"hard\") == 3)\n\thero.hp -= 500;", "itemEffectTip": "恢复生命值" }, "I371": { "cls": "items", "name": "新物品", "canUseItemEffect": "true" }, "I372": { "cls": "constants", "name": "魔法师", "canUseItemEffect": "true", "text": "魔法师攻击力为魔攻(但是宝石效果大减,红蓝绿宝石无效,黄宝石不能加魔防且加防御力效果减少)", "equip": null }, "I373": { "cls": "items", "name": "新物品", "canUseItemEffect": "true" }, "I374": { "cls": "items", "name": "新物品", "canUseItemEffect": "true" }, "I375": { "cls": "items", "name": "新物品", "canUseItemEffect": "true" }, "I376": { "cls": "items", "name": "五阶红宝石", "canUseItemEffect": "true", "itemEffect": "core.status.hero.hp += 0;\ncore.status.hero.atk += 10;\ncore.status.hero.def += 0;\ncore.status.hero.mdef += 0;\nif (flags.heroId == 1)\n\thero.atk -= 10;", "itemEffectTip": null }, "I377": { "cls": "items", "name": "五阶蓝宝石", "canUseItemEffect": "true", "itemEffect": "core.status.hero.hp += 0;\ncore.status.hero.atk += 0;\ncore.status.hero.def += 10;\ncore.status.hero.mdef += 0;\nif (flags.heroId == 1)\n\thero.def -= 10;", "itemEffectTip": null }, "I378": { "cls": "items", "name": "五阶绿宝石", "canUseItemEffect": "true", "itemEffect": "core.status.hero.hp += 0;\ncore.status.hero.atk += 0;\ncore.status.hero.def += 0;\ncore.status.hero.mdef += 16;\nif (flags.heroId == 1)\n\thero.mdef -= 16;", "itemEffectTip": "护盾+16" }, "I379": { "cls": "items", "name": "五阶黄宝石", "canUseItemEffect": "true", "itemEffect": "core.status.hero.hp += 0;\ncore.status.hero.atk += 5;\ncore.status.hero.def += 5;\ncore.status.hero.mdef += 5;\nif (core.getFlag('hard') == 3) {\n\thero.def -= 1;\n\thero.mdef -= 1\n}\nif (flags.heroId == 1) {\n\thero.def -= 2;\n\thero.mdef -= 1\n}", "itemEffectTip": null }, "I380": { "cls": "items", "name": "六阶红宝石", "canUseItemEffect": "true", "itemEffect": "core.status.hero.hp += 0;\ncore.status.hero.atk += 15;\ncore.status.hero.def += 0;\ncore.status.hero.mdef += 0;\nif (flags.heroId == 1)\n\thero.atk -= 15;", "itemEffectTip": null }, "I381": { "cls": "items", "name": "六阶蓝宝石", "canUseItemEffect": "true", "itemEffect": "core.status.hero.hp += 0;\ncore.status.hero.atk += 0;\ncore.status.hero.def += 15;\ncore.status.hero.mdef += 0;\nif (flags.heroId == 1)\n\thero.def -= 15;", "itemEffectTip": null }, "I382": { "cls": "items", "name": "六阶绿宝石", "canUseItemEffect": "true", "itemEffect": "core.status.hero.hp += 0;\ncore.status.hero.atk += 0;\ncore.status.hero.def += 0;\ncore.status.hero.mdef += 32;\nif (flags.heroId == 1)\n\thero.mdef -= 32;", "itemEffectTip": null }, "I383": { "cls": "items", "name": "六阶黄宝石", "canUseItemEffect": "true", "itemEffect": "core.status.hero.hp += 0;\ncore.status.hero.atk += 6;\ncore.status.hero.def += 6;\ncore.status.hero.mdef += 6;\nif (core.getFlag('hard') == 3) {\n\thero.def -= 1;\n\thero.mdef -= 1\n}\nif (flags.heroId == 1) {\n\thero.def -= 2;\n\thero.mdef -= 1\n}", "itemEffectTip": null }, "I384": { "cls": "items", "name": "七阶红宝石", "canUseItemEffect": "true", "itemEffect": "core.status.hero.hp += 0;\ncore.status.hero.atk += 20;\ncore.status.hero.def += 0;\ncore.status.hero.mdef += 0;\nif (flags.heroId == 1)\n\thero.atk -= 20;", "itemEffectTip": null }, "I385": { "cls": "items", "name": "七阶蓝宝石", "canUseItemEffect": "true", "itemEffect": "core.status.hero.hp += 0;\ncore.status.hero.atk += 0;\ncore.status.hero.def += 20;\ncore.status.hero.mdef += 0;\nif (flags.heroId == 1)\n\thero.def -= 20;", "itemEffectTip": null }, "I386": { "cls": "items", "name": "七阶绿宝石", "canUseItemEffect": "true", "itemEffect": "core.status.hero.hp += 0;\ncore.status.hero.atk += 0;\ncore.status.hero.def += 0;\ncore.status.hero.mdef += 64;\nif (flags.heroId == 1)\n\thero.mdef -= 64;", "itemEffectTip": null }, "I387": { "cls": "items", "name": "七阶黄宝石", "canUseItemEffect": "true", "itemEffect": "core.status.hero.hp += 0;\ncore.status.hero.atk += 7;\ncore.status.hero.def += 7;\ncore.status.hero.mdef += 7;\nif (core.getFlag('hard') == 3) {\n\thero.def -= 1;\n\thero.mdef -= 1\n}\nif (flags.heroId == 1) {\n\thero.def -= 2;\n\thero.mdef -= 1\n}", "itemEffectTip": null }, "I388": { "cls": "items", "name": "八阶红宝石", "canUseItemEffect": "true", "itemEffect": "core.status.hero.hp += 0;\ncore.status.hero.atk += 25;\ncore.status.hero.def += 0;\ncore.status.hero.mdef += 0;\nif (flags.heroId == 1)\n\thero.atk -= 25;", "itemEffectTip": null }, "I389": { "cls": "items", "name": "八阶蓝宝石", "canUseItemEffect": "true", "itemEffect": "core.status.hero.hp += 0;\ncore.status.hero.atk += 0;\ncore.status.hero.def += 25;\ncore.status.hero.mdef += 0;\nif (flags.heroId == 1)\n\thero.def -= 25;", "itemEffectTip": null }, "I390": { "cls": "items", "name": "八阶绿宝石", "canUseItemEffect": "true", "itemEffect": "core.status.hero.hp += 0;\ncore.status.hero.atk += 0;\ncore.status.hero.def += 0;\ncore.status.hero.mdef += 128;\nif (flags.heroId == 1)\n\thero.mdef -= 128;", "itemEffectTip": null }, "I391": { "cls": "items", "name": "八阶黄宝石", "canUseItemEffect": "true", "itemEffect": "core.status.hero.hp += 0;\ncore.status.hero.atk += 8;\ncore.status.hero.def += 8;\ncore.status.hero.mdef += 8;\nif (core.getFlag('hard') == 3) {\n\thero.def -= 1;\n\thero.mdef -= 1\n}", "itemEffectTip": "全属性提升" }, "I392": { "cls": "items", "name": "九阶红宝石", "canUseItemEffect": "true", "itemEffect": "core.status.hero.hp += 0;\ncore.status.hero.atk += 30;\ncore.status.hero.def += 0;\ncore.status.hero.mdef += 0;\nif (flags.heroId == 1)\n\thero.atk -= 30;", "itemEffectTip": null }, "I393": { "cls": "items", "name": "九阶蓝宝石", "canUseItemEffect": "true", "itemEffect": "core.status.hero.hp += 0;\ncore.status.hero.atk += 0;\ncore.status.hero.def += 30;\ncore.status.hero.mdef += 0;\nif (flags.heroId == 1)\n\thero.def -= 30;", "itemEffectTip": null }, "I394": { "cls": "items", "name": "九阶绿宝石", "canUseItemEffect": "true", "itemEffect": "core.status.hero.hp += 0;\ncore.status.hero.atk += 0;\ncore.status.hero.def += 0;\ncore.status.hero.mdef += 150;\nif (flags.heroId == 1)\n\thero.mdef -= 150;", "itemEffectTip": null }, "I395": { "cls": "items", "name": "九阶黄宝石", "canUseItemEffect": "true", "itemEffect": "core.status.hero.hp += 0;\ncore.status.hero.atk += 9;\ncore.status.hero.def += 9;\ncore.status.hero.mdef += 9;\nif (core.getFlag('hard') == 3) {\n\thero.def -= 1;\n\thero.mdef -= 1\n}", "itemEffectTip": "全属性提升" }, "I396": { "cls": "items", "name": "十阶红宝石", "canUseItemEffect": "true", "itemEffect": "core.status.hero.hp += 0;\ncore.status.hero.atk += 35;\ncore.status.hero.def += 0;\ncore.status.hero.mdef += 0;\nif (flags.heroId == 1)\n\thero.atk -= 35;", "itemEffectTip": null }, "I397": { "cls": "items", "name": "十阶蓝宝石", "canUseItemEffect": "true", "itemEffect": "core.status.hero.hp += 0;\ncore.status.hero.atk += 0;\ncore.status.hero.def += 35;\ncore.status.hero.mdef += 0;\nif (core.hasItem('I372'))\n\thero.def -= 35;", "itemEffectTip": null }, "I398": { "cls": "items", "name": "十阶绿宝石", "canUseItemEffect": "true", "itemEffect": "core.status.hero.hp += 0;\ncore.status.hero.atk += 0;\ncore.status.hero.def += 0;\ncore.status.hero.mdef += 200;\nif (flags.heroId == 1)\n\thero.mdef -= 200;", "itemEffectTip": null }, "I399": { "cls": "items", "name": "十阶黄宝石", "canUseItemEffect": "true", "itemEffect": "core.status.hero.hp += 0;\ncore.status.hero.atk += 10;\ncore.status.hero.def += 10;\ncore.status.hero.mdef += 10;\nif (core.getFlag('hard') == 3) {\n\thero.def -= 1;\n\thero.mdef -= 1\n}", "itemEffectTip": "全属性提升" }, "I400": { "cls": "items", "name": "十一阶红宝石", "canUseItemEffect": "true", "itemEffect": "core.status.hero.hp += 0;\ncore.status.hero.atk += 40;\ncore.status.hero.def += 0;\ncore.status.hero.mdef += 0;\nif (flags.heroId == 1)\n\thero.atk -= 40;", "itemEffectTip": null }, "I401": { "cls": "items", "name": "十一阶蓝宝石", "canUseItemEffect": "true", "itemEffect": "core.status.hero.hp += 0;\ncore.status.hero.atk += 0;\ncore.status.hero.def += 40;\ncore.status.hero.mdef += 0;\nif (flags.heroId == 1)\n\thero.def -= 40;", "itemEffectTip": null }, "I402": { "cls": "items", "name": "十一阶绿宝石", "canUseItemEffect": "true", "itemEffect": "core.status.hero.hp += 0;\ncore.status.hero.atk += 0;\ncore.status.hero.def += 0;\ncore.status.hero.mdef += 250;\nif (flags.heroId == 1)\n\thero.mdef -= 250;", "itemEffectTip": "" }, "I403": { "cls": "items", "name": "十一阶黄宝石", "canUseItemEffect": "true", "itemEffect": "core.status.hero.hp += 0;\ncore.status.hero.atk += 11;\ncore.status.hero.def += 11;\ncore.status.hero.mdef += 11;\nif (core.getFlag('hard') == 3) {\n\thero.def -= 1;\n\thero.mdef -= 1\n}", "itemEffectTip": "全属性提升" }, "I404": { "cls": "items", "name": "十二阶红宝石", "canUseItemEffect": "true", "itemEffect": "core.status.hero.hp += 0;\ncore.status.hero.atk += 50;\ncore.status.hero.def += 0;\ncore.status.hero.mdef += 0;\nif (flags.heroId == 1)\n\thero.atk -= 50;", "itemEffectTip": null }, "I405": { "cls": "items", "name": "十二阶蓝宝石", "canUseItemEffect": "true", "itemEffect": "core.status.hero.hp += 0;\ncore.status.hero.atk += 0;\ncore.status.hero.def += 50;\ncore.status.hero.mdef += 0;\nif (flags.heroId == 1)\n\thero.def -= 50;", "itemEffectTip": null }, "I406": { "cls": "items", "name": "十二阶绿宝石", "canUseItemEffect": "true", "itemEffect": "core.status.hero.hp += 0;\ncore.status.hero.atk += 0;\ncore.status.hero.def += 0;\ncore.status.hero.mdef += 300;\nif (flags.heroId == 1)\n\thero.mdef -= 300;", "itemEffectTip": null }, "I407": { "cls": "items", "name": "十二阶黄宝石", "canUseItemEffect": "true", "itemEffect": "core.status.hero.hp += 0;\ncore.status.hero.atk += 12;\ncore.status.hero.def += 12;\ncore.status.hero.mdef += 12;\nif (core.getFlag('hard') == 3) {\n\thero.def -= 1;\n\thero.mdef -= 1\n}", "itemEffectTip": "全属性提升" }, "I408": { "cls": "items", "name": "十阶虹药水", "canUseItemEffect": "true", "itemEffect": "core.status.hero.hp += 100000;\nif (core.getFlag(\"hard\") == 3)\n\thero.hp -= 50000;", "itemEffectTip": "恢复生命值" }, "I409": { "cls": "items", "name": "十一阶湛药水", "canUseItemEffect": "true", "itemEffect": "core.status.hero.hp += 200000;\nif (core.getFlag(\"hard\") == 3)\n\thero.hp -= 100000;", "itemEffectTip": "恢复生命值" }, "I410": { "cls": "items", "name": "十二阶皇药水", "canUseItemEffect": "true", "itemEffect": "core.status.hero.hp += 500000;\nif (core.getFlag(\"hard\") == 3)\n\thero.hp -= 250000;", "itemEffectTip": "恢复生命值" }, "I411": { "cls": "items", "name": "十三阶天药水", "canUseItemEffect": "true", "itemEffect": "core.status.hero.hp += 1000000;\nif (core.getFlag(\"hard\") == 3)\n\thero.hp -= 500000;", "itemEffectTip": "恢复生命值" }, "I412": { "cls": "items", "name": "新物品", "canUseItemEffect": "true" }, "I413": { "cls": "items", "name": "新物品", "canUseItemEffect": "true" }, "I414": { "cls": "items", "name": "新物品", "canUseItemEffect": "true" }, "I415": { "cls": "items", "name": "新物品", "canUseItemEffect": "true" }, "I416": { "cls": "items", "name": "魔力水晶", "canUseItemEffect": "true", "itemEffect": "core.status.hero.manamax += 10;\ncore.status.hero.atk += 0;\ncore.status.hero.def += 0;\ncore.status.hero.mdef += 0;", "itemEffectTip": "魔力上限+10" }, "I417": { "cls": "items", "name": "新物品", "canUseItemEffect": "true" }, "I418": { "cls": "items", "name": "新物品", "canUseItemEffect": "true" }, "I419": { "cls": "constants", "name": "溢出HP统计", "canUseItemEffect": "true", "useItemEffect": "core.insertAction([\n\t\"当前溢出HP值为:\\r[red]\" + core.getFlag('hp_score') + \"\\r[white]。\\n\",\n]);", "text": "当前已溢出生命值${flag:hp_score}点。可以用来计分。" }, "I420": { "cls": "items", "name": "新物品", "canUseItemEffect": "true" }, "I421": { "cls": "items", "name": "新物品", "canUseItemEffect": "true" }, "I422": { "cls": "items", "name": "新物品", "canUseItemEffect": "true" }, "I423": { "cls": "items", "name": "新物品", "canUseItemEffect": "true" }, "I424": { "cls": "tools", "name": "便携红药水", "canUseItemEffect": "true", "useItemEvent": [ { "type": "if", "condition": "(flag:hard===3)", "true": [ { "type": "setValue", "name": "status:hp", "operator": "+=", "value": "(status:hpmax*0.05)" } ], "false": [ { "type": "if", "condition": "(status:hpmax<100000)", "true": [ { "type": "setValue", "name": "status:hp", "operator": "+=", "value": "(status:hpmax*0.05+150)" } ], "false": [ { "type": "setValue", "name": "status:hp", "operator": "+=", "value": "(status:hpmax*0.05)" } ] } ] } ], "text": "回复5%的最大生命值(低于十万额外获得150生命值(变态难度没有))" }, "I425": { "cls": "tools", "name": "便携蓝药水", "canUseItemEffect": "true", "useItemEvent": [ { "type": "if", "condition": "(flag:hard===3)", "true": [ { "type": "setValue", "name": "status:hp", "operator": "+=", "value": "(status:hpmax*0.1)" } ], "false": [ { "type": "if", "condition": "(status:hpmax<100000)", "true": [ { "type": "setValue", "name": "status:hp", "operator": "+=", "value": "(status:hpmax*0.1+300)" } ], "false": [ { "type": "setValue", "name": "status:hp", "operator": "+=", "value": "(status:hpmax*0.1)" } ] } ] } ], "text": "回复10%的最大生命值(低于十万额外获得300生命值(变态模式没有此效果))" }, "I426": { "cls": "tools", "name": "便携绿药水", "canUseItemEffect": "true", "useItemEvent": [ { "type": "setValue", "name": "status:hp", "operator": "+=", "value": "(status:hpmax*0.15)" } ], "text": "回复15%最大生命值" }, "I427": { "cls": "tools", "name": "便携紫药水", "canUseItemEffect": "true", "useItemEvent": [ { "type": "setValue", "name": "status:hp", "operator": "+=", "value": "(status:hpmax*0.2)" } ], "text": "回复20%最大生命值" }, "I428": { "cls": "items", "name": "新物品", "canUseItemEffect": "true" }, "I429": { "cls": "items", "name": "新物品", "canUseItemEffect": "true" }, "I430": { "cls": "items", "name": "新物品", "canUseItemEffect": "true" }, "I431": { "cls": "items", "name": "新物品", "canUseItemEffect": "true" }, "I432": { "cls": "items", "name": "下品魔力药水", "canUseItemEffect": "true", "useItemEvent": null, "text": "恢复100点魔力值", "itemEffect": "core.status.hero.mana += 100;\ncore.status.hero.atk += 0;\ncore.status.hero.def += 0;\ncore.status.hero.mdef += 0;" }, "I433": { "cls": "tools", "name": "下品星露", "canUseItemEffect": "true", "useItemEvent": [ { "type": "setValue", "name": "status:mana", "operator": "+=", "value": "(status:manamax*0.25)" }, { "type": "setValue", "name": "status:hp", "operator": "+=", "value": "(status:hpmax*0.25)" } ], "text": "恢复25%最大魔力值和25%最大生命值" }, "I434": { "cls": "tools", "name": "上品星露", "canUseItemEffect": "true", "useItemEvent": [ { "type": "setValue", "name": "status:mana", "operator": "+=", "value": "(status:manamax*1)" }, { "type": "setValue", "name": "status:hp", "operator": "+=", "value": "(status:hpmax*1)" } ], "text": "恢复100%最大魔力值和100%最大生命值" }, "I435": { "cls": "items", "name": "新物品", "canUseItemEffect": "true" }, "I436": { "cls": "constants", "name": "减伤宝石", "canUseItemEffect": "true", "text": "减少30%的伤害,并且击败怪物额外获得5点生命值" }, "I437": { "cls": "constants", "name": "最高难度宝石", "canUseItemEffect": "true", "text": "尊贵的最高难度宝石,赠予最高难度的玩家" }, "I438": { "cls": "items", "name": "中品魔力药水", "canUseItemEffect": "true", "useItemEvent": null, "text": "恢复300点魔力值", "itemEffect": "core.status.hero.mana += 300;\ncore.status.hero.atk += 0;\ncore.status.hero.def += 0;\ncore.status.hero.mdef += 0;\nif (core.hasItem('I372'))\n\thero.mana -= 150;" }, "I439": { "cls": "tools", "name": "中品星露", "canUseItemEffect": "true", "useItemEvent": [ { "type": "setValue", "name": "status:mana", "operator": "+=", "value": "(status:manamax*0.5)" }, { "type": "setValue", "name": "status:hp", "operator": "+=", "value": "(status:hpmax*0.5)" } ], "text": "恢复50%最大魔力值和50%最大生命值" }, "I440": { "cls": "items", "name": "一阶血宝石", "canUseItemEffect": "true", "itemEffect": "core.status.hero.hpmax += 50;\ncore.status.hero.atk += 0;\ncore.status.hero.def += 0;\ncore.status.hero.mdef += 0;", "itemEffectTip": "生命上限+50" }, "I441": { "cls": "items", "name": "二阶血宝石", "canUseItemEffect": "true", "itemEffect": "core.status.hero.hpmax += 100;\ncore.status.hero.atk += 0;\ncore.status.hero.def += 0;\ncore.status.hero.mdef += 0;", "itemEffectTip": "生命上限+100" }, "I442": { "cls": "items", "name": "三阶血宝石", "canUseItemEffect": "true", "itemEffect": "core.status.hero.hpmax += 200;\ncore.status.hero.atk += 0;\ncore.status.hero.def += 0;\ncore.status.hero.mdef += 0;", "itemEffectTip": "生命上限+200" }, "I443": { "cls": "items", "name": "四阶血宝石", "canUseItemEffect": "true", "itemEffect": "core.status.hero.hpmax += 400;\ncore.status.hero.atk += 0;\ncore.status.hero.def += 0;\ncore.status.hero.mdef += 0;", "itemEffectTip": "生命上限+400" }, "I444": { "cls": "items", "name": "五阶血宝石", "canUseItemEffect": "true", "itemEffect": "core.status.hero.hpmax += 800;\ncore.status.hero.atk += 0;\ncore.status.hero.def += 0;\ncore.status.hero.mdef += 0;", "itemEffectTip": "生命上限+800" }, "I445": { "cls": "items", "name": "六阶血宝石", "canUseItemEffect": "true", "itemEffect": "core.status.hero.hpmax += 1000;\ncore.status.hero.atk += 0;\ncore.status.hero.def += 0;\ncore.status.hero.mdef += 0;", "itemEffectTip": "生命上限+1000" }, "I446": { "cls": "items", "name": "七阶血宝石", "canUseItemEffect": "true", "itemEffect": "core.status.hero.hpmax += 2000;\ncore.status.hero.atk += 0;\ncore.status.hero.def += 0;\ncore.status.hero.mdef += 0;", "itemEffectTip": "生命上限+2000" }, "I447": { "cls": "items", "name": "九阶血宝石", "canUseItemEffect": "true", "itemEffect": "core.status.hero.hpmax += 5000;\ncore.status.hero.atk += 0;\ncore.status.hero.def += 0;\ncore.status.hero.mdef += 0;", "itemEffectTip": "生命上限+5000" }, "I448": { "cls": "items", "name": "十阶血宝石", "canUseItemEffect": "true", "itemEffect": "core.status.hero.hpmax += 10000;\ncore.status.hero.atk += 0;\ncore.status.hero.def += 0;\ncore.status.hero.mdef += 0;", "itemEffectTip": "生命上限+10000" }, "I449": { "cls": "items", "name": "血神石", "canUseItemEffect": "true", "itemEffect": "core.status.hero.hpmax += 50000;\ncore.status.hero.atk += 0;\ncore.status.hero.def += 0;\ncore.status.hero.mdef += 0;", "itemEffectTip": "生命上限+50000" }, "I450": { "cls": "tools", "name": "便携上品魔力药水", "canUseItemEffect": "true", "useItemEvent": [ { "type": "setValue", "name": "status:mana", "operator": "+=", "value": "(status:manamax*1)" } ], "text": "恢复100%最大魔力值" }, "I451": { "cls": "tools", "name": "便携下品魔力药水", "canUseItemEffect": "true", "useItemEvent": [ { "type": "setValue", "name": "status:mana", "operator": "+=", "value": "(status:manamax*0.5)" } ], "text": "恢复50%最大魔力值" }, "I452": { "cls": "tools", "name": "便携黄药水", "canUseItemEffect": "true", "useItemEvent": [ { "type": "setValue", "name": "status:hp", "operator": "+=", "value": "(status:hpmax*0.25)" } ], "text": "回复25%最大生命值" }, "I453": { "cls": "tools", "name": "圣蜂浆", "canUseItemEffect": "true", "useItemEvent": [ { "type": "setValue", "name": "status:hp", "operator": "+=", "value": "(status:hpmax*0.5)" } ], "text": "圣蜂王所产之物,可回复50%最大生命值" }, "I454": { "cls": "tools", "name": "高阶圣蜂浆", "canUseItemEffect": "true", "useItemEvent": [ { "type": "setValue", "name": "status:hp", "operator": "+=", "value": "(status:hpmax*1)" } ], "text": "圣蜂王所产之物,可回复所有的生命值" }, "I455": { "cls": "items", "name": "上品魔力药水", "canUseItemEffect": "true", "useItemEvent": null, "text": "恢复500点魔力值", "itemEffect": "core.status.hero.mana += 500;\ncore.status.hero.atk += 0;\ncore.status.hero.def += 0;\ncore.status.hero.mdef += 0;\nif (core.hasItem('I372'))\n\thero.mana -= 250;" }, "I456": { "cls": "tools", "name": "黄金炸弹", "canUseItemEffect": "true", "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.getEnemyValue(enemy, 'money', x, y) || 0;\n\t\texp += core.getEnemyValue(enemy, 'exp', x, y) || 0;\n\t\tcore.push(todo, core.floors[core.status.floorId].afterBattle[x + \",\" + y]);\n\t\tcore.push(todo, enemy.afterBattle);\n\t\tcore.removeBlock(x, y);\n\t}\n\n\t// 如果要多方向可炸,把这里的false改成true\n\tif (true) {\n\t\tvar scan = core.utils.scan2; // 多方向炸时默认四方向,如果要改成八方向炸可以改成 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\tcore.status.hero.money += money;\n\tcore.status.hero.exp += exp;\n\tif (todo.length > 0) core.insertAction(todo);\n\n})();", "text": "可以炸掉勇者周围3*3格的怪物,并且获得金币,可以触发事件" }, "I457": { "cls": "tools", "name": "全图轰炸", "canUseItemEffect": "true", "useItemEffect": "(function () {\n\tvar bombList = []; // 炸掉的怪物坐标列表\n\tvar bombXYList = []; // 炸掉的怪物xy坐标列表\n\tvar expSum = 0;\n\tvar coinSum = 0;\n\tfor (var index in core.status.thisMap.blocks) {\n\t\tvar block = core.status.thisMap.blocks[index];\n\t\t// \t\tvar nx = block.x;\n\t\t// \t\tvar ny = block.y;\n\t\tvar enemyCanBomb = false;\n\t\tif (block == null || block.disable || block.event.cls.indexOf('enemy') != 0) {} else {\n\t\t\tvar enemy = core.material.enemys[block.event.id];\n\t\t\tvar enemyCanBomb = enemy && !enemy.notBomb;\n\t\t\tif (enemyCanBomb) {\n\t\t\t\tbombList.push(index);\n\t\t\t\texpSum += enemy.exp;\n\t\t\t\tcoinSum += enemy.money;\n\t\t\t\tbombXYList.push(block)\n\t\t\t}\n\t\t}\n\t}\n\tcore.removeBlockByIndexes(bombList);\n\tcore.status.hero.exp += expSum;\n\tcore.status.hero.money += coinSum;\n\tcore.playSound('bomb.mp3');\n\tcore.drawTip(core.material.items[itemId].name + '使用成功');\n\tcore.drawMap();\n\tfor (var index in bombXYList) {\n\t\tcore.drawAnimate(\"zone\", bombXYList[index].x, bombXYList[index].y, false)\n\t}\n})();" }, "I458": { "cls": "tools", "name": "一阶药草", "canUseItemEffect": "true", "text": "制作宝物的重要材料(直接使用会获得20点生命值)", "useItemEvent": [ { "type": "setValue", "name": "status:hp", "operator": "+=", "value": "20" } ] }, "I459": { "cls": "tools", "name": "二阶药草", "canUseItemEffect": "true" }, "I460": { "cls": "items", "name": "神奇的药草", "canUseItemEffect": "true" }, "I461": { "cls": "tools", "name": "四阶药草", "canUseItemEffect": "true" }, "I462": { "cls": "tools", "name": "五阶药草", "canUseItemEffect": "true" }, "I463": { "cls": "tools", "name": "六阶药草", "canUseItemEffect": "true" }, "I464": { "cls": "tools", "name": "七阶药草", "canUseItemEffect": "true", "text": "" }, "I465": { "cls": "tools", "name": "八阶药草", "canUseItemEffect": "true" }, "I466": { "cls": "tools", "name": "九阶药草", "canUseItemEffect": "true" }, "I467": { "cls": "tools", "name": "十阶药草", "canUseItemEffect": "true" }, "I1679": { "cls": "items", "name": "新物品", "canUseItemEffect": "true" }, "I1680": { "cls": "items", "name": "新物品", "canUseItemEffect": "true" }, "I1681": { "cls": "items", "name": "新物品", "canUseItemEffect": "true" }, "I1682": { "cls": "items", "name": "新物品", "canUseItemEffect": "true" }, "I1770": { "cls": "constants", "name": "仙医点化术(前卷)", "canUseItemEffect": "true", "useItemEvent": [ { "type": "if", "condition": "(status:mana<(status:manamax*0.1))", "true": [ { "type": "playSound", "name": "操作失败" }, "\t[仙医点化术,I342]\b[this]你的魔力不足!" ], "false": [ { "type": "setValue", "name": "status:mana", "operator": "-=", "value": "(status:manamax*0.1)" }, { "type": "setValue", "name": "status:hp", "operator": "+=", "value": "(status:manamax*2)" } ] } ], "text": "消耗10%的最大魔力值,恢复2倍最大魔力值的生命值" }, "I1771": { "cls": "constants", "name": "仙医点化术(完整版)", "canUseItemEffect": "true", "useItemEvent": [ { "type": "if", "condition": "(status:mana<(status:manamax*0.1))", "true": [ { "type": "playSound", "name": "操作失败" }, "\t[仙医点化术,I342]\b[this]你的魔力不足!" ], "false": [ { "type": "setValue", "name": "status:mana", "operator": "-=", "value": "(status:manamax*0.1)" }, { "type": "setValue", "name": "status:hp", "operator": "+=", "value": "(status:manamax*3)" } ] } ], "text": "消耗10%的最大魔力值,恢复3倍最大魔力值的生命值(达到更高的层次实力效果更强)" }, "I1772": { "cls": "items", "name": "新物品", "canUseItemEffect": "true" }, "I1773": { "cls": "items", "name": "新物品", "canUseItemEffect": "true" }, "I1774": { "cls": "equips", "name": "银霜斩", "canUseItemEffect": "true", "equip": { "type": "卷轴", "value": { "atk": 10 }, "percentage": {} }, "text": "下品功法,提升勇者的力量" }, "I1775": { "cls": "equips", "name": "新物品", "canUseItemEffect": "true" }, "I1776": { "cls": "items", "name": "新物品", "canUseItemEffect": "true" }, "I1777": { "cls": "items", "name": "新物品", "canUseItemEffect": "true" }, "I1778": { "cls": "items", "name": "新物品", "canUseItemEffect": "true" }, "I1779": { "cls": "items", "name": "新物品", "canUseItemEffect": "true" }, "I1780": { "cls": "items", "name": "新物品", "canUseItemEffect": "true" }, "I1781": { "cls": "items", "name": "新物品", "canUseItemEffect": "true" }, "I1782": { "cls": "items", "name": "新物品", "canUseItemEffect": "true" }, "I1783": { "cls": "constants", "name": "新物品", "canUseItemEffect": "true", "useItemEffect": "core.plugin.toggleShooting();" }, "I1784": { "cls": "items", "name": "强*魔力水晶", "canUseItemEffect": "true", "itemEffect": "core.status.hero.manamax += 30;\ncore.status.hero.atk += 0;\ncore.status.hero.def += 0;\ncore.status.hero.mdef += 0;", "itemEffectTip": "魔力上限+30" }, "I1785": { "cls": "items", "name": "五阶蓝药水", "canUseItemEffect": "true", "itemEffect": "core.status.hero.hp += 5000;\nif (core.getFlag(\"hard\") == 1)\n\thero.hp += 2500;\nif (core.getFlag(\"hard\") == 3)\n\thero.hp -= 2500;", "itemEffectTip": "恢复生命值" }, "I1786": { "cls": "items", "name": "六阶粉药水", "canUseItemEffect": "true", "itemEffect": "core.status.hero.hp += 8000;\nif (core.getFlag(\"hard\") == 1)\n\thero.hp += 2000;\nif (core.getFlag(\"hard\") == 3)\n\thero.hp -= 4000;", "itemEffectTip": "恢复生命值" }, "I1787": { "cls": "items", "name": "七阶血药水", "canUseItemEffect": "true", "itemEffect": "core.status.hero.hp += 10000;\nif (core.getFlag(\"hard\") == 1)\n\thero.hp += 5000;\nif (core.getFlag(\"hard\") == 3)\n\thero.hp -= 5000;", "itemEffectTip": "恢复生命值" }, "I1788": { "cls": "items", "name": "八阶金药水", "canUseItemEffect": "true", "itemEffect": "core.status.hero.hp += 20000;\nif (core.getFlag(\"hard\") == 1)\n\thero.hp += 10000;\nif (core.getFlag(\"hard\") == 3)\n\thero.hp -= 10000;", "itemEffectTip": "恢复生命值" }, "I1789": { "cls": "items", "name": "九阶青药水", "canUseItemEffect": "true", "itemEffect": "core.status.hero.hp += 50000;\nif (core.getFlag(\"hard\") == 1)\n\thero.hp += 30000;\nif (core.getFlag(\"hard\") == 3)\n\thero.hp -= 25000;", "itemEffectTip": "恢复生命值" } }