(function(e){function t(t){for(var n,r,l=t[0],u=t[1],i=t[2],c=0,p=[];c100&&(_=100),h.DPS=parseFloat((1-_/100)*E*1+_/100*M/100*E*1);o=h.DEF.value;h.REDUCDMG=1-.05*o/(1+.0525*o),this.state.playerAttribute.attribute=h},set_sys_info:function(e,t){this.state.sysInfo.push(t);var a=+new Date,n=new Date(a+288e5);this.state.sysInfo[this.state.sysInfo.length-1].time=n.toJSON().substr(11,8).replace("T"," "),this.state.sysInfo.length>50&&this.state.sysInfo.shift()},clear_sys_info:function(e,t){this.state.sysInfo.splice(1,this.state.sysInfo.length)},set_player_gold:function(e,t){this.state.playerAttribute.GOLD+=parseInt(t)},reset_player_gold:function(e,t){this.state.playerAttribute.GOLD=parseInt(t)},reset_player_equi:function(){F.$store.commit("set_player_weapon",y),F.$store.commit("set_player_armor",m),F.$store.commit("set_player_ring",b),F.$store.commit("set_player_neck",d),F.$store.commit("set_player_lv",1)},set_endless_lv:function(e,t){this.state.playerAttribute.endlessLv=parseInt(t)<1?1:parseInt(t)},set_player_lv:function(e,t){t=t<1?1:t,this.state.playerAttribute.lv=parseInt(t||1)},set_operator_schema:function(e,t){this.state.operatorSchemaIsMobile=t},set_need_strengthen_equipment:function(e,t){this.state.needStrengthenEquipment=t},set_player_curhp:function(e,t){var a=this.state.playerAttribute.attribute.CURHP,n=this.state.playerAttribute.attribute.MAXHP;"dead"==t?a.value=1:"full"==t?a.value=n.value:(a.value+=Number(t),a.value=parseInt(a.value),a.value>n.value&&(a.value=n.value))}}}),C=(a("2ea5"),a("96cf"),a("3b8d")),T=a("bc3a"),g=a.n(T);function E(){return _.apply(this,arguments)}function _(){return _=Object(C["a"])(regeneratorRuntime.mark((function e(){var t,a,n;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return t="http://couy.xyz:3001/",n=function(e,t){switch(e){case 401:F.$store.commit("set_sys_info",{msg:"\n 😭".concat(t.data.msg||"服务器有点问题,请稍后重试","\n "),type:"warning"});break;case 403:F.$store.commit("set_sys_info",{msg:"\n 😭".concat(t.data.msg||"服务器有点问题,请稍后重试","\n "),type:"warning"});break;case 404:F.$store.commit("set_sys_info",{msg:"\n 😭".concat(t.data.msg||"服务器有点问题,请稍后重试","\n "),type:"warning"});break;default:F.$store.commit("set_sys_info",{msg:"\n 😭".concat(t.data.msg||"服务器有点问题,请稍后重试","\n "),type:"warning"})}},a=g.a.create({timeout:12e3}),a.defaults.baseURL=t,a.defaults.headers.post["Content-Type"]="application/json;charset=UTF-8",a.interceptors.response.use((function(e){return 200===e.status?Promise.resolve(e):Promise.reject(e)}),(function(e){var t=e.response;if(t)return n(t.status,t),Promise.reject(t);F.$store.commit("set_sys_info",{msg:"\n 😭".concat(t.data.msg||"服务器有点问题,请稍后重试","\n "),type:"warning"})})),e.abrupt("return",a);case 7:case"end":return e.stop()}}),e)}))),_.apply(this,arguments)}a("20d6");var M=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("transition",{attrs:{name:"fade"}},[a("div",{directives:[{name:"show",rawName:"v-show",value:e.visible,expression:"visible"}],staticClass:"message"},[a("div",{staticClass:"title"},[a("span",[e._v(e._s(e.title))])]),a("div",{staticClass:"body"},[a("p",[e._v(e._s(e.message))])]),a("div",{staticClass:"footer"},[a("div",{staticClass:"button",on:{click:function(t){return e.close()},keydown:function(t){return!t.type.indexOf("key")&&e._k(t.keyCode,"enter",13,t.key,"Enter")?null:e.close()}}},[e._v(e._s(e.closeBtnText))]),a("div",{staticClass:"button",on:{click:function(t){return e.handleClick()},keydown:function(t){return!t.type.indexOf("key")&&e._k(t.keyCode,"enter",13,t.key,"Enter")?null:e.handleClick()}}},[e._v(e._s(e.confirmBtnText))])])])])},I=[],A={name:"MizMessage",data:function(){return{visible:!0,message:"",closed:!1,onClose:null,onCancle:null,verticalOffset:0,closeBtnText:"取消",confirmBtnText:"确认",title:"提示"}},computed:{style:function(){return{top:this.verticalOffset+"px"}}},methods:{close:function(){this.visible=!1,this.closed=!0,"function"===typeof this.onCancle&&this.onCancle(this)},handleClick:function(){this.visible=!1,this.closed=!0,"function"===typeof this.onClose&&this.onClose(this)}},mounted:function(){}},P=A,V=(a("49f3"),Object(s["a"])(P,M,I,!1,null,null,null)),k=V.exports,R=1,D=[],O=n["a"].extend(k),x=function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};"string"===typeof t&&(t={message:t});var a="message_"+R++,n=t.onClose,r=t.onCancle;t.onClose=function(){e.close(a,n)},t.onCancle=function(){e.cancle(a,r)};var o=t.offset||16;D.forEach((function(e){o+=e.$el.offsetHeight+16})),t.verticalOffset=o;var s=new O({data:t,el:document.createElement("div")});return s.id=a,D.push(s),document.body.appendChild(s.$el),s};x.close=function(e,t){var a=D.length,n=-1;if(n=D.findIndex((function(t){return t.id===e})),-1!==n){var r=D[n].$el.offsetHeight;if("function"===typeof t&&t(D[n]),D.splice(n,1),!(a<=1||n>D.length-1))for(var o=n;oD.length-1))for(var o=n;o1?e:{},JSON.parse(JSON.stringify(e))};var F=t["default"]=N},"5c0b":function(e,t,a){"use strict";a("e332")},ccf3:function(e,t,a){"use strict";function n(e){return JSON.parse(JSON.stringify(e))}function r(e,t){var a=1;return a=Math.pow(1.055,Math.pow(t,1.1)),e.map((function(e){var t;switch(e.type){case"ATK":t=Math.round(a*e.value),e.value=t,e.showValue="+"+t;break;case"DEF":t=Math.round(a*e.value),e.value=t,e.showValue="+"+t;break;case"HP":t=Math.round(a*e.value),e.value=t,e.showValue="+"+t;break;case"ATKPERCENT":t=Math.round(a*e.value),e.value=t,e.showValue="+"+t+"%";break;case"DEFPERCENT":t=Math.round(a*e.value),e.value=t,e.showValue="+"+t+"%";break;case"HPPERCENT":t=Math.round(a*e.value),e.value=t,e.showValue="+"+t+"%";break;case"CRIT":t=Math.round(a*e.value),e.value=t,e.showValue="+"+t+"%";break;case"CRITDMG":t=Math.round(a*e.value),e.value=t,e.showValue="+"+t+"%";break;case"BLOC":t=Math.round(a*e.value),e.value=t,e.showValue="+"+t;break;default:break}})),e}function o(e,t){e=e||1,t=t||1;var a=1==t?1:2==t?1.15:1.4,n={id:e+""+t,battleTime:2e3,name:"Lv"+e+"_"+(1==t?"普通":2==t?"困难":"极难"),eventNum:"5",lv:e,needDPS:parseInt(e*Math.pow(e,1.3)*2*t),difficulty:t,difficultyName:1==t?"普通":2==t?"困难":"极难",top:70*Math.random()+15+"%",left:70*Math.random()+10+"%",eventType:[{name:"monster",type:"monster",eventType:"battle",attribute:{HP:parseInt(e*Math.pow(e,1.1)*(5*Math.random()+16)*a),ATK:parseInt(e*Math.pow(e,1.1)*(1*Math.random()+2)*a)},trophy:{gold:parseInt(Math.pow(e,1.16)*(5*Math.random()+11)*a),equip:[.2*a,.08*a,.03*a,0*a]}},{name:"monster",type:"monster",eventType:"battle",attribute:{HP:parseInt(e*Math.pow(e,1.1)*(5*Math.random()+16)*a),ATK:parseInt(e*Math.pow(e,1.1)*(1*Math.random()+2)*a)},trophy:{gold:parseInt(Math.pow(e,1.16)*(5*Math.random()+11)*a),equip:[.2*a,.08*a,.03*a,0*a]}},{name:"monster",type:"monster",eventType:"battle",attribute:{HP:parseInt(e*Math.pow(e,1.1)*(5*Math.random()+16)*a),ATK:parseInt(e*Math.pow(e,1.1)*(1*Math.random()+2)*a)},trophy:{gold:parseInt(Math.pow(e,1.16)*(5*Math.random()+11)*a),equip:[.2*a,.08*a,.03*a,0*a]}},{name:"monster",type:"monster",eventType:"battle",attribute:{HP:parseInt(e*Math.pow(e,1.1)*(5*Math.random()+16)*a),ATK:parseInt(e*Math.pow(e,1.1)*(1*Math.random()+2)*a)},trophy:{gold:parseInt(Math.pow(e,1.16)*(5*Math.random()+11)*a),equip:[.2*a,.08*a,.03*a,0*a]}},{name:"boss",type:"boss",eventType:"battle",attribute:{HP:parseInt(e*Math.pow(e,1.1)*(5*Math.random()+30)*a),ATK:parseInt(e*Math.pow(e,1.1)*(1*Math.random()+3)*a)},trophy:{gold:parseInt(Math.pow(e,1.16)*(10*Math.random()+28)*a),equip:[.25-.05*a,.55-.15*a,.15+.15*a,.05+.05*a]}}]};return n}function s(e,t){var a=[{value:"11",showVal:"+11",type:"ATK",name:"攻击力"},{type:"CRIT",value:"8",showVal:"+8%",name:"暴击率"},{type:"CRITDMG",value:"20",showVal:"+20%",name:"暴击伤害"},{type:"HP",value:"20",showVal:"+20",name:"生命值"},{type:"DEF",value:"8",showVal:"+8%",name:"防御力"},{value:"11%",showVal:"+11%",type:"ATKPERCENT",name:"攻击力"},{value:"11%",showVal:"+11%",type:"DEFPERCENT",name:"防御力"},{value:"11%",showVal:"+11%",type:"HPPERCENT",name:"生命值"},{value:"11%",showVal:"+11%",type:"BLOCPERCENT",name:"格挡"},{value:"11%",showVal:"+11%",type:"BLOC",name:"格挡"}],n=Math.random(),r=Math.floor(100*n)+"%",o={},s=Math.floor(Math.random()*a.length);switch(o=a[s],o.EntryLevel=r,o.type){case"ATK":var l=parseInt(1*e+(n*e/2+1));l=parseInt(l*t),l=l||1,o.value=l,o.showVal="+"+l;break;case"DEF":l=parseInt(.4*e+(n*e/2+1));l=parseInt(l*t),l=l||1,o.value=l,o.showVal="+"+l;break;case"HP":l=parseInt(.2*e*15+(n*e/2+1));l=parseInt(l*t),l=l||1,o.value=l,o.showVal="+"+l;break;case"ATKPERCENT":l=parseFloat(.11*e+(n*e/10+4)).toFixed(2);l=parseFloat(l*t).toFixed(2),l=l||1,o.value=l,o.showVal="+"+l+"%";break;case"DEFPERCENT":l=parseFloat(.1*e+(n*e/10+4)).toFixed(2);l=parseFloat(l*t).toFixed(2),l=l||1,o.value=l,o.showVal="+"+l+"%";break;case"HPPERCENT":l=parseFloat(.13*e+(n*e/10+4)).toFixed(2);l=parseFloat(l*t).toFixed(2),l=l||1,o.value=l,o.showVal="+"+l+"%";break;case"BLOCPERCENT":l=parseFloat(.1*e+(n*e/10+4)).toFixed(2);l=parseFloat(l*t).toFixed(2),l=l||1,o.value=l,o.showVal="+"+l+"%";break;case"CRIT":l=parseInt(5*n+5);l=parseInt(l*t),o.value=l,o.showVal="+"+l+"%";break;case"CRITDMG":l=parseInt(12*n+20);l=parseInt(l*t),o.value=l,o.showVal="+"+l+"%";break;case"BLOC":l=parseInt(.6*e+(n*e/2+1));l=parseInt(l*t),l=l||1,o.value=l,o.showVal="+"+l;break;default:break}return o}t["a"]={deepCopy:n,CalculateStrAttr:r,createRandomEntry:s,createRandomDungeons:o}},e332:function(e,t,a){}});