items_296f5d02_12fd_4166_a7c1_b5e830c9ee3a = 
{
	"items": {
		"888": {
			"cls": "items",
			"name": "誅仙劍"
		},
		"yellowKey": {
			"cls": "keys",
			"name": "黄鑰匙"
		},
		"blueKey": {
			"cls": "keys",
			"name": "藍鑰匙"
		},
		"redKey": {
			"cls": "keys",
			"name": "紅鑰匙"
		},
		"redJewel": {
			"cls": "items",
			"name": "紅寶石"
		},
		"blueJewel": {
			"cls": "items",
			"name": "藍寶石"
		},
		"greenJewel": {
			"cls": "items",
			"name": "綠寶石"
		},
		"yellowJewel": {
			"cls": "items",
			"name": "黄宝石"
		},
		"redPotion": {
			"cls": "items",
			"name": "紅血瓶"
		},
		"bluePotion": {
			"cls": "items",
			"name": "藍血瓶"
		},
		"yellowPotion": {
			"cls": "items",
			"name": "黄血瓶"
		},
		"greenPotion": {
			"cls": "items",
			"name": "綠血瓶"
		},
		"sword1": {
			"cls": "items",
			"name": "鐵劍",
			"text": "一把很普通的铁剑"
		},
		"sword2": {
			"cls": "items",
			"name": "銀劍",
			"text": "一把很普通的银剑"
		},
		"sword3": {
			"cls": "items",
			"name": "王者之劍",
			"text": "一把很普通的骑士剑"
		},
		"sword4": {
			"cls": "items",
			"name": "聖劍",
			"text": "一把很普通的圣剑"
		},
		"sword5": {
			"cls": "items",
			"name": "天聖劍",
			"text": "一把很普通的神圣剑"
		},
		"shield1": {
			"cls": "items",
			"name": "鐵盾",
			"text": "一个很普通的铁盾"
		},
		"shield2": {
			"cls": "items",
			"name": "銀盾",
			"text": "一个很普通的银盾"
		},
		"shield3": {
			"cls": "items",
			"name": "王者之盾",
			"text": "一个很普通的骑士盾"
		},
		"shield4": {
			"cls": "items",
			"name": "聖盾",
			"text": "一个很普通的圣盾"
		},
		"shield5": {
			"cls": "items",
			"name": "天聖盾",
			"text": "一个很普通的神圣盾"
		},
		"superPotion": {
			"cls": "items",
			"name": "聖水"
		},
		"moneyPocket": {
			"cls": "items",
			"name": "金钱袋"
		},
		"sword0": {
			"cls": "constants",
			"name": "空剑",
			"text": "使用可脱掉当前装备的剑。"
		},
		"shield0": {
			"cls": "constants",
			"name": "空盾",
			"text": "使用可脱掉当前装备的盾。"
		},
		"book": {
			"cls": "constants",
			"name": "怪物手册",
			"text": "可以查看當前樓層各怪物屬性"
		},
		"fly": {
			"cls": "constants",
			"name": "楼层传送器",
			"text": "可以自由往来去过的楼层"
		},
		"coin": {
			"cls": "constants",
			"name": "幸运金币",
			"text": "持有时打败怪物可得双倍金币"
		},
		"snow": {
			"cls": "constants",
			"name": "冰冻徽章",
			"text": "可以将面前的熔岩变成平地"
		},
		"cross": {
			"cls": "constants",
			"name": "誅仙十字符",
			"text": "封神秘寶，持有後使封神仙帥的無敵屬性無效化"
		},
		"knife": {
			"cls": "constants",
			"name": "屠龙匕首",
			"text": "该道具尚未被定义"
		},
		"shoes": {
			"cls": "constants",
			"name": "绿鞋",
			"text": "持有时无视负面地形"
		},
		"bigKey": {
			"cls": "tools",
			"name": "大黄门钥匙",
			"text": "可以开启当前层所有黄门"
		},
		"greenKey": {
			"cls": "tools",
			"name": "绿钥匙",
			"text": "可以打开一扇绿门"
		},
		"steelKey": {
			"cls": "tools",
			"name": "铁门钥匙",
			"text": "可以打开一扇铁门"
		},
		"pickaxe": {
			"cls": "tools",
			"name": "破牆鎬",
			"text": "可以破壞勇士面前的牆"
		},
		"icePickaxe": {
			"cls": "tools",
			"name": "破冰镐",
			"text": "可以破坏勇士面前的一堵冰墙"
		},
		"bomb": {
			"cls": "tools",
			"name": "炸彈",
			"text": "可以炸掉勇士面前的怪物"
		},
		"centerFly": {
			"cls": "tools",
			"name": "中心對稱飛行器",
			"text": "可以飛向當前樓層中心對稱的位置"
		},
		"upFly": {
			"cls": "tools",
			"name": "上楼器",
			"text": "可以飞往楼上的相同位置"
		},
		"downFly": {
			"cls": "tools",
			"name": "下楼器",
			"text": "可以飞往楼下的相同位置"
		},
		"earthquake": {
			"cls": "tools",
			"name": "地震卷轴",
			"text": "可以破坏当前层的所有墙"
		},
		"poisonWine": {
			"cls": "tools",
			"name": "解毒药水",
			"text": "可以解除中毒状态"
		},
		"weakWine": {
			"cls": "tools",
			"name": "解衰药水",
			"text": "可以解除衰弱状态"
		},
		"curseWine": {
			"cls": "tools",
			"name": "解咒药水",
			"text": "可以解除诅咒状态"
		},
		"superWine": {
			"cls": "tools",
			"name": "万能药水",
			"text": "可以解除所有不良状态"
		},
		"hammer": {
			"cls": "tools",
			"name": "圣锤",
			"text": "可以炸掉勇士面前的怪物"
		},
		"lifeWand": {
			"cls": "tools",
			"name": "生命魔杖",
			"text": "可以恢复100点生命值"
		},
		"jumpShoes": {
			"cls": "tools",
			"name": "跳跃靴",
			"text": "能跳跃到前方两格处"
		},
		"bigblood": {
			"cls": "items",
			"name": "大血瓶"
		},
		"I300": {
			"cls": "items",
			"name": "新物品"
		},
		"I301": {
			"cls": "items",
			"name": "新物品"
		},
		"I302": {
			"cls": "items",
			"name": "新物品"
		},
		"I303": {
			"cls": "items",
			"name": "新物品"
		},
		"I304": {
			"cls": "items",
			"name": "新物品"
		},
		"I305": {
			"cls": "items",
			"name": "新物品"
		},
		"I306": {
			"cls": "items",
			"name": "新物品"
		},
		"I307": {
			"cls": "items",
			"name": "新物品"
		},
		"I308": {
			"cls": "items",
			"name": "新物品"
		},
		"I309": {
			"cls": "items",
			"name": "新物品"
		},
		"I310": {
			"cls": "items",
			"name": "新物品"
		},
		"I311": {
			"cls": "items",
			"name": "新物品"
		},
		"I312": {
			"cls": "items",
			"name": "新物品"
		},
		"I313": {
			"cls": "items",
			"name": "新物品"
		},
		"I314": {
			"cls": "items",
			"name": "新物品"
		},
		"I315": {
			"cls": "items",
			"name": "新物品"
		},
		"LargeRedPotion": {
			"cls": "items",
			"name": "大紅血瓶"
		},
		"LargeBluePotion": {
			"cls": "items",
			"name": "大藍血瓶"
		},
		"3YellowKey": {
			"cls": "items",
			"name": "大黃鑰匙串"
		},
		"3BlueKey": {
			"cls": "items",
			"name": "大藍鑰匙串"
		},
		"2Attack": {
			"cls": "items",
			"name": "大紅寶石"
		},
		"2Defence": {
			"cls": "items",
			"name": "大藍寶石"
		},
		"LargeGreen": {
			"cls": "items",
			"name": "大綠寶石"
		},
		"MiddleYellowKey": {
			"cls": "items",
			"name": "小黃鑰匙串"
		},
		"bluecrosss": {
			"cls": "constants",
			"name": "十字架",
			"text": "封神秘寶"
		}
	},
	"itemEffect": {
		"redJewel": "core.status.hero.atk += 1",
		"blueJewel": "core.status.hero.def +=1",
		"greenJewel": "core.status.hero.mdef +=5",
		"yellowJewel": "core.status.hero.hp+=1000;core.status.hero.atk+=6;core.status.hero.def+=6;core.status.hero.mdef+=10;",
		"redPotion": "core.status.hero.hp+=50;",
		"bluePotion": "core.status.hero.hp+=100;",
		"yellowPotion": "core.status.hero.hp+=250;",
		"greenPotion": "core.status.hero.hp+=500;",
		"sword1": "core.status.hero.atk +=5",
		"sword2": "core.status.hero.atk +=15",
		"sword3": "core.status.hero.atk +=30",
		"sword4": "core.status.hero.atk += 50",
		"sword5": "core.status.hero.atk +=80",
		"shield1": "core.status.hero.def +=5",
		"shield2": "core.status.hero.def +=15",
		"shield3": "core.status.hero.def +=30",
		"shield4": "core.status.hero.def +=50",
		"shield5": "core.status.hero.def +=80",
		"bigKey": "core.status.hero.items.keys.yellowKey++;core.status.hero.items.keys.blueKey++;core.status.hero.items.keys.redKey++;",
		"superPotion": "core.status.hero.hp *= 2",
		"moneyPocket": "core.status.hero.money += core.values.moneyPocket",
		"bigblood": "core.status.hero.hp+=1000;",
		"LargeRedPotion": "core.status.hero.hp+=800;",
		"LargeBluePotion": "core.status.hero.hp+=1000;",
		"2Attack": "core.status.hero.atk +=2",
		"2Defence": "core.status.hero.def +=2",
		"LargeGreen": "core.status.hero.mdef +=10",
		"3YellowKey": "core.addItem('yellowKey',3)",
		"3BlueKey": "core.addItem('blueKey',3)",
		"MiddleYellowKey": "core.addItem('yellowKey',2)"
	},
	"itemEffectTip": {
		"redJewel": "'，攻击+1'",
		"blueJewel": "'，防御+1'",
		"greenJewel": "'，魔防+5'",
		"yellowJewel": "'，全属性提升'",
		"redPotion": "'，生命+50'",
		"bluePotion": "'，生命+100'",
		"yellowPotion": "'，生命+250'",
		"greenPotion": "'，生命+500'",
		"sword1": "'，攻擊+5'",
		"sword2": "'，攻擊+15'",
		"sword3": "'，攻擊+30'",
		"sword4": "'，攻擊+50'",
		"sword5": "'，攻擊+80'",
		"shield1": "'，防禦+5'",
		"shield2": "'，防禦+15'",
		"shield3": "'，防禦+30'",
		"shield4": "'，防禦+50'",
		"shield5": "'，防禦+80'",
		"bigKey": "'，全钥匙+1'",
		"superPotion": "'，生命值翻倍'",
		"moneyPocket": "'，金币+'+core.values.moneyPocket",
		"bigblood": "生命+1000",
		"LargeRedPotion": "'，生命+800'",
		"LargeBluePotion": "'，生命+1000'",
		"2Attack": "'，攻擊+2'",
		"2Defence": "'，防禦+2'",
		"LargeGreen": "'，魔防+10'",
		"3BlueKey": "',藍鑰匙數量+3'",
		"3YellowKey": "',黃鑰匙數量+3'",
		"MiddleYellowKey": "',黃鑰匙數量+2'"
	},
	"useItemEffect": {
		"book": "core.ui.drawBook(0);",
		"fly": "core.ui.drawFly(core.status.hero.flyRange.indexOf(core.status.floorId));",
		"earthquake": "core.removeBlockByIds(core.status.floorId, core.status.event.data);\ncore.drawMap(core.status.floorId, function () {\n    core.drawTip(core.material.items[itemId].name + '使用成功');\n});",
		"pickaxe": "core.removeBlockByIds(core.status.floorId, core.status.event.data);\ncore.drawMap(core.status.floorId, function () {\n\tcore.playSound(\"collapse.mp3\");\n    core.drawTip(core.material.items[itemId].name + '使用成功');\n});",
		"icePickaxe": "core.removeBlockByIds(core.status.floorId, core.status.event.data);\ncore.drawMap(core.status.floorId, function () {\n    core.drawTip(core.material.items[itemId].name + '使用成功');\n});",
		"snow": "core.removeBlockByIds(core.status.floorId, core.status.event.data);\ncore.drawMap(core.status.floorId, function () {\n    core.drawTip(core.material.items[itemId].name + '使用成功');\n});",
		"bigKey": "core.removeBlockByIds(core.status.floorId, core.status.event.data);\ncore.drawMap(core.status.floorId, function () {\n    core.drawTip(core.material.items[itemId].name + '使用成功');\n});",
		"bomb": "core.removeBlockByIds(core.status.floorId, core.status.event.data);\ncore.drawMap(core.status.floorId, function () {\n\tcore.playSound(\"explosion.mp3\");\n    core.drawTip(core.material.items[itemId].name + '使用成功');\n    core.events.afterUseBomb();\n});",
		"hammer": "core.removeBlockByIds(core.status.floorId, core.status.event.data);\ncore.drawMap(core.status.floorId, function () {\n    core.drawTip(core.material.items[itemId].name + '使用成功');\n    core.events.afterUseBomb();\n});",
		"centerFly": "core.clearMap('hero');\ncore.setHeroLoc('x', (core.bigmap.width||13)-1-core.getHeroLoc('x'));\ncore.setHeroLoc('y', (core.bigmap.height||13)-1-core.getHeroLoc('y'));\ncore.drawHero();\ncore.playSound(\"teleport.mp3\");\ncore.drawTip(core.material.items[itemId].name + '使用成功');",
		"upFly": "var loc = {'direction': core.status.hero.loc.direction, 'x': core.status.event.data.x, 'y': core.status.event.data.y};\ncore.changeFloor(core.status.event.data.id, null, loc, null, function (){\n    core.drawTip(core.material.items[itemId].name + '使用成功');\n    core.replay();\n});",
		"downFly": "var loc = {'direction': core.status.hero.loc.direction, 'x': core.status.event.data.x, 'y': core.status.event.data.y};\ncore.changeFloor(core.status.event.data.id, null, loc, null, function (){\n    core.drawTip(core.material.items[itemId].name + '使用成功');\n    core.replay();\n});",
		"poisonWine": "core.setFlag('poison', false);",
		"weakWine": "core.setFlag('weak', false);\ncore.status.hero.atk += core.getFlag('weakAtk', core.values.weakValue);\ncore.status.hero.def += core.getFlag('weakDef', core.values.weakValue);",
		"curseWine": "core.setFlag('curse', false);",
		"superWine": "core.setFlag('poison', false);\nif (core.hasFlag('weak')) {\n    core.setFlag('weak', false);\n    core.status.hero.atk += core.getFlag('weakAtk', core.values.weakValue);\n    core.status.hero.def += core.getFlag('weakDef', core.values.weakValue);\n}\ncore.setFlag('curse', false);",
		"sword0": "core.plugin.useEquipment(itemId)",
		"sword1": "core.plugin.useEquipment(itemId)",
		"sword2": "core.plugin.useEquipment(itemId)",
		"sword3": "core.plugin.useEquipment(itemId)",
		"sword4": "core.plugin.useEquipment(itemId)",
		"sword5": "core.plugin.useEquipment(itemId)",
		"shield0": "core.plugin.useEquipment(itemId)",
		"shield1": "core.plugin.useEquipment(itemId)",
		"shield2": "core.plugin.useEquipment(itemId)",
		"shield3": "core.plugin.useEquipment(itemId)",
		"shield4": "core.plugin.useEquipment(itemId)",
		"shield5": "core.plugin.useEquipment(itemId)",
		"lifeWand": "core.insertAction([\n\t{\"type\": \"input\", \"text\": \"请输入生命魔杖使用次数：(0-${item:lifeWand})\"},\n\t{\"type\": \"if\", \"condition\": \"flag:input<=item:lifeWand\",\n\t\t\"true\": [\n\t\t\t{\"type\": \"setValue\", \"name\": \"item:lifeWand\", \"value\": \"item:lifeWand-flag:input\"},\n\t\t\t{\"type\": \"setValue\", \"name\": \"status:hp\", \"value\": \"status:hp+flag:input*100\"},\n\t\t\t\"成功使用${flag:input}次生命魔杖，恢复${flag:input*100}点生命。\"\n\t\t],\n\t\t\"false\": [\"输入不合法！\"]\n\t},\n]);\ncore.setItem('lifeWand', core.itemCount('lifeWand')+1);",
		"jumpShoes": "core.insertAction({\"type\":\"jumpHero\",\"loc\":[core.nextX(2),core.nextY(2)]});"
	},
	"canUseItemEffect": {
		"book": "true",
		"fly": "core.status.hero.flyRange.indexOf(core.status.floorId)>=0",
		"pickaxe": "var able=false;\nvar ids = [], id2s = [];\nfor (var i in core.status.thisMap.blocks) {\n\tvar block = core.status.thisMap.blocks[i];\n\tif (core.isset(block.event) && !block.disable && Math.abs(block.x-core.status.hero.loc.x)+Math.abs(block.y-core.status.hero.loc.y)<=1\n\t\t&& (block.event.id == 'yellowWall' || block.event.id=='whiteWall' || block.event.id=='blueWall')) // 能破哪些墙\n\t{\n\t\t// 四个方向\n\t\tif (core.flags.pickaxeFourDirections || (block.x == core.nextX() && block.y == core.nextY()))\n\t\t\tids.push(i);\n\t\telse id2s.push(i);\n\t}\n}\nif (ids.length>0) {\n\tcore.status.event.data = ids;\n\table=true;\n}\nelse if (id2s.length==1) {\n\tcore.status.event.data = id2s;\n\table=true;\n}\nable",
		"icePickaxe": "var able=false;\nfor (var i in core.status.thisMap.blocks) {\n\tvar block = core.status.thisMap.blocks[i];\n\tif (core.isset(block.event) && !block.disable && block.x==core.nextX() && block.y==core.nextY() && block.event.id=='ice') {\n\t\tcore.status.event.data = [i];\n\t\table=true;\n\t}\n}\nable",
		"bomb": "var able=false;\nvar ids = [], id2s = [];\nfor (var i in core.status.thisMap.blocks) {\n\tvar block = core.status.thisMap.blocks[i];\n\tif (core.isset(block.event) && !block.disable && block.event.cls.indexOf('enemy')==0 && Math.abs(block.x-core.status.hero.loc.x)+Math.abs(block.y-core.status.hero.loc.y)<=1) {\n\t\tvar enemy = core.material.enemys[block.event.id];\n\t\tif (core.isset(enemy) && enemy.notBomb) continue;\n\t\tif (core.flags.bombFourDirections || (block.x==core.nextX() && block.y==core.nextY()))\n\t\t\tids.push(i);\n\t\telse\n\t\t\tid2s.push(i);\n\t}\n}\nif (ids.length>0) {\n\tcore.status.event.data = ids;\n\table=true;\n}\nelse if (id2s.length==1) {\n\tcore.status.event.data = id2s;\n\table=true;\n}\nable",
		"hammer": "var able=false;\nvar ids = [], id2s = [];\nfor (var i in core.status.thisMap.blocks) {\n\tvar block = core.status.thisMap.blocks[i];\n\tif (core.isset(block.event) && !block.disable && block.event.cls.indexOf('enemy')==0 && \n\t\tMath.abs(block.x-core.status.hero.loc.x)+Math.abs(block.y-core.status.hero.loc.y)<=1) {\n\t\tvar enemy = core.material.enemys[block.event.id];\n\t\tif (core.isset(enemy) && enemy.notBomb) continue;\n\t\tif (block.x==core.nextX() && block.y==core.nextY())\n\t\t\tids.push(i);\n\t\telse\n\t\t\tid2s.push(i);\n\t}\n}\nif (ids.length>0) {\n\tcore.status.event.data = ids;\n\table=true;\n}\nelse if (id2s.length==1) {\n\tcore.status.event.data = id2s;\n\table=true;\n}\nable",
		"earthquake": "var able=false;\nvar ids = [];\nfor (var i in core.status.thisMap.blocks) {\n    var block = core.status.thisMap.blocks[i];\n    if (core.isset(block.event) && !block.disable && (block.event.id == 'yellowWall' || block.event.id == 'blueWall' || block.event.id == 'whiteWall')) // 能炸的墙壁\n        ids.push(i);\n}\nif (ids.length>0) {\n    core.status.event.data = ids;\n    able=true;\n}\nable",
		"centerFly": "var toX = (core.bigmap.width||13)-1-core.getHeroLoc('x'), toY = (core.bigmap.height||13)-1-core.getHeroLoc('y');\ncore.getBlockId(toX, toY) == null",
		"upFly": "var able=false;\nvar floorId = core.status.floorId, index = core.floorIds.indexOf(floorId);\nif (index<core.floorIds.length-1) {\n\tvar toId = core.floorIds[index+1], toX = core.getHeroLoc('x'), toY = core.getHeroLoc('y');\n\tvar mw = core.floors[toId].width||13, mh = core.floors[toId].height||13;\n\tif (toX>=0 && toX<mw && toY>=0 && toY<mh && core.getBlock(toX, toY, toId)==null) {\n\t\tcore.status.event.data = {'id': toId, 'x': toX, 'y': toY};\n\t\table=true;\n\t}\n}\nable",
		"downFly": "var able=false;\nvar floorId = core.status.floorId, index = core.floorIds.indexOf(floorId);\nif (index>0) {\n\tvar toId = core.floorIds[index-1], toX = core.getHeroLoc('x'), toY = core.getHeroLoc('y');\n\tvar mw = core.floors[toId].width||13, mh = core.floors[toId].height||13;\n\tif (toX>=0 && toX<mw && toY>=0 && toY<mh && core.getBlock(toX, toY, toId)==null) {\n\t\tcore.status.event.data = {'id': toId, 'x': toX, 'y': toY};\n\t\table=true;\n\t}\n}\nable",
		"snow": "var able=false;\nvar ids = [], id2s = [];\nfor (var i in core.status.thisMap.blocks) {\n\tvar block = core.status.thisMap.blocks[i];\n\tif (core.isset(block.event) && !block.disable && block.event.id == 'lava' && Math.abs(block.x-core.status.hero.loc.x)+Math.abs(block.y-core.status.hero.loc.y)<=1) {\n\t\tif (core.flags.snowFourDirections || (block.x == core.nextX() && block.y == core.nextY()))\n\t\t\tids.push(i);\n\t\telse id2s.push(i);\n\t}\n}\nif (ids.length>0) {\n\tcore.status.event.data = ids;\n\table=true;\n}\nelse if (id2s.length==1) {\n\tcore.status.event.data = id2s;\n\table=true;\n}\nable",
		"bigKey": "var able=false;\nvar ids = [];\nfor (var i in core.status.thisMap.blocks) {\n    var block = core.status.thisMap.blocks[i];\n    if (core.isset(block.event) && !block.disable && block.event.id == 'yellowDoor') {\n        ids.push(i);\n    }\n}\nif (ids.length>0) {\n    core.status.event.data = ids;\n    able=true;\n}\nable",
		"poisonWine": "core.hasFlag('poison')",
		"weakWine": "core.hasFlag('weak')",
		"curseWine": "core.hasFlag('curse')",
		"superWine": "core.hasFlag('poison') || core.hasFlag('weak') || core.hasFlag('curse')",
		"sword0": "true",
		"sword1": "true",
		"sword2": "true",
		"sword3": "true",
		"sword4": "true",
		"sword5": "true",
		"shield0": "true",
		"shield1": "true",
		"shield2": "true",
		"shield3": "true",
		"shield4": "true",
		"shiled5": "true",
		"shield5": "true",
		"lifeWand": "true",
		"jumpShoes": "var nx=core.nextX(2),ny=core.nextY(2);nx>=0&&nx<core.bigmap.width&&ny>=0&&ny<core.bigmap.height&&core.getBlock(nx,ny)==null"
	}
}