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": "红宝石",
		"text": "攻击+${core.values.redGem}",
		"itemEffect": "core.status.hero.atk += Math.round(core.values.redGem * core.status.thisMap.ratio)",
		"itemEffectTip": "，攻击+${Math.round(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 += Math.round(core.values.blueGem * core.status.thisMap.ratio)",
		"itemEffectTip": "，防御+${Math.round(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 += Math.round(core.values.greenGem * core.status.thisMap.ratio)",
		"itemEffectTip": "，护盾+${Math.round(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.atk += Math.round(core.values.redGem * core.status.thisMap.ratio);\ncore.status.hero.def += Math.round(core.values.blueGem * core.status.thisMap.ratio);\ncore.status.hero.mdef += Math.round(core.values.greenGem * core.status.thisMap.ratio);",
		"itemEffectTip": "，全属性提升",
		"useItemEvent": null,
		"canUseItemEffect": "true"
	},
	"redPotion": {
		"cls": "items",
		"name": "红血瓶",
		"text": "，生命+${core.values.redPotion}",
		"itemEffect": "core.status.hero.hp += Math.round(core.values.redPotion * core.status.thisMap.ratio)",
		"itemEffectTip": "，生命+${Math.round(core.values.redPotion * core.status.thisMap.ratio)}",
		"useItemEffect": "core.status.hero.hp += core.values.redPotion",
		"canUseItemEffect": "true",
		"useItemEvent": null
	},
	"bluePotion": {
		"cls": "items",
		"name": "蓝血瓶",
		"text": "，生命+${core.values.bluePotion}",
		"itemEffect": "core.status.hero.hp += Math.round(core.values.bluePotion * core.status.thisMap.ratio)",
		"itemEffectTip": "，生命+${Math.round(core.values.bluePotion * core.status.thisMap.ratio)}",
		"useItemEffect": "core.status.hero.hp += core.values.bluePotion",
		"canUseItemEffect": "true"
	},
	"yellowPotion": {
		"cls": "items",
		"name": "黄血瓶",
		"text": "，生命+${core.values.yellowPotion}",
		"itemEffect": "core.status.hero.hp += Math.round(core.values.yellowPotion * core.status.thisMap.ratio)",
		"itemEffectTip": "，生命+${Math.round(core.values.yellowPotion * core.status.thisMap.ratio)}",
		"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 * core.status.thisMap.ratio",
		"itemEffectTip": "，生命+${core.values.greenPotion * core.status.thisMap.ratio}",
		"useItemEffect": "core.status.hero.hp += core.values.greenPotion",
		"canUseItemEffect": "true"
	},
	"sword0": {
		"cls": "tools",
		"name": "战斗伤害",
		"text": "战斗时，伤害提高 ${core.itemCount('sword0')}%",
		"equip": null,
		"itemEffect": null,
		"itemEffectTip": null
	},
	"sword1": {
		"cls": "equips",
		"name": "铁剑",
		"text": "一把很普通的铁剑",
		"equip": {
			"type": 0,
			"animate": "sword",
			"value": {
				"atk": 10
			},
			"percentage": {}
		},
		"itemEffect": null,
		"itemEffectTip": "，攻击+10",
		"canUseItemEffect": true
	},
	"sword2": {
		"cls": "equips",
		"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 += 40",
		"itemEffectTip": "，攻击+40"
	},
	"sword4": {
		"cls": "equips",
		"name": "圣剑",
		"text": "一把很普通的圣剑",
		"equip": {
			"type": 1,
			"animate": "sword",
			"value": {
				"def": 3000,
				"atk": 3000,
				"hpmax": 100000000,
				"hp": 100000000
			},
			"percentage": {}
		},
		"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": "tools",
		"name": "战斗防御",
		"text": "战斗时，防御提高 ${core.itemCount('shield0')}%",
		"equip": null,
		"itemEffect": null,
		"itemEffectTip": null
	},
	"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 += 40",
		"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;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": "tools",
		"name": "战斗生命",
		"text": "战斗时，生命提高 ${core.itemCount('cross')}%"
	},
	"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": "可以打开一扇绿门",
		"hideInToolbox": true
	},
	"steelKey": {
		"cls": "tools",
		"name": "公司大门钥匙",
		"text": "可以打开BUG公司通往外面的大门"
	},
	"pickaxe": {
		"cls": "items",
		"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": "xxx",
		"text": "攻击速度提高 ${core.itemCount('centerFly')}%",
		"useItemEffect": null,
		"canUseItemEffect": 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 (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": "帕鲁欠绿老头 ${core.itemCount('earthquake')}% 业绩点数",
		"useItemEffect": null,
		"canUseItemEffect": null
	},
	"poisonWine": {
		"cls": "tools",
		"name": "BUG检测器",
		"text": "${core.plugin.BUG病毒检测器()}",
		"useItemEffect": null,
		"canUseItemEffect": null
	},
	"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": "items",
		"name": "破甲石",
		"text": null,
		"itemEffect": "core.破甲增幅(1);"
	},
	"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": "items",
		"name": "新物品"
	},
	"pack": {
		"cls": "tools",
		"name": "功能开关",
		"itemEffect": null,
		"itemEffectTip": null,
		"text": "可以打开或关闭[自动商店]",
		"canUseItemEffect": true,
		"useItemEffect": "core.addItem('pack', 1);",
		"useItemEvent": [
			{
				"type": "choices",
				"text": "\t[开关仙人,man]点击可以切换",
				"choices": [
					{
						"text": "自动商店",
						"action": [
							{
								"type": "setValue",
								"name": "temp:A",
								"value": "1",
								"norefresh": true
							},
							{
								"type": "while",
								"condition": "(temp:A===1)",
								"data": [
									{
										"type": "choices",
										"text": "\t[开关仙人,man]点击可以切换",
										"choices": [
											{
												"text": "自动加攻击[${flag:自动商店攻击 == 1 ? 'true' : 'false'}]",
												"action": [
													{
														"type": "if",
														"condition": "(flag:自动商店攻击 == 1)",
														"true": [
															{
																"type": "setValue",
																"name": "flag:自动商店攻击",
																"value": "0",
																"norefresh": true
															}
														],
														"false": [
															{
																"type": "setValue",
																"name": "flag:自动商店攻击",
																"value": "1",
																"norefresh": true
															},
															{
																"type": "function",
																"function": "function(){\ncore.自动商店选项变更('自动商店攻击');\n}"
															}
														]
													}
												]
											},
											{
												"text": "自动加防御[${flag:自动商店防御 == 1 ? 'true' : 'false'}]",
												"action": [
													{
														"type": "if",
														"condition": "(flag:自动商店防御 == 1)",
														"true": [
															{
																"type": "setValue",
																"name": "flag:自动商店防御",
																"value": "0",
																"norefresh": true
															}
														],
														"false": [
															{
																"type": "setValue",
																"name": "flag:自动商店防御",
																"value": "1",
																"norefresh": true
															},
															{
																"type": "function",
																"function": "function(){\ncore.自动商店选项变更('自动商店防御');\n}"
															}
														]
													}
												]
											},
											{
												"text": "自动加护盾[${flag:自动商店护盾 == 1 ? 'true' : 'false'}]",
												"action": [
													{
														"type": "if",
														"condition": "(flag:自动商店护盾 == 1)",
														"true": [
															{
																"type": "setValue",
																"name": "flag:自动商店护盾",
																"value": "0",
																"norefresh": true
															}
														],
														"false": [
															{
																"type": "setValue",
																"name": "flag:自动商店护盾",
																"value": "1",
																"norefresh": true
															},
															{
																"type": "function",
																"function": "function(){\ncore.自动商店选项变更('自动商店护盾');\n}"
															}
														]
													}
												]
											},
											{
												"text": "自动加生命[${flag:自动商店生命 == 1 ? 'true' : 'false'}]",
												"action": [
													{
														"type": "if",
														"condition": "(flag:自动商店生命== 1)",
														"true": [
															{
																"type": "setValue",
																"name": "flag:自动商店生命",
																"value": "0",
																"norefresh": true
															}
														],
														"false": [
															{
																"type": "setValue",
																"name": "flag:自动商店生命",
																"value": "1",
																"norefresh": true
															},
															{
																"type": "function",
																"function": "function(){\ncore.自动商店选项变更('自动商店生命');\n}"
															}
														]
													}
												]
											},
											{
												"text": "自动加攻速[${flag:自动商店攻速 == 1 ? 'true' : 'false'}]",
												"action": [
													{
														"type": "if",
														"condition": "(flag:自动商店攻速 == 1)",
														"true": [
															{
																"type": "setValue",
																"name": "flag:自动商店攻速",
																"value": "0",
																"norefresh": true
															}
														],
														"false": [
															{
																"type": "setValue",
																"name": "flag:自动商店攻速",
																"value": "1",
																"norefresh": true
															},
															{
																"type": "function",
																"function": "function(){\ncore.自动商店选项变更('自动商店攻速');\n}"
															}
														]
													}
												]
											},
											{
												"text": "自动加攻击攻速[${flag:自动商店攻击攻速 == 1 ? 'true' : 'false'}]",
												"action": [
													{
														"type": "if",
														"condition": "(flag:自动商店攻击攻速 == 1)",
														"true": [
															{
																"type": "setValue",
																"name": "flag:自动商店攻击攻速",
																"value": "0",
																"norefresh": true
															}
														],
														"false": [
															{
																"type": "setValue",
																"name": "flag:自动商店攻击攻速",
																"value": "1",
																"norefresh": true
															},
															{
																"type": "function",
																"function": "function(){\ncore.自动商店选项变更('自动商店攻击攻速');\n}"
															}
														]
													}
												]
											},
											{
												"text": "自动加黄钥匙[${flag:自动商店黄钥匙 == 1 ? 'true' : 'false'}]",
												"action": [
													{
														"type": "if",
														"condition": "(flag:自动商店黄钥匙== 1)",
														"true": [
															{
																"type": "setValue",
																"name": "flag:自动商店黄钥匙",
																"value": "0",
																"norefresh": true
															}
														],
														"false": [
															{
																"type": "setValue",
																"name": "flag:自动商店黄钥匙",
																"value": "1",
																"norefresh": true
															},
															{
																"type": "function",
																"function": "function(){\ncore.自动商店选项变更('自动商店黄钥匙');\n}"
															}
														]
													}
												]
											},
											{
												"text": "取消",
												"action": [
													{
														"type": "exit"
													}
												]
											}
										]
									},
									{
										"type": "playSound",
										"name": "确定"
									}
								]
							},
							{
								"type": "exit"
							}
						]
					},
					{
						"text": "取消",
						"action": [
							{
								"type": "exit"
							}
						]
					}
				]
			},
			{
				"type": "playSound",
				"name": "确定"
			},
			{
				"type": "useItem",
				"id": "pack"
			}
		]
	},
	"jfq": {
		"cls": "items",
		"name": "新物品",
		"canUseItemEffect": "true"
	},
	"I338": {
		"cls": "items",
		"name": "新物品",
		"canUseItemEffect": "true"
	},
	"I339": {
		"cls": "items",
		"name": "新物品",
		"canUseItemEffect": "true"
	},
	"I340": {
		"cls": "tools",
		"name": null,
		"canUseItemEffect": null,
		"text": null
	},
	"I341": {
		"cls": "items",
		"name": "新物品",
		"canUseItemEffect": "true"
	},
	"I342": {
		"cls": "items",
		"name": "新物品",
		"canUseItemEffect": "true"
	},
	"I343": {
		"cls": "tools",
		"name": "业绩提成",
		"canUseItemEffect": null,
		"text": "${core.itemCount('I343')}%",
		"hideInToolbox": false,
		"useItemEvent": null
	},
	"I344": {
		"cls": "items",
		"name": "新物品",
		"canUseItemEffect": "true"
	},
	"I345": {
		"cls": "tools",
		"name": "战斗护盾",
		"canUseItemEffect": null,
		"text": "战斗时，护盾提高 ${core.itemCount('I345')}%"
	},
	"I346": {
		"cls": "items",
		"name": "新物品",
		"canUseItemEffect": "true"
	},
	"I347": {
		"cls": "equips",
		"name": "伤害提高",
		"canUseItemEffect": "true",
		"text": "辅助主动技能，技能伤害和部分效果提升${core.getFlag('辅助伤害提高')*100}%",
		"useItemEvent": null,
		"equip": {
			"type": 3,
			"value": {},
			"percentage": {}
		}
	},
	"I351": {
		"cls": "equips",
		"name": "二刀流",
		"canUseItemEffect": "true",
		"text": "3回合内，伤害总增${core.getFlag('心之所往伤害')*100}%，攻击速度总增${core.getFlag('心之所往攻速')*100}%，${core.getFlag('心之所往冷却')}回合冷却时间。",
		"hideInReplay": false,
		"equip": {
			"type": 0,
			"value": {},
			"percentage": {}
		}
	},
	"I348": {
		"cls": "equips",
		"name": "盾娘",
		"canUseItemEffect": "true",
		"text": "3回合内，攻击附加防御${core.getFlag('别怕伤害')*100}%的伤害，期间攻击速度降低${core.getFlag('别怕攻速')*100}%，防御提高${core.getFlag('别怕防御')*100}%，且附加${core.getFlag('别怕护盾')*100}%的防御到护盾上，技能攻击速度每低于100%的1%，技能效果便额外提高${core.getFlag('别怕攻速效果')}%，${core.getFlag('别怕冷却')}回合冷却时间",
		"equip": {
			"type": 0,
			"value": {},
			"percentage": {}
		}
	},
	"I352": {
		"cls": "equips",
		"name": "某科学的电磁炮",
		"canUseItemEffect": "true",
		"text": "7回合内，将怪物伤害的${core.getFlag('电磁炮伤害转化')*100}%吸收转化为自身的护盾和攻击力，最后释放自身全部护盾*${core.getFlag('电磁炮护盾效用')*100}% +攻击力*${core.getFlag('电磁炮攻击效用')*100}%的伤害，期间无法攻击，${core.getFlag('电磁炮冷却')}回合冷却时间",
		"equip": {
			"type": 0,
			"value": {},
			"percentage": {}
		},
		"useItemEvent": []
	},
	"I333": {
		"cls": "equips",
		"name": "冷却回复",
		"canUseItemEffect": "true",
		"text": "辅助主动技能，技能冷却回合降低${core.getFlag('辅助冷却回复')*100}%(向下取整)",
		"equip": {
			"type": 4,
			"value": {},
			"percentage": {}
		}
	},
	"I334": {
		"cls": "equips",
		"name": "技能效果",
		"canUseItemEffect": "true",
		"text": "辅助主动技能，技能持续期间，造成的伤害降低${core.getFlag('辅助技能效果伤害')*100}%，非伤害效果提升${core.getFlag('辅助技能效果效果')*100}%",
		"equip": {
			"type": 5,
			"value": {},
			"percentage": {}
		}
	},
	"I337": {
		"cls": "equips",
		"name": "火力压制",
		"canUseItemEffect": "true",
		"text": "辅助主动技能，技能持续期间，每次攻击都会削弱敌人${Math.round(core.getFlag('辅助火力压制')*100)}%攻击力，冷却时恢复正常",
		"equip": {
			"type": 6,
			"value": {},
			"percentage": {}
		}
	},
	"I353": {
		"cls": "equips",
		"name": "伤害爆发",
		"canUseItemEffect": "true",
		"text": "辅助主动技能，每隔12回合，下一次技能攻击造成的伤害提高${core.getFlag('辅助伤害爆发')*100}%",
		"equip": {
			"type": 5,
			"value": {},
			"percentage": {}
		}
	},
	"I354": {
		"cls": "equips",
		"name": "越战越勇",
		"canUseItemEffect": "true",
		"text": "辅助主动技能，技能持续期间，每次攻击都会使自身攻击速度提高${core.getFlag('辅助越战越勇')*100}%，冷却时恢复正常",
		"equip": {
			"type": 8,
			"value": {},
			"percentage": {}
		}
	},
	"I355": {
		"cls": "equips",
		"name": "间歇性爆发",
		"canUseItemEffect": "true",
		"text": "辅助主动技能，技能冷却回合延长${core.getFlag('辅助间歇性爆发冷却')*100}%，伤害和效果提高${core.getFlag('辅助间歇性爆发伤害效果')*100}%",
		"equip": {
			"type": 6,
			"value": {},
			"percentage": {}
		}
	},
	"I356": {
		"cls": "equips",
		"name": "负重前行",
		"canUseItemEffect": "true",
		"text": "辅助主动技能，技能持续期间，技能攻速每低于100%的1%，伤害便提高${core.getFlag('辅助负重前行')*100}%，冷却时恢复正常",
		"equip": {
			"type": 8,
			"value": {},
			"percentage": {}
		}
	},
	"I357": {
		"cls": "equips",
		"name": "八门遁甲",
		"canUseItemEffect": "true",
		"text": "辅助主动技能，技能持续期间，自身伤害提高${core.getFlag('辅助八门遁甲伤害')*100}%，战斗后扣除${core.getFlag('辅助八门遁甲生命损失')*100}%战前生命值",
		"equip": {
			"type": 7,
			"value": {},
			"percentage": {}
		}
	},
	"I358": {
		"cls": "equips",
		"name": "持久战",
		"canUseItemEffect": "true",
		"text": "主动技能持续期间，根据总战斗回合数(包括冷却期间)，每战斗2回合，技能伤害便提高${core.getFlag('辅助大战千回')*100}%，上限1000%",
		"equip": {
			"type": 6,
			"value": {},
			"percentage": {}
		}
	},
	"I360": {
		"cls": "tools",
		"name": "XXX",
		"canUseItemEffect": "true",
		"useItemEvent": [
			{
				"type": "openShop",
				"id": "tfxt",
				"open": true
			}
		],
		"text": "剩余天赋点 ${core.itemCount('I360')}",
		"useItemEffect": "core.setItem('I360', core.itemCount('I360') + 1);"
	},
	"I361": {
		"cls": "items",
		"name": "新物品",
		"canUseItemEffect": "true"
	},
	"I362": {
		"cls": "equips",
		"name": "能量转化",
		"canUseItemEffect": "true",
		"text": "辅助主动技能，将战斗中受到的伤害的${core.getFlag('辅助能量转化伤害效用')*100}%作为能量存储，技能持续期间，每回合的攻击都会附加${core.getFlag('辅助能量转化伤害')*100}%能量的伤害，并减少60%存储量，战斗结束时，根据剩余能量的${core.getFlag('辅助能量转化治疗效用')*100}%恢复自身生命",
		"equip": {
			"type": 8,
			"value": {},
			"percentage": {}
		}
	},
	"I363": {
		"cls": "equips",
		"name": "疯狂",
		"canUseItemEffect": "true",
		"text": "辅助主动技能，技能持续期间，每攻击一次，提升${core.getFlag('辅助疯狂偷取')*100}%生命偷取，攻击速度总增${core.getFlag('辅助疯狂攻速')*100}%(叠乘)，冷却时恢复正常",
		"equip": {
			"type": 4,
			"value": {},
			"percentage": {}
		}
	},
	"I364": {
		"cls": "items",
		"name": "新物品",
		"canUseItemEffect": "true"
	},
	"I465": {
		"cls": "equips",
		"name": "飞雷神",
		"canUseItemEffect": "true",
		"equip": {
			"type": 0,
			"value": {},
			"percentage": {}
		},
		"text": "接触敌人的第一次攻击会随机跳跃到周围 ${core.getFlag('飞雷神基础次数')} 只敌人身上，并造成 ${core.getFlag('飞雷神伤害')*100}% 伤害，视为一回合战斗，每有 30% 攻击速度使跳跃次数+1，同时也影响跳跃速度，每跳跃 2 次，索敌范围扩大 1 格，结束后返回，对第一只怪物造成 跳跃次数*攻击力 的伤害并与之战斗，跳跃时无视机制"
	},
	"I468": {
		"cls": "equips",
		"name": "BUG剑",
		"canUseItemEffect": "true",
		"equip": {
			"type": 1,
			"value": {
				"atk": 70
			},
			"percentage": {}
		},
		"text": "${core.武器描述()}"
	},
	"I470": {
		"cls": "equips",
		"name": "BUG衣",
		"canUseItemEffect": "true",
		"equip": {
			"type": 2,
			"value": {
				"def": 100,
				"atk": 0
			},
			"percentage": {
				"def": 0,
				"atk": 0
			}
		},
		"text": "${core.衣服描述()}"
	},
	"I471": {
		"cls": "tools",
		"name": "战斗攻速",
		"canUseItemEffect": null,
		"text": "战斗时，攻击速度提高 ${core.itemCount('I471')}%"
	},
	"I328": {
		"cls": "equips",
		"name": "动力",
		"canUseItemEffect": "true",
		"text": "辅助主动技能，技能持续期间，技能攻击速度相对于100%高或低，便额外提升${core.getFlag('辅助动力正加成') * 100}%或降低${core.getFlag('辅助动力反加成') * 100}%攻击速度",
		"equip": {
			"type": 3,
			"value": {},
			"percentage": {}
		}
	},
	"I329": {
		"cls": "equips",
		"name": "召唤师",
		"canUseItemEffect": "true",
		"equip": {
			"type": 0,
			"value": {},
			"percentage": {},
			"unequipEvent": [
				{
					"type": "function",
					"function": "function(){\ncore.unfollow();\n}"
				}
			]
		},
		"text": "每隔${core.getFlag('召唤师冷却')}回合召唤一只僵尸为你作战，最多召唤3只，达到上限时不再召唤，每次召唤，献祭你50%的当前生命值，你的僵尸按照你献祭的生命获得献祭生命的${core.getFlag('召唤师生命转化')*100}%生命上限，${core.getFlag('召唤师攻击转化')*100}%攻击力，${core.getFlag('召唤师防御转化')*100}%防御力，${core.getFlag('召唤师护盾转化')*100}%护盾，并替你抵挡99%的伤害"
	},
	"I379": {
		"cls": "items",
		"name": "新物品",
		"canUseItemEffect": "true"
	},
	"I330": {
		"cls": "tools",
		"name": "僵尸信息查看器",
		"canUseItemEffect": null,
		"text": "${core.僵尸信息()}",
		"hideInToolbox": false,
		"useItemEvent": null,
		"useItemEffect": null
	},
	"I473": {
		"cls": "equips",
		"name": "血气",
		"canUseItemEffect": "true",
		"text": "辅助主动技能，技能持续期间，你和你的召唤生物攻击附加生命上限${core.getFlag('辅助血气') * 100}%的额外基础伤害",
		"equip": {
			"type": 7,
			"value": {},
			"percentage": {}
		}
	}
}