Fork自 TPEngineer / 挂机勇者RPG
(function(e){function t(t){for(var n,r,l=t[0],u=t[1],i=t[2],c=0,p=[];c<l.length;c++)r=l[c],Object.prototype.hasOwnProperty.call(o,r)&&o[r]&&p.push(o[r][0]),o[r]=0;for(n in u)Object.prototype.hasOwnProperty.call(u,n)&&(e[n]=u[n]);h&&h(t);while(p.length)p.shift()();return s.push.apply(s,i||[]),a()}function a(){for(var e,t=0;t<s.length;t++){for(var a=s[t],n=!0,r=1;r<a.length;r++){var l=a[r];0!==o[l]&&(n=!1)}n&&(s.splice(t--,1),e=u(u.s=a[0]))}return e}var n={},r={app:0},o={app:0},s=[];function l(e){return u.p+"js/"+({}[e]||e)+"."+{"chunk-2938f01c":"04939c6f"}[e]+".js"}function u(t){if(n[t])return n[t].exports;var a=n[t]={i:t,l:!1,exports:{}};return e[t].call(a.exports,a,a.exports,u),a.l=!0,a.exports}u.e=function(e){var t=[],a={"chunk-2938f01c":1};r[e]?t.push(r[e]):0!==r[e]&&a[e]&&t.push(r[e]=new Promise((function(t,a){for(var n="css/"+({}[e]||e)+"."+{"chunk-2938f01c":"3bd731e3"}[e]+".css",o=u.p+n,s=document.getElementsByTagName("link"),l=0;l<s.length;l++){var i=s[l],c=i.getAttribute("data-href")||i.getAttribute("href");if("stylesheet"===i.rel&&(c===n||c===o))return t()}var p=document.getElementsByTagName("style");for(l=0;l<p.length;l++){i=p[l],c=i.getAttribute("data-href");if(c===n||c===o)return t()}var h=document.createElement("link");h.rel="stylesheet",h.type="text/css",h.onload=t,h.onerror=function(t){var n=t&&t.target&&t.target.src||o,s=new Error("Loading CSS chunk "+e+" failed.\n("+n+")");s.code="CSS_CHUNK_LOAD_FAILED",s.request=n,delete r[e],h.parentNode.removeChild(h),a(s)},h.href=o;var v=document.getElementsByTagName("head")[0];v.appendChild(h)})).then((function(){r[e]=0})));var n=o[e];if(0!==n)if(n)t.push(n[2]);else{var s=new Promise((function(t,a){n=o[e]=[t,a]}));t.push(n[2]=s);var i,c=document.createElement("script");c.charset="utf-8",c.timeout=120,u.nc&&c.setAttribute("nonce",u.nc),c.src=l(e);var p=new Error;i=function(t){c.onerror=c.onload=null,clearTimeout(h);var a=o[e];if(0!==a){if(a){var n=t&&("load"===t.type?"missing":t.type),r=t&&t.target&&t.target.src;p.message="Loading chunk "+e+" failed.\n("+n+": "+r+")",p.name="ChunkLoadError",p.type=n,p.request=r,a[1](p)}o[e]=void 0}};var h=setTimeout((function(){i({type:"timeout",target:c})}),12e4);c.onerror=c.onload=i,document.head.appendChild(c)}return Promise.all(t)},u.m=e,u.c=n,u.d=function(e,t,a){u.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:a})},u.r=function(e){"undefined"!==typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},u.t=function(e,t){if(1&t&&(e=u(e)),8&t)return e;if(4&t&&"object"===typeof e&&e&&e.__esModule)return e;var a=Object.create(null);if(u.r(a),Object.defineProperty(a,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var n in e)u.d(a,n,function(t){return e[t]}.bind(null,n));return a},u.n=function(e){var t=e&&e.__esModule?function(){return e["default"]}:function(){return e};return u.d(t,"a",t),t},u.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},u.p="",u.oe=function(e){throw console.error(e),e};var i=window["webpackJsonp"]=window["webpackJsonp"]||[],c=i.push.bind(i);i.push=t,i=i.slice();for(var p=0;p<i.length;p++)t(i[p]);var h=c;s.push([0,"chunk-vendors"]),a()})({0:function(e,t,a){e.exports=a("56d7")},"16dd":function(e,t,a){},"2ea5":function(e,t,a){},"49f3":function(e,t,a){"use strict";a("16dd")},"56d7":function(e,t,a){"use strict";a.r(t);a("cadf"),a("551c"),a("f751"),a("097d");var n=a("2b0e"),r=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{attrs:{id:"app"}},[a("router-view")],1)},o=[],s=(a("5c0b"),a("2877")),l={},u=Object(s["a"])(l,r,o,!1,null,null,null),i=u.exports,c=a("8c4f");n["a"].use(c["a"]);var p=new c["a"]({mode:"hash",base:"",routes:[{path:"/",name:"index",component:function(){return a.e("chunk-2938f01c").then(a.bind(null,"1e4b"))}}]}),h=c["a"].prototype.push;c["a"].prototype.push=function(e){return h.call(this,e).catch((function(e){return e}))};a("a481"),a("c5f6");var v=a("2f62"),f=a("ccf3");n["a"].use(v["a"]);var y={lv:1,itemType:"weapon",quality:{name:"破旧",qualityCoefficient:.7,probability:"0.25",color:"#a1a1a1",extraEntryNum:1},type:{name:"新手短剑",des:"新手菜鸡使用的短剑",iconSrc:"./icons/W_Sword001.png",entry:[{valCoefficient:.9,value:1,showVal:"+1",type:"ATK",name:"攻击力"}]},extraEntry:[{value:1,showVal:"+1",type:"ATK",name:"攻击力"}]},m={lv:1,itemType:"armor",quality:{name:"破旧",qualityCoefficient:.7,probability:"0.25",color:"#a1a1a1",extraEntryNum:1},type:{name:"新手布衣",des:"新手菜鸡穿的普通衣物",iconSrc:"./icons/A_A3.png",entry:[{valCoefficient:.9,value:1,showVal:"+1",type:"DEF",name:"防御力"}]},extraEntry:[{type:"HP",value:10,showVal:"+10",name:"生命值"}]},d={lv:1,itemType:"neck",quality:{name:"破旧",qualityCoefficient:.7,probability:"0.25",color:"#a1a1a1",extraEntryNum:1},type:{name:"新手项坠",des:"一个普通的指环",iconSrc:"./icons/Ac_3.png",entry:[{valCoefficient:.9,value:20,showVal:"+20",type:"HP",name:"生命值"}]},extraEntry:[{type:"CRIT",value:10,showVal:"+10%",name:"暴击率"}]},b={lv:1,itemType:"ring",quality:{name:"破旧",qualityCoefficient:.7,probability:"0.25",color:"#a1a1a1",extraEntryNum:1},type:{name:"新手指环",des:"一个普通的指环",iconSrc:"./icons/Ac_10.png",entry:[{valCoefficient:.9,value:20,showVal:"+20",type:"HP",name:"生命值"}]},extraEntry:[{type:"CRIT",value:10,showVal:"+10%",name:"暴击率"}]},w=new v["a"].Store({state:{needStrengthenEquipment:{},sysInfo:[{type:"",msg:"欢迎你勇士,点击地图上的副本开始战斗。"},{type:"",msg:"菜单栏可以刷新当前世界副本。"}],reincarnationAttribute:{HP:0,ATK:0,CRIT:0,CRITDMG:0,DEF:0,BLOC:0,MOVESPEED:0,BATTLESPEED:0},reincarnation:{count:0,point:0},playerAttribute:{lv:1,GOLD:0,healthRecoverySpeed:1,endlessLv:0,attribute:{CURHP:{value:0,showValue:""},MAXHP:{value:0,showValue:""},ATK:{value:0,showValue:""},DEF:{value:0,showValue:""},REDUCDMG:{value:0,showValue:""},CRIT:{value:0,showValue:""},CRITDMG:{value:0,showValue:""},BLOC:{value:0,showValue:"0"},EVA:{value:0,showValue:""}},weapon:y,armor:m,ring:b,neck:d}},mutations:{set_player_weapon:function(e,t){this.state.playerAttribute.weapon=t,F.$store.commit("set_player_attribute")},set_player_armor:function(e,t){this.state.playerAttribute.armor=t,F.$store.commit("set_player_attribute")},set_player_ring:function(e,t){this.state.playerAttribute.ring=t,F.$store.commit("set_player_attribute")},set_player_neck:function(e,t){this.state.playerAttribute.neck=t||d,F.$store.commit("set_player_attribute")},set_player_rein_attribute:function(e,t){this.state.reincarnationAttribute=t,F.$store.commit("set_player_attribute")},set_player_rein:function(e,t){this.state.reincarnation=t},set_player_attribute:function(e,t){var a,n=e.playerAttribute,r=n.weapon,o=n.armor,s=n.ring,l=n.neck,u=[],i=e.playerAttribute.attribute.CURHP.value,c=e.playerAttribute.attribute.MAXHP.value,p=e.reincarnationAttribute;i&&c&&(a=i/c);var h={CURHP:{value:0,showValue:""},MAXHP:{value:0+p.HP,showValue:""},ATK:{value:0+p.ATK,showValue:0+p.ATK},DEF:{value:0+p.DEF,showValue:0+p.DEF},CRIT:{value:0+p.CRIT,showValue:"+0"+p.CRIT+"%"},CRITDMG:{value:0+p.CRITDMG,showValue:"+0"+p.CRITDMG+"%"},EVA:{value:0,showValue:""},BLOC:{value:0+p.BLOC,showValue:0+p.BLOC}},v=F.$deepCopy(r.type.entry),y=F.$deepCopy(o.type.entry),m=F.$deepCopy(s.type.entry),d=F.$deepCopy(l.type.entry);f["a"].CalculateStrAttr(v,r.enchantlvl||0),f["a"].CalculateStrAttr(y,o.enchantlvl||0),f["a"].CalculateStrAttr(m,s.enchantlvl||0),f["a"].CalculateStrAttr(d,l.enchantlvl||0),u=[].concat(v).concat(r.extraEntry).concat(y).concat(o.extraEntry).concat(m).concat(s.extraEntry).concat(d).concat(l.extraEntry);var b=1;u.map((function(e){switch(e.type){case"ATK":h.ATK.value+=Number(e.value),h.ATK.showValue="+"+h.ATK.value;break;case"DEF":h.DEF.value+=Number(e.value),h.DEF.showValue="+"+h.DEF.value;break;case"HP":h.MAXHP.value+=Number(e.value),h.MAXHP.showValue="+"+h.MAXHP.value;break;case"CRIT":h.CRIT.value+=Number(e.value),h.CRIT.showValue="+"+h.CRIT.value+"%";break;case"CRITDMG":h.CRITDMG.value+=Number(e.value),h.CRITDMG.showValue="+"+h.CRITDMG.value+"%";break;case"EVA":b*=1-e.value/100;break;case"BLOC":h.BLOC.value+=Number(e.value),h.BLOC.showValue=h.BLOC.value;break;default:break}}));var w=0,C=0,T=0,g=0;u.map((function(e){switch(e.type){case"ATKPERCENT":w+=Number(e.value);break;case"DEFPERCENT":C+=Number(e.value);break;case"HPPERCENT":T+=Number(e.value);break;case"BLOCPERCENT":g+=Number(e.value);break;default:break}})),h.ATK.value=parseInt(h.ATK.value*(100+w)/100),h.ATK.showValue="+"+h.ATK.value,h.DEF.value=parseInt(h.DEF.value*(100+C)/100),h.DEF.showValue="+"+h.DEF.value,h.MAXHP.value=parseInt(h.MAXHP.value*(100+T)/100),h.MAXHP.showValue="+"+h.MAXHP.value,h.BLOC.value=parseInt(h.BLOC.value*(100+g)/100),h.BLOC.showValue="+"+h.BLOC.value,h.EVA.value=(100*(1-b)).toFixed(1),h.EVA.showValue=(100*(1-b)).toFixed(1)+"%",h.MAXHP.value+=200,a?(h.CURHP.value=parseInt(h.MAXHP.value*a),h.CURHP.showValue="+"+h.CURHP.value):h.CURHP=F.$deepCopy(h.MAXHP),h.CRITDMG.value+=150;var E=h.ATK.value,_=h.CRIT.value,M=h.CRITDMG.value;_>100&&(_=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;o<a-1;o++){var s=D[o].$el;s.style["top"]=parseInt(s.style["top"],10)-r-16+"px"}}},x.cancle=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;o<a-1;o++){var s=D[o].$el;s.style["top"]=parseInt(s.style["top"],10)-r-16+"px"}}};var H=x;E().then((function(e){n["a"].prototype.$api=e})).catch((function(e){console.log(e)}));var N=new n["a"]({router:p,store:w,render:function(e){return e(i)}}).$mount("#app");n["a"].prototype.$message=H,n["a"].prototype.$deepCopy=function(e){return e=JSON.stringify(e).length>1?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){}});