var items_296f5d02_12fd_4166_a7c1_b5e830c9ee3a = { "yellowKey": { "cls": "tools", "name": "黄钥匙", "text": "用来开黄色的门", "hideInToolbox": false }, "blueKey": { "cls": "tools", "name": "蓝钥匙", "text": "用来开蓝色的门", "hideInToolbox": false }, "redKey": { "cls": "tools", "name": "红钥匙", "text": "用来开红色的门", "hideInToolbox": false }, "redGem": { "cls": "items", "name": "红宝石", "text": "攻击+${core.values.redGem}", "itemEffect": "core.status.hero.atk += core.values.redGem * core.status.thisMap.ratio", "itemEffectTip": ",攻击+${core.values.redGem * core.status.thisMap.ratio}", "useItemEffect": "core.status.hero.atk += core.values.redGem", "canUseItemEffect": "true" }, "blueGem": { "cls": "items", "name": "蓝宝石", "text": ",防御+${core.values.blueGem}", "itemEffect": "core.status.hero.def += core.values.blueGem * core.status.thisMap.ratio", "itemEffectTip": ",防御+${core.values.blueGem * core.status.thisMap.ratio}", "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": "core.status.hero.hp += core.values.redPotion", "itemEffectTip": ",生命+${core.values.redPotion }", "useItemEffect": "core.status.hero.hp += core.values.redPotion", "canUseItemEffect": "true" }, "bluePotion": { "cls": "items", "name": "蓝血瓶", "text": ",生命+${core.values.bluePotion}", "itemEffect": "core.status.hero.hp += core.values.bluePotion", "itemEffectTip": ",生命+${core.values.bluePotion}", "useItemEffect": "core.status.hero.hp += core.values.bluePotion", "canUseItemEffect": "true" }, "yellowPotion": { "cls": "items", "name": "黄血瓶", "text": ",生命+${core.values.yellowPotion}", "itemEffect": "core.status.hero.hp += core.values.yellowPotion", "itemEffectTip": ",生命+${core.values.yellowPotion}", "useItemEffect": "core.status.hero.hp += core.values.yellowPotion", "canUseItemEffect": "true" }, "greenPotion": { "cls": "items", "name": "绿血瓶", "text": ",生命+${core.values.greenPotion}", "itemEffect": "core.status.hero.hp += core.values.greenPotion", "itemEffectTip": ",生命+${core.values.greenPotion }", "useItemEffect": "core.status.hero.hp += core.values.greenPotion", "canUseItemEffect": "true" }, "sword0": { "cls": "items", "name": "破旧的剑", "text": "一把已经生锈的剑", "equip": { "type": 0, "animate": "sword", "value": { "atk": 0 } }, "itemEffect": "core.status.hero.atk += 0", "itemEffectTip": ",攻击+0" }, "sword1": { "cls": "items", "name": "铁剑", "text": "一把很普通的铁剑", "equip": { "type": 0, "animate": "sword", "value": { "atk": 10 } }, "itemEffect": "core.status.hero.atk += 10", "itemEffectTip": ",攻击+10" }, "sword2": { "cls": "items", "name": "银剑", "text": "一把很普通的银剑", "equip": { "type": 0, "animate": "sword", "value": { "atk": 20 } }, "itemEffect": "core.status.hero.atk += 20", "itemEffectTip": ",攻击+20" }, "sword3": { "cls": "items", "name": "骑士剑", "text": "一把很普通的骑士剑", "equip": { "type": 0, "animate": "sword", "value": { "atk": 40 } }, "itemEffect": "core.status.hero.atk += 50", "itemEffectTip": ",攻击+50" }, "sword4": { "cls": "items", "name": "圣剑", "text": "一把很普通的圣剑", "equip": { "type": 0, "animate": "sword", "value": { "atk": 80 } }, "itemEffect": "core.status.hero.atk += 80", "itemEffectTip": ",攻击+80" }, "sword5": { "cls": "items", "name": "神圣剑", "text": "一把很普通的神圣剑", "equip": { "type": 0, "animate": "sword", "value": { "atk": 160 } }, "itemEffect": "core.status.hero.atk += 100", "itemEffectTip": ",攻击+100" }, "shield0": { "cls": "items", "name": "破旧的盾", "text": "一个很破旧的铁盾", "equip": { "type": 1, "value": { "def": 0 } }, "itemEffect": "core.status.hero.def += 0", "itemEffectTip": ",防御+0" }, "shield1": { "cls": "items", "name": "铁盾", "text": "一个很普通的铁盾", "equip": { "type": 1, "value": { "def": 10 } }, "itemEffect": "core.status.hero.def += 10", "itemEffectTip": ",防御+10" }, "shield2": { "cls": "items", "name": "银盾", "text": "一个很普通的银盾", "equip": { "type": 1, "value": { "def": 20 } }, "itemEffect": "core.status.hero.def += 20", "itemEffectTip": ",防御+20" }, "shield3": { "cls": "items", "name": "骑士盾", "text": "一个很普通的骑士盾", "equip": { "type": 1, "value": { "def": 40 } }, "itemEffect": "core.status.hero.def += 50", "itemEffectTip": ",防御+40" }, "shield4": { "cls": "items", "name": "圣盾", "text": "一个很普通的圣盾", "equip": { "type": 1, "value": { "def": 80 } }, "itemEffect": "core.status.hero.def += 80", "itemEffectTip": ",防御+80" }, "shield5": { "cls": "items", "name": "神圣盾", "text": "一个很普通的神圣盾", "equip": { "type": 1, "value": { "def": 100, "mdef": 100 } }, "itemEffect": "core.status.hero.def += 100;core.status.hero.mdef += 100", "itemEffectTip": ",防御+100,护盾+100" }, "superPotion": { "cls": "items", "name": "圣水", "itemEffect": "core.status.hero.hp *= 2", "itemEffectTip": ",生命值翻倍", "useItemEffect": "core.status.hero.hp *= 2;", "canUseItemEffect": "true", "text": "生命值翻倍" }, "silverCoin": { "cls": "items", "name": "银币", "itemEffect": "core.status.hero.money += 500", "itemEffectTip": ",金币+500" }, "book": { "cls": "constants", "name": "怪物手册", "text": "持有后可以察看怪物信息", "hideInToolbox": false, "useItemEffect": "core.ui.drawBook(0);", "canUseItemEffect": "true" }, "fly": { "cls": "constants", "name": "楼层传送器", "text": "在访问过的楼层间任意往来(快捷键g)", "hideInReplay": true, "hideInToolbox": false, "useItemEffect": "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": "持有时打败怪物可得双倍金币" }, "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) {\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.drawTip(core.material.items[itemId].name + '使用成功');\n\t} else {\n\t\tcore.drawTip(\"当前无法使用\" + core.material.items[itemId].name);\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": "可以打开一扇铁门" }, "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) {\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('pickaxe.mp3');\n\t\tcore.drawTip(core.material.items[itemId].name + '使用成功');\n\t} else {\n\t\t// 无法使用\n\t\tcore.drawTip(\"当前无法使用\" + core.material.items[itemId].name);\n\t\tcore.addItem(itemId, 1);\n\t\treturn;\n\t}\n})();", "canUseItemEffect": "core.status.floorId != 'MT78'" }, "icePickaxe": { "cls": "tools", "name": "破冰镐", "text": "可以破坏勇士面前的一堵冰墙", "useItemEffect": "(function () {\n\tcore.removeBlock(core.nextX(), core.nextY());\n\tcore.drawTip(core.material.items[itemId].name + '使用成功');\n})();", "canUseItemEffect": "(function () {\n\treturn core.getBlockId(core.nextX(), core.nextY()) == 'ice';\n})();" }, "bomb": { "cls": "tools", "name": "炸弹", "text": "可以炸掉勇士面前的怪物", "useItemEffect": "(function () {\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 bombList = []; // 炸掉的怪物坐标列表\n\tvar bombFourDirections = false; // 是否四方向可炸;如果是将其改成true。\n\tif (bombFourDirections) {\n\t\t// 四方向炸\n\t\tfor (var direction in core.utils.scan) {\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 (canBomb(nx, ny)) {\n\t\t\t\tbombList.push([nx, ny]);\n\t\t\t\tcore.removeBlock(nx, ny);\n\t\t\t}\n\t\t}\n\t} else {\n\t\t// 仅炸当前\n\t\tif (canBomb(core.nextX(), core.nextY())) {\n\t\t\tbombList.push([core.nextX(), core.nextY()]);\n\t\t\tcore.removeBlock(core.nextX(), core.nextY());\n\t\t}\n\t}\n\n\tif (bombList.length > 0) {\n\t\tcore.playSound('bomb.mp3');\n\t\tcore.drawTip(core.material.items[itemId].name + '使用成功');\n\t} else {\n\t\tcore.drawTip('当前无法使用' + core.material.items[itemId].name);\n\t\tcore.addItem(itemId, 1);\n\t\treturn;\n\t}\n\n\t// 炸弹后事件\n\t// 这是一个使用炸弹也能开门的例子\n\t/*\n\tif (core.status.floorId=='xxx' && core.terrainExists(x0,y0,'specialDoor') // 某个楼层,该机关门存在\n\t\t&& !core.enemyExists(x1,y1) && !core.enemyExists(x2,y2)) // 且守门的怪物都不存在\n\t{\n\t\tcore.insertAction([ // 插入事件\n\t\t\t{\"type\": \"openDoor\", \"loc\": [x0,y0]} // 开门\n\t\t])\n\t}\n\t*/\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 - 3 - 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 - 3 - core.getHeroLoc('y');\n\tif (core.floors[core.status.floorId].upFloor[0] == toX && core.floors[core.status.floorId].upFloor[1] == toY) return false;\n\tif (core.floors[core.status.floorId].downFloor[0] == toX && core.floors[core.status.floorId].downFloor[1] == toY) return false;\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.status.maps[floorId].downFloor[0], core.status.maps[floorId].downFloor[1]], \"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, { x: core.status.maps[floorId].downFloor[0], y: core.status.maps[floorId].downFloor[1], direction: \"down\" }, 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\tvar canFlyid = [\"nandu\", \"QISHI\", \"MUDI\", \"didi\", \"guantong\", \"shijing\", \"yanhai\", \"jueshen\", \"weizhi\", \"anshi\", \"U49\", \"U48\", \"U47\", \"U46\", \"U45\", \"U44\", \"U43\", \"U42\", \"U41\", \"U40\", \"U39\", \"U38\", \"U37\", \"liuchongtian\", \"wuchongtian\", \"sichongtian\", \"sanchongtian\", \"erchongtian\", \"yichongtian\", \"U36\", \"U35\", \"U34\", \"U33\", \"U32\", \"U31\", \"U30\", \"U29\", \"U28\", \"U27\", \"U26\", \"mishi\", \"chongge\", \"wujian\", \"lingqu\", \"ange\", \"U25\", \"U24\", \"U23\", \"U22\", \"U21\", \"U20\", \"U19\", \"U18\", \"U17\", \"shuanglin\", \"cuoxuan\", \"fengche\", \"nianlian\", \"U16\", \"U15\", \"U14\", \"U13\", \"U12\", \"U11\", \"U10\", \"sanding\", \"erding\", \"yiding\", \"U9\", \"U8\", \"U7\", \"U6\", \"U5\", \"kongyan\", \"dashi\", \"U4\", \"U3\", \"U2\", \"U1\", \"MT0\", \"MT1\", \"shenhai\", \"MT2\", \"MT3\", \"MT4\", \"yanjiusuo\", \"MT5\", \"MT6\", \"MT7\", \"MT8\", \"MT9\", \"CETAI\", \"MT10\", \"MT11\", \"MT12\", \"MT13\", \"MT14\", \"MT15\", \"MT16\", \"XIANJIE\", \"MT17\", \"MT18\", \"MT19\", \"zhenhong\", \"MT20\", \"MT21\", \"MT22\", \"MT23\", \"MT24\", \"MT25\", \"xietu\", \"MT26\", \"MT27\", \"MT28\", \"MT29\", \"MT30\", \"MT31\", \"MT32\", \"MT33\", \"MT34\", \"MT35\", \"MT36\", \"xuetan\", \"MT37\", \"MT38\", \"MT39\", \"MT40\", \"MT41\", \"MT42\", \"MT43\", \"MT44\", \"MT45\", \"MT46\", \"MT47\", \"MT48\", \"MT49\", \"bishi\", \"MT50\", \"MT51\", \"MT52\", \"MT53\", \"MT54\", \"MT55\", \"MT56\", \"MT57\", \"MT58\", \"MT59\", \"MT60\", \"MT61\", \"MT62\", \"MT63\", \"MT64\", \"jiange\", \"MT65\", \"MT66\", \"MT67\", \"MT68\", \"MT69\", \"MT70\", \"MT71\", \"MT72\", \"MT73\", \"MT74\", \"MT75\", \"MT76\", \"MT77\", \"MT78\", \"MT79\", \"MT80\", \"MT81\", \"MT99\", \"tawai\", \"PIANTOU1\", \"PIANTOU2\", \"PIANTOU3\", \"PIANTOU4\", \"PIANTOU5\", \"PIANTOU6\", \"PIANTOU7\", \"PIANTOU8\", \"PIANTOU9\", \"PIANTOU10\", \"PIANTOU11\", \"huxiao1\", \"huxiao2\", \"huxiao3\", \"duwei1\", \"duwei2\", \"duwei3\", \"duwei4\", \"jieke1\", \"jieke2\", \"jieke3\", \"jieke4\", \"jieke5\", \"wangyang30\", \"shuoming\"]\n\tif (core.inArray(canFlyid, floorId))\n\t\treturn true;\n\telse\n\t\t/*\n\tif (index < core.floorIds.length - 1) {\n\t\tvar toId = core.floorIds[index + 1],\n\t\t\ttoX = core.status.maps[floorId + 1].downFloor[0],\n\t\t\ttoY = core.status.maps[floorId + 1].downFloor[1];\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\t\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.drawMap();\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": "input", "text": "请输入生命魔杖使用次数:(0-${item:lifeWand})" }, { "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" }, "成功使用${flag:input}次生命魔杖,恢复${flag:input*100}点生命。" ], "false": [ "输入不合法!" ] } ], "canUseItemEffect": "true" }, "jumpShoes": { "cls": "tools", "name": "跳跃靴", "text": "能跳跃到前方两格处", "useItemEffect": "core.playSound(\"jump.mp3\"); core.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.setFlag('skill', skillValue); // 开技能1\n\t\t\tcore.setFlag('skillName', skillName); // 设置技能名\n\t\t} else {\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": "items", "name": "新物品" }, "I466": { "cls": "items", "name": "悲戚之盾", "text": "一个很普通的铁盾", "equip": { "type": 1, "value": { "def": 100 } }, "itemEffect": "core.status.hero.def += 100", "itemEffectTip": ",防御+100" }, "I516": { "cls": "items", "name": "镇塔剑" }, "I517": { "cls": "items", "name": "镇塔盾" }, "I530": { "cls": "constants", "name": "游戏帮助" }, "I535": { "cls": "items", "name": "血剑" }, "I536": { "cls": "items", "name": "新物品" }, "I537": { "cls": "items", "name": "血盾" } }