遗物总数比例应当是30：40：30：10

flags.getItem 获得道具数组
flags.itemRow 道具栏行数整数
flags.itemL 药水位数组
flags.shopGoods 商店商品
flags.shopTools 商店工具
flags.shopSelect 商店选择位置整数
flags.refresh 商店刷新次数
flags.items_point[id] 对应遗物计量数//舍去，更换为flags.item
flags.stage//当前区域
flags.HState = { burn: 0, curse: 0, weak: 0, poison: 0 } //勇士全局状态，废弃
'curse'咒 'weak'衰 'poison'毒 burn 灼烧
flags.FState//勇士局内状态
flags.afterB//战斗结束后变量
flags.arrive//是否初次到达战斗层
flags.floorEffect = "祝福" 楼层词条
flags.floorENum = { damage: 1, hpvial: 1, gold: 1,hDamage:1} //楼层临时状态
damage伤害 hpvial血瓶恢复量 gold金币获取量 hDamage勇者伤害
flags.boxItemCon 盲盒数组

flags.gembuff 宝石加成值
flags.hpotionbuff 血瓶加成值
flags.hp
flags.atk
flags.def
flags.mdef


flags.gemBonus = flags.gemBonus || { red: "1", blue: "1", green: "1" }
flags.potionBonus = flags.potionBonus || { red: "1", blue: "1", green: "1" }


常用测试代码
core.insertAction([{"type": "insert", "name": "事件商店", "args": []},])
core.insertAction([{"type": "insert", "name": "加点事件", "args": [1.2]},])
core.insertAction([{"type": "insert", "name": "物品获得", "args": ["找到了散落的物品！"]},])
core.insertAction([{"type": "insert", "name": "开盒", "args": ["boxN"]},])

core.getItemCon()//获取勇者遗物数组，其中包含的是实例化后的遗物对象
core.plugin.getConItem()//获得某件遗物
core.getAllItem()//获取所有遗物类
core.sellItemCon(index)//出售遗物
core.plugin.itemConEffect(type,value)//触发遗物效果
core.deleteItemCon(id)//删除遗物
core.itemRand(rare)//随机一个x品质的遗物的id

core.playSprite('ui', 'fuhui.png', 0, 0, 64, 64);//绘制雪碧图
core.drawItemCanvas()//绘制物品栏

core.sellMoney()//某件物品售卖价格
core.changeItem(a,b)//交换两个遗物位置  

core.boxRand(box)随机盒子
core.boxOpenUI('boxL')开盒
core.boxUiClear()清除盒子
core.deleteSprite('all');//清除雪碧图
core.drawItemIcon(ctx, i, x, y, s = 64,index) 绘制图标

core.gemBuff(color, num, "mul")
core.potionBuff(color, num, "mul")
core.hpBuff(num, "mul")
core.atkBuff(num, "mul")
core.defBuff(num, "mul")
core.mdefBuff(num, "mul")
core.atkRealValue()
core.defRealValue()
core.mdefRealValue()

core.bigStr(num,fix)
core.levelBigNum()

core.getItemCon().some(item=>item.id=="")//是否拥有某件遗物

//这里打一个锚点，目前的代码暂时解决不了

		"A": {
			"1": ["greenSlime", "bat", "skeleton", "bluePriest"],
			"2": ["redSlime", "bigBat", "skeletonWarrior", "redPriest", "zombie"],
			"3": ["brownWizard", "redBat", "slimeman", "zombieKnight", "blackSlime", "yellowKnight"],
			"4": ["slimelord", "blueKing", "skeletonCaptain", "swordsman", "redKnight"],
			"5": ["redKing", "vampire", "darkKnight", "magicMaster"]
		},
		"B": {
			"1": ["E415", "E427", "whiteHornSlime", "whiteSlimeman"],
			"2": ["E416", "frostBat", "evilHero", "E419", "skeletonPriest", "rock"],
			"3": ["E417", "evilFairy", "E430", "E420", "grayPriest", "bowman"],
			"4": ["E418",  "E428", "E422", "E421", "ironRock", "purpleBowman"],
			"5": ["blademaster", "E429", "devilWarrior", "demonPriest"],
		},
		"C": {
			"1": ["E423",],
			"2": ["E424", "yellowGateKeeper"],
			"3": ["E425","blueGateKeeper"],
			"4": [ "E426", "redGateKeeper"],
			"5": [ "greenGateKeeper"],
		}