From bf17720c9098ceb8bcfcb7206f86ac7b45cb805c Mon Sep 17 00:00:00 2001 From: chrisinajar Date: Tue, 20 Feb 2024 20:55:12 +0000 Subject: [PATCH] =?UTF-8?q?Deploying=20to=20gh-pages=20from=20@=20chrisina?= =?UTF-8?q?jar/proofofcombat@7206ecb199235b372c8e786ed3e1640a6768bd5d=20?= =?UTF-8?q?=F0=9F=9A=80?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- 404.html | 2 +- _next/static/8Knyl21kqYQiznWRQubRu/_buildManifest.js | 1 - _next/static/chunks/799-162df0c9627c1f29.js | 1 - _next/static/chunks/799-d926860fa1b3fc62.js | 1 + _next/static/z5Z3PScGuEJl8r_F-tGf0/_buildManifest.js | 1 + .../_middlewareManifest.js | 0 .../_ssgManifest.js | 0 index.html | 2 +- map.html | 2 +- play.html | 2 +- play/admin.html | 2 +- play/combat.html | 2 +- play/inventory.html | 2 +- play/map.html | 2 +- play/quests.html | 2 +- play/settings.html | 2 +- play/shop.html | 2 +- 17 files changed, 13 insertions(+), 13 deletions(-) delete mode 100644 _next/static/8Knyl21kqYQiznWRQubRu/_buildManifest.js delete mode 100644 _next/static/chunks/799-162df0c9627c1f29.js create mode 100644 _next/static/chunks/799-d926860fa1b3fc62.js create mode 100644 _next/static/z5Z3PScGuEJl8r_F-tGf0/_buildManifest.js rename _next/static/{8Knyl21kqYQiznWRQubRu => z5Z3PScGuEJl8r_F-tGf0}/_middlewareManifest.js (100%) rename _next/static/{8Knyl21kqYQiznWRQubRu => z5Z3PScGuEJl8r_F-tGf0}/_ssgManifest.js (100%) diff --git a/404.html b/404.html index 0d0d8b8..e0b66c5 100644 --- a/404.html +++ b/404.html @@ -1 +1 @@ -404: This page could not be found

404

This page could not be found.

\ No newline at end of file +404: This page could not be found

404

This page could not be found.

\ No newline at end of file diff --git a/_next/static/8Knyl21kqYQiznWRQubRu/_buildManifest.js b/_next/static/8Knyl21kqYQiznWRQubRu/_buildManifest.js deleted file mode 100644 index a1a5099..0000000 --- a/_next/static/8Knyl21kqYQiznWRQubRu/_buildManifest.js +++ /dev/null @@ -1 +0,0 @@ -self.__BUILD_MANIFEST=function(a,s,e,c,t){return{__rewrites:{beforeFiles:[],afterFiles:[],fallback:[]},"/":[a,s,e,"static/chunks/pages/index-c17a2aee1bb98bda.js"],"/_error":["static/chunks/pages/_error-2280fa386d040b66.js"],"/map":[a,"static/chunks/pages/map-791512877388b19f.js"],"/play":[a,s,c,e,t,"static/chunks/pages/play-456fc6dd80c8c028.js"],"/play/admin":[a,s,c,e,t,"static/chunks/pages/play/admin-5414a1cc9c45847e.js"],"/play/combat":[a,s,c,e,t,"static/chunks/pages/play/combat-1e440f3188e2f06d.js"],"/play/inventory":[a,s,c,e,t,"static/chunks/pages/play/inventory-c3505fca5d489193.js"],"/play/map":[a,s,c,e,t,"static/chunks/pages/play/map-efec1845d8de4bc2.js"],"/play/quests":[a,s,c,e,t,"static/chunks/pages/play/quests-2198c7aef5e67890.js"],"/play/settings":[a,s,c,e,t,"static/chunks/pages/play/settings-3bb492282ff25d49.js"],"/play/shop":[a,s,c,e,t,"static/chunks/pages/play/shop-e4c7d919dbe8b2f6.js"],sortedPages:["/","/_app","/_error","/map","/play","/play/admin","/play/combat","/play/inventory","/play/map","/play/quests","/play/settings","/play/shop"]}}("static/chunks/984-deb885fc01d3e6bf.js","static/chunks/392-d33825396aabb6d2.js","static/chunks/45-8f7a909cdae1ecc1.js","static/chunks/671-f5fc12b9cba90a61.js","static/chunks/799-162df0c9627c1f29.js"),self.__BUILD_MANIFEST_CB&&self.__BUILD_MANIFEST_CB(); \ No newline at end of file diff --git a/_next/static/chunks/799-162df0c9627c1f29.js b/_next/static/chunks/799-162df0c9627c1f29.js deleted file mode 100644 index 6453578..0000000 --- a/_next/static/chunks/799-162df0c9627c1f29.js +++ /dev/null @@ -1 +0,0 @@ -"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[799],{3799:function(e,n,t){t.d(n,{Z:function(){return Wr}});var r=t(5893),i=t(7294),a=t(1163),o=t(5152),l=t(7357),s=t(7720),c=t(1458),u=t(44),d=t(5861),h=t(6886),f=t(9104),m=t(122),x=t(5670),v=t(7225),p=t(5050),g=t(3113),y=t(4045),b=t(4051),j=t.n(b),Z=t(1157),S=t(8445),w=t(5739),k=t(9825),A=t(3321),P=t(7109),C=t(3946),I=t(4054),E=t(3841),L=t(7058),M=t(3984),O=t(9267),T=t(6824),F=t(622),W=t(4510),B=t(9402);function $(){var e,n,t,r=(0,B.UE)().data;return null!==(t=null===r||void 0===r||null===(e=r.me)||void 0===e||null===(n=e.account)||void 0===n?void 0:n.hero)&&void 0!==t?t:void 0}var D=t(874),z=t(5018),q=t(3599),Q=t(1903);function N(e,n){(null==n||n>e.length)&&(n=e.length);for(var t=0,r=new Array(n);t0&&(0,r.jsxs)(h.ZP,{item:!0,xs:6,children:["Received offers:",(0,r.jsx)(l.Z,{children:O.map((function(e){return(0,r.jsx)(i.Fragment,{children:(0,r.jsxs)(l.Z,{sx:{mt:1,bgcolor:"info.main",p:2},children:["From: ",(0,r.jsx)("b",{children:e.fromName}),(0,r.jsx)("br",{}),"Item: ",(0,r.jsx)("b",{children:(0,D.GJ)(e.item)}),(0,r.jsx)("br",{}),"Gold: ",(0,r.jsx)("b",{children:e.gold.toLocaleString()}),(0,r.jsx)("br",{}),(0,r.jsx)(A.Z,{sx:{m:1},variant:"contained",color:"success",disabled:L||e.gold>a.gold,onClick:function(){return function(e){return U.apply(this,arguments)}(e.id)},children:"Accept Trade"}),(0,r.jsx)(A.Z,{sx:{m:1},variant:"contained",color:"error",disabled:L,onClick:function(){return N(e.id)},children:"Reject Trade"})]})},e.id)}))})]}),T.length>0&&(0,r.jsxs)(h.ZP,{item:!0,xs:6,children:["Sent offers:",(0,r.jsx)(l.Z,{children:T.map((function(e){return(0,r.jsx)(i.Fragment,{children:(0,r.jsxs)(l.Z,{sx:{mt:1,bgcolor:"info.main",p:2},children:["To: ",(0,r.jsx)("b",{children:e.toName}),(0,r.jsx)("br",{}),"Item: ",(0,r.jsx)("b",{children:(0,D.GJ)(e.item)}),(0,r.jsx)("br",{}),"Gold: ",(0,r.jsx)("b",{children:e.gold.toLocaleString()}),(0,r.jsx)("br",{}),(0,r.jsx)("br",{}),(0,r.jsx)(A.Z,{variant:"contained",color:"error",disabled:L,onClick:function(){return N(e.id)},children:"Cancel Trade"})]})},e.id)}))})]})]})]})}function Y(e,n){(null==n||n>e.length)&&(n=e.length);for(var t=0,r=new Array(n);t1?"".concat(Math.round(1e3*(e.magnitude-1))/10,"%"):"".concat(Math.round(1e3*e.magnitude)/10,"%");switch(e.type){case B.WB.BonusStrength:return"".concat(n," increased strength");case B.WB.BonusDexterity:return"".concat(n," increased dexterity");case B.WB.BonusConstitution:return"".concat(n," increased constitution");case B.WB.BonusIntelligence:return"".concat(n," increased intelligence");case B.WB.BonusWisdom:return"".concat(n," increased wisdom");case B.WB.BonusWillpower:return"".concat(n," increased willpower");case B.WB.BonusLuck:return"".concat(n," increased luck");case B.WB.DamageReduction:return"".concat(n," reduced damage taken");case B.WB.EnhancedDamage:return"".concat(n," enhanced damage");case B.WB.BonusHealth:return"".concat(n," bonus max health");case B.WB.ReducedDelay:return"".concat(n," reduced delay on actions");case B.WB.BonusExperience:return"".concat(n," more experience from all sources");case B.WB.BonusSkillChance:return"".concat(n," bonus chance to increase skills");case B.WB.Lifesteal:return"".concat(n," damage dealt gained as health");case B.WB.Mesmerize:return"".concat(n," chance to mesmerize opponents");case B.WB.Focus:return"".concat(n," chance to resist mesmerizing")}}(e),e.type)}))})}function V(e){var n=e.artifact;return(0,r.jsxs)(i.Fragment,{children:[(0,r.jsx)(d.Z,{variant:"h4",children:n.name}),"A mysterious magical item with the following properties:",(0,r.jsx)(_,{artifact:n})]})}function X(e,n){(null==n||n>e.length)&&(n=e.length);for(var t=0,r=new Array(n);te.length)&&(n=e.length);for(var t=0,r=new Array(n);t0&&(o?"Auto-Battling":"Battling"),W<=0&&"Dead"," ",f.name]}),(0,r.jsx)(c.Z,{variant:"determinate",value:W,color:"error"})]}),W>0&&(0,r.jsxs)(i.Fragment,{children:[(0,r.jsx)(h.ZP,{item:!0,xs:6,sm:3,md:2,xl:2,children:(0,r.jsx)(M.Z,{title:"Attack using your melee weapons, uses strength and dexterity",children:(0,r.jsx)(A.Z,{sx:{fontSize:"1rem",padding:2},size:"large",id:"attack-with-melee",onClick:function(){return H(B.hK.Melee)},"aria-label":"melee attack",startIcon:(0,r.jsx)(de.Z,{}),children:"Melee attack"})})}),(0,r.jsx)(h.ZP,{item:!0,xs:6,sm:3,md:2,xl:2,children:(0,r.jsx)(M.Z,{title:"Attack using your ranged weapons, uses dexterity",children:(0,r.jsx)(A.Z,{sx:{fontSize:"1rem",padding:2},size:"large",id:"attack-with-ranged",onClick:function(){return H(B.hK.Ranged)},"aria-label":"ranged attack",startIcon:(0,r.jsx)(he.Z,{}),children:"Ranged attack"})})}),(0,r.jsx)(h.ZP,{item:!0,xs:6,sm:3,md:2,xl:2,children:(0,r.jsx)(M.Z,{title:"Cast spells using your wisdom and intelligence",children:(0,r.jsx)(A.Z,{sx:{fontSize:"1rem",padding:2},size:"large",id:"attack-with-cast",onClick:function(){return H(B.hK.Cast)},"aria-label":"cast spell",startIcon:(0,r.jsx)(fe.Z,{}),children:"Cast Spell"})})}),(0,r.jsx)(h.ZP,{item:!0,xs:6,sm:3,md:3,xl:3,children:(0,r.jsx)(M.Z,{title:"Smite your foe using wisdom and willpower",children:(0,r.jsx)(A.Z,{sx:{fontSize:"1rem",padding:2},size:"large",id:"attack-with-holy",onClick:function(){return H(B.hK.Smite)},"aria-label":"holy attack",startIcon:(0,r.jsx)(me.Z,{}),children:"Smite"})})}),(0,r.jsx)(h.ZP,{item:!0,xs:6,sm:6,md:3,xl:3,children:(0,r.jsx)(M.Z,{title:"Damage yourself to damage the enemy, uses constitution",children:(0,r.jsx)(A.Z,{sx:{fontSize:"1rem",padding:2},size:"large",id:"attack-with-blood",onClick:function(){return H(B.hK.Blood)},"aria-label":"blood magic",startIcon:(0,r.jsx)(xe.Z,{}),children:"Blood magic"})})})]})]}),b&&"This enemy was killed by another player",N&&N.log.map((function(e,n){return(0,r.jsx)(i.Fragment,{children:(0,r.jsxs)(d.Z,{children:[e.isEnchantment&&(0,r.jsxs)(i.Fragment,{children:[e.damage<0&&(0,r.jsxs)(i.Fragment,{children:[(0,r.jsx)("b",{children:e.from})," heals"," ",(0,r.jsx)("span",{id:"fight-".concat(e.from,"-enchantment-heal"),children:(0-e.damage).toLocaleString()})," ","health from their enchantments"]}),e.damage>0&&(0,r.jsxs)(i.Fragment,{children:[(0,r.jsx)("b",{children:e.from})," dealt"," ",(0,r.jsx)("span",{id:"fight-".concat(e.from,"-enchantment-damage"),children:e.damage.toLocaleString()})," ","enchantment damage to ",(0,r.jsx)("b",{children:e.to})]})]}),!e.isEnchantment&&(0,r.jsxs)(i.Fragment,{children:[(0,r.jsx)("b",{children:e.from})," ".concat(je(e.attackType,e.success,e.critical)," "),(0,r.jsx)("b",{children:e.to}),e.success?" for ".concat(e.damage.toLocaleString()," damage!"):"."]})]})},"".concat(e.from,"-").concat(n))})),N&&N.victory&&(0,r.jsxs)(i.Fragment,{children:[(0,r.jsxs)(d.Z,{id:"fight-did-win",children:[f.name," has been killed!",(N.experience||N.gold)&&" You gain ",N.gold&&(0,r.jsxs)(i.Fragment,{children:[" ",(0,r.jsx)("span",{id:"fight-recap-gold",children:N.gold.toLocaleString()})," ","gold"]}),N.gold&&N.experience&&" and",N.experience&&(0,r.jsxs)(i.Fragment,{children:[" ",(0,r.jsx)("span",{id:"fight-recap-experience",children:N.experience.toLocaleString()})," ","experience"]}),(N.experience||N.gold)&&"!! ",N.didLevel&&(0,r.jsx)("b",{id:"fight-level-up",children:"You leveled up!!"})]}),N.drop&&(0,r.jsxs)(i.Fragment,{children:[(0,r.jsx)("br",{}),(0,r.jsxs)(d.Z,{id:"fight-got-drop",variant:"h5",children:["You find an enchanted item on the monster's corpse!",(0,r.jsx)("br",{}),(0,D.GJ)(N.drop)]})]}),(0,r.jsx)("br",{}),R&&(0,r.jsx)(A.Z,{fullWidth:!0,color:"secondary",variant:"contained",onClick:function(){v&&v(f.id,q)},children:"Auto-Battle this enemy"})]})]})})}function je(e,n,t){switch(e){case B.hK.Blood:return n?t?"surges with blood magic against":"lets blood and casts forth towards":"attempts to cast a spell against";case B.hK.Smite:return n?t?"summons powers beyond this world against":"smites":"attempts to smite";case B.hK.Cast:return n?t?"carefully casts a spell at":"blasts a beam of necrotic energy into":"attempts to cast a spell against";case B.hK.Ranged:return n?t?"lands a sneak attack from the shadows, critically damaging":"fires an arrow at":"shoots an arrow but it misses";case B.hK.Melee:default:return n?t?"lands a crippling blow against":"struck":"missed"}}function Ze(e,n,t){return n in e?Object.defineProperty(e,n,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[n]=t,e}var Se=(Ze(ue={},B.zP.Normal,"Normal stance with no pros or cons."),Ze(ue,B.zP.Combat,"???"),Ze(ue,B.zP.Reckless,"???"),Ze(ue,B.zP.Aggressive,"???"),Ze(ue,B.zP.Defensive,"???"),Ze(ue,B.zP.NecroticBeam,"???"),Ze(ue,B.zP.CloudofKnives,"???"),Ze(ue,B.zP.FrozenOrb,"???"),Ze(ue,B.zP.MageArmor,"???"),Ze(ue,B.zP.NormalArrow,"???"),Ze(ue,B.zP.BarbedArrow,"???"),Ze(ue,B.zP.BloodHunter,"???"),Ze(ue,B.zP.DarkPresence,"???"),Ze(ue,B.zP.AuraoftheLifeless,"???"),Ze(ue,B.zP.ShieldSmash,"???"),Ze(ue,B.zP.ShieldSlash,"???"),Ze(ue,B.zP.HolySmite,"???"),Ze(ue,B.zP.VengefulSmite,"???"),Ze(ue,B.zP.WarriorsStance,"???"),Ze(ue,B.zP.Hexblade,"???"),Ze(ue,B.zP.Focus,"???"),ue);function we(){var e=$();if(!e)return null;var n=e.availableStances.map((function(e){return{name:e,tooltip:Se[e]}}));return n.length<2?null:(0,r.jsx)(h.ZP,{item:!0,xs:12,children:(0,r.jsxs)(h.ZP,{container:!0,sx:{textAlign:"center"},columns:6,children:[(0,r.jsx)(h.ZP,{item:!0,xs:6,children:(0,r.jsx)("hr",{})}),(0,r.jsx)(h.ZP,{item:!0,lg:1,xs:6,children:(0,r.jsx)(d.Z,{variant:"h5",children:"Select Stance"})}),n.map((function(n){return(0,r.jsx)(h.ZP,{item:!0,lg:1,md:2,sm:3,xs:6,children:(0,r.jsx)(M.Z,{title:n.tooltip,children:(0,r.jsx)(A.Z,{variant:e.activeStance===n.name?"outlined":"text",sx:{fontSize:"1rem",padding:2},size:"large",id:"set-stance-".concat(n.name.toLowerCase()),onClick:function(){return function(n){console.log("Setting stance to",n,e)}(n.name)},"aria-label":"set stance ".concat(n.name),children:n.name})})},n.name)}))]})})}function ke(e,n){(null==n||n>e.length)&&(n=e.length);for(var t=0,r=new Array(n);t.5?100*Math.random():y[0],Math.random()>.5?100*Math.random():y[1],Math.random()>.5?100*Math.random():y[2]]),0===v){e.next=4;break}return e.abrupt("return");case 4:if(!(Te||G>0)){e.next=6;break}return e.abrupt("return");case 6:if(0!==(null===ye||void 0===ye?void 0:ye.combat.health)){e.next=9;break}return console.log("[AutoBattler] Healing!"),e.abrupt("return",Fe());case 9:if(Le&&0!==Le.monster.combat.health&&Le.monster.id===C){e.next=13;break}return console.log("[AutoBattler] Challenging new mob!"),De(C),e.abrupt("return");case 13:if(!Le||!ke.current){e.next=17;break}return console.log("[AutoBattler] Fighting ".concat(l,"!")),ke.current(l),e.abrupt("return");case 17:console.log("[AutoBattler] Doing nothing...");case 18:case"end":return e.stop()}}),e)}))),(0,i.useEffect)((function(){if(w&&C.length){var e=(0,oe.Zi)((function(){Z.current()}),500);return function(){(0,oe.cv)(e)}}}),[w,Oe]),(0,i.useEffect)((function(){var e;if(null===ae||void 0===ae||null===(e=ae.monsters)||void 0===e?void 0:e.length){var n=ae.monsters.concat().sort((function(e,n){return e.monster.level-n.monster.level}));if(""===K)_(n[0].id);else ae.monsters.find((function(e){return e.id===K}))||_(n[0].id)}}),[K,null===ae||void 0===ae||null===(n=ae.monsters)||void 0===n?void 0:n.length]);var Ne=null===ae||void 0===ae||null===(t=ae.monsters)||void 0===t?void 0:t.find((function(e){return e.id===K}));Ne||(K="");var Ge=Ee.find((function(e){return e.id===te}));(Ee.find((function(e){return e.id===X}))||(X=""),ye)&&(ye.levelCap>100||(ge=ge.slice(0,ye.level)));Ee=Ee.filter((function(e){return e.combat.health>0}));var Re="Select a new monster to challenge",He="Fight an existing monster!",Ue="Duel with a nearby player!";return(0,r.jsx)(i.Fragment,{children:(0,r.jsxs)(h.ZP,{container:!0,columns:6,spacing:4,children:[!w&&ye&&ye.combat.health>0&&(0,r.jsxs)(i.Fragment,{children:[(0,r.jsx)(h.ZP,{item:!0,md:3,xs:6,children:(0,r.jsxs)(I.Z,{fullWidth:!0,children:[(0,r.jsx)(E.Z,{id:"challenge-monster-select-label",children:Re}),(0,r.jsx)(z.Z,{id:"challenge-select",labelId:"challenge-monster-select-label",value:U,label:Re,disabled:w,onChange:function(e){return Y(e.target.value)},children:ge.map((function(e){return(0,r.jsxs)(q.Z,{value:e.id,children:[e.name,"\xa0",(0,r.jsxs)(d.Z,{variant:"caption",display:"inline-block",children:["Tier ",e.level]})]},e.id)}))}),(0,r.jsx)(A.Z,{id:"challenge-button",disabled:!U||G>0||me||w,onClick:function(){return $e.apply(this,arguments)},variant:"contained",children:"Challenge!"})]})}),(0,r.jsx)(h.ZP,{item:!0,md:3,xs:6,children:(0,r.jsxs)(I.Z,{fullWidth:!0,children:[(0,r.jsx)(E.Z,{id:"fight-monster-select-label",children:He}),(0,r.jsx)(z.Z,{id:"fight-select",labelId:"fight-monster-select-label",value:K,label:He,disabled:w,onChange:function(e){return _(e.target.value)},children:(null===ae||void 0===ae?void 0:ae.monsters)&&Ie(null===ae||void 0===ae?void 0:ae.monsters).sort((function(e,n){return e.monster.level-n.monster.level})).map((function(e){return(0,r.jsxs)(q.Z,{value:e.id,disabled:0===e.monster.combat.health,children:[0===e.monster.combat.health&&"Dead ",e.monster.name]},e.id)}))}),(0,r.jsx)(A.Z,{id:"fight-button",disabled:!K||G>0||me||Ne&&0===Ne.monster.combat.health||w,onClick:function(){return Be.apply(this,arguments)},variant:"contained",children:"Fight!"})]})}),Ee.length>1&&(0,r.jsx)(h.ZP,{item:!0,md:3,xs:6,children:(0,r.jsxs)(I.Z,{fullWidth:!0,children:[(0,r.jsx)(E.Z,{id:"duel-select-label",children:Ue}),(0,r.jsx)(z.Z,{id:"duel-select",labelId:"duel-select-label",value:X,label:Ue,disabled:w,onChange:function(e){return ee(e.target.value)},children:Ee.filter((function(e){return e.id!==ye.id})).sort((function(e,n){return e.level-n.level})).map((function(e){return(0,r.jsx)(q.Z,{value:e.id,children:e.name},e.id)}))}),(0,r.jsx)(A.Z,{id:"duel-button",disabled:!X.length||G>0||me||w,onClick:function(){return Qe.apply(this,arguments)},variant:"contained",children:"Duel Player!"})]})})]}),w&&(0,r.jsxs)(h.ZP,{item:!0,xs:6,children:[(0,r.jsx)(c.Z,{sx:{margin:1,color:"#f00"},variant:"determinate",value:y[0],color:"inherit"}),(0,r.jsx)(c.Z,{color:"inherit",sx:{margin:1,color:"#0f0"},variant:"determinate",value:y[1]}),(0,r.jsx)(c.Z,{color:"inherit",sx:{margin:1,color:"#00f"},variant:"determinate",value:y[2]}),(0,r.jsx)(A.Z,{fullWidth:!0,variant:"contained",color:"error",size:"large",onClick:function(){return k(!1)},children:"Disable Auto-Battle"})]}),ye&&ye.combat.health<=0&&(0,r.jsx)(h.ZP,{item:!0,lg:3,xs:6,children:(0,r.jsx)(d.Z,{id:"you-are-dead",children:"You are dead."})}),Le&&(0,r.jsxs)(i.Fragment,{children:[(0,r.jsx)(we,{}),(0,r.jsx)(be,{fight:Le,onError:function(){ue(),Q(null)},autoBattle:w,canAutoBattle:Me,onAutoBattle:function(e,n){return qe.apply(this,arguments)},fightMutationRef:ke,onVictory:function(){return m(f+1)}},"".concat(Le.id,"-").concat(O))]}),Ge&&(0,r.jsxs)(i.Fragment,{children:[(0,r.jsx)(we,{}),(0,r.jsx)(be,{fight:{id:Ge.id,monster:Ge},onError:function(){ue(),Q(null)},duel:!0,autoBattle:!1,canAutoBattle:!1},"".concat(Ge.id,"-").concat(O))]}),(0,r.jsx)(h.ZP,{item:!0,lg:3,xs:6,children:(0,r.jsx)(A.Z,{id:"heal-button",fullWidth:!0,onClick:Fe,variant:"contained",disabled:G>0||me||ye&&ye.combat.health===ye.combat.maxHealth,children:"Heal"})})]})})}var Me=t(9692);function Oe(e){var n=e.location,t=e.minimapSize,i=void 0===t?[24,24]:t,a=e.gridSize,o=void 0===a?[128,96]:a,l=e.cellSize,s=void 0===l?16:l,c=e.indicatorSize,u=void 0===c?8:c,d=[Math.round(Math.min(o[0]-i[0],Math.max(0,n.x-i[0]/2))),Math.round(Math.min(o[1]-i[1],Math.max(0,n.y-i[1]/2)))];return(0,r.jsx)("div",{style:{position:"relative",display:"inline-block",backgroundImage:"url(/maps/".concat(n.map,".jpg)"),backgroundPosition:"-".concat(d[0]*s,"px -").concat(d[1]*s,"px"),backgroundSize:"".concat(128*s,"px ").concat(96*s,"px "),width:"".concat(i[0]*s,"px"),height:"".concat(i[1]*s,"px")},children:(0,r.jsx)("div",{style:{position:"absolute",borderRadius:"".concat(u/2,"px"),backgroundColor:"red",border:"2px solid rgba(255,255,255,0.3)",left:"".concat((n.x-d[0])*s+(s-u)/2,"px"),top:"".concat((n.y-d[1])*s+(s-u)/2,"px"),width:"".concat(u,"px"),height:"".concat(u,"px")}})})}function Te(e,n){(null==n||n>e.length)&&(n=e.length);for(var t=0,r=new Array(n);te.length)&&(n=e.length);for(var t=0,r=new Array(n);t0&&(0,r.jsx)(d.Z,{sx:{mb:2},variant:"body1",color:a?"success.main":"error.main",children:c}),n.trades.map((function(e,n){return(0,r.jsx)(i.Fragment,{children:(0,r.jsxs)(d.Z,{children:[(0,r.jsx)(Ge,{trade:e}),(0,r.jsx)(A.Z,{disabled:m,onClick:function(){return function(e){return x.apply(this,arguments)}(e.id)},sx:{ml:1},children:"Trade"})]})},"npc shop items ".concat(n))}))]})}function Ge(e){var n=e.trade;return(0,r.jsxs)(i.Fragment,{children:["For the price of ",(0,r.jsx)(Re,{price:n.price}),", I'll give you"," ",(0,r.jsx)(Re,{price:n.offer})]})}function Re(e){var n=e.price;return(0,r.jsx)(M.Z,{title:He(n),children:(0,r.jsx)("b",{children:n.description})})}function He(e){var n,t,r,i=[];return e.gold&&i.push("".concat(e.gold.toLocaleString()," gold")),e.dust&&i.push("".concat(e.dust.toLocaleString()," dust")),(null===(n=e.baseItems)||void 0===n?void 0:n.length)&&e.baseItems.forEach((function(e){i.push("".concat(e))})),(null===(t=e.enchantments)||void 0===t?void 0:t.length)&&e.enchantments.forEach((function(e){i.push("".concat((0,D.uD)(e)))})),(null===(r=e.questItems)||void 0===r?void 0:r.length)&&e.questItems.forEach((function(e){i.push("".concat(e))})),i.length?i.join(", "):"???"}var Ue=t(3020),Ye=t(2748),Je=t(1425),Ke=t(6580),_e=t(8951),Ve=t(7645),Xe=t(8987),en=t(7855),nn=t(3707),tn=t(9653),rn=t(6447);function an(e,n){(null==n||n>e.length)&&(n=e.length);for(var t=0,r=new Array(n);te.length)&&(n=e.length);for(var t=0,r=new Array(n);tt.gold?"error":"success",onClick:function(){return function(e){return x.apply(this,arguments)}(e.type)},children:"Upgrade"}),e.name]})},e.type)}))]})}function yn(e){e.hero,e.camp;return null}var bn=t(8396),jn=t(2734),Zn=t(2613),Sn=t(3054),wn=t(7563),kn=t(6398),An=t(6667),Pn=t(3898),Cn=t(1733),In=t(1671);function En(e,n,t){return n in e?Object.defineProperty(e,n,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[n]=t,e}function Ln(e){for(var n=1;ne.length)&&(n=e.length);for(var t=0,r=new Array(n);t=l||c.find((function(n){return n.x===e&&n.y===t}))?"continue":c.find((function(n){return n.x===e+1&&n.y===t||n.x===e-1&&n.y===t||n.x===e&&n.y===t+1||n.x===e&&n.y===t-1}))?void n.push({x:e,y:t,map:a.location.map}):"continue"},i=u.y,o=d.y;i<=o;++i)r(i)},n=[],t=u.x,r=d.x;t<=r;++t)e(t);return n}),[c.length,u.x,u.y,d.x,d.y,l]);function f(){return(f=Dn(j().mark((function e(n){return j().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,s({variables:{location:n,type:o}});case 3:e.next=7;break;case 5:e.prev=5,e.t0=e.catch(0);case 7:case"end":return e.stop()}}),e,null,[[0,5]])})))).apply(this,arguments)}return(0,r.jsx)(i.Fragment,{children:h.map((function(e){return(0,r.jsx)(Wn,{onClick:function(){return function(e){return f.apply(this,arguments)}(e)},hover:!0,color:"rgb(10, 120, 10)",cellSize:n,boundingBox:t,location:e,tooltip:"Build here",icon:(0,r.jsx)(Sn.Z,{})},"".concat(e.x,"-").concat(e.y))}))})}function Qn(e){e.location;return(0,r.jsx)("div",{children:"details"})}function Nn(e,n){(null==n||n>e.length)&&(n=e.length);for(var t=0,r=new Array(n);te.length)&&(n=e.length);for(var t=0,r=new Array(n);t0||L;function Y(e){return J.apply(this,arguments)}function J(){return(J=nt(j().mark((function e(n){var t,r;return j().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,P({variables:{direction:n}});case 3:T(),e.next=10;break;case 6:e.prev=6,e.t0=e.catch(0),e.t0.graphQLErrors&&(null===(t=e.t0.graphQLErrors[0])||void 0===t||null===(r=t.extensions)||void 0===r?void 0:r.delay)&&w(e.t0.graphQLErrors[0].extensions.remaining);case 10:case"end":return e.stop()}}),e,null,[[0,6]])})))).apply(this,arguments)}function K(){return(K=nt(j().mark((function e(){var n,t;return j().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,E({variables:{x:v,y:y}});case 3:T(),e.next=10;break;case 6:e.prev=6,e.t0=e.catch(0),e.t0.graphQLErrors&&(null===(n=e.t0.graphQLErrors[0])||void 0===n||null===(t=n.extensions)||void 0===t?void 0:t.delay)&&w(e.t0.graphQLErrors[0].extensions.remaining);case 10:case"end":return e.stop()}}),e,null,[[0,6]])})))).apply(this,arguments)}var _,V=Math.round(Math.pow(5*(0,D.LW)(c.location,{x:v,y:y}),1.3));return(0,r.jsx)(i.Fragment,{children:(0,r.jsxs)(h.ZP,{container:!0,columns:2,spacing:3,children:[(0,r.jsx)(h.ZP,{item:!0,xs:2,sm:1,children:(0,r.jsxs)(h.ZP,{container:!0,columns:6,spacing:3,children:[(0,r.jsx)(h.ZP,{item:!0,style:{textAlign:"center"},xs:6,children:(0,r.jsx)(mn,{hero:c,onShowSettlement:function(){m(!0)}})}),(0,r.jsxs)(h.ZP,{item:!0,style:{textAlign:"center"},xs:6,children:[(0,r.jsx)(d.Z,{variant:"h5",children:"Travel"}),c.combat.health>0&&(0,r.jsx)(d.Z,{children:"Use buttons to move around the map."}),0===c.combat.health&&(0,r.jsx)(d.Z,{variant:"h6",children:"You cannot move while dead. Heal yourself in the Combat tab."})]}),(0,r.jsx)(h.ZP,{item:!0,style:{textAlign:"center"},xs:2}),(0,r.jsx)(h.ZP,{item:!0,style:{textAlign:"center"},xs:2,children:(0,r.jsx)(A.Z,{"aria-label":"North terrain: ".concat(N),disabled:U,variant:"contained",onClick:function(){return Y(B.p$.North)},children:"North"})}),(0,r.jsx)(h.ZP,{item:!0,style:{textAlign:"center"},xs:2}),(0,r.jsx)(h.ZP,{item:!0,style:{textAlign:"center"},xs:2,children:(0,r.jsx)(A.Z,{"aria-label":"West terrain: ".concat(H),disabled:U,variant:"contained",onClick:function(){return Y(B.p$.West)},children:"West"})}),(0,r.jsx)(h.ZP,{item:!0,style:{textAlign:"center"},xs:2,children:(0,r.jsxs)(d.Z,{children:[c.location.x,", ",c.location.y]})}),(0,r.jsx)(h.ZP,{item:!0,style:{textAlign:"center"},xs:2,children:(0,r.jsx)(A.Z,{"aria-label":"East terrain: ".concat(R),disabled:U,variant:"contained",onClick:function(){return Y(B.p$.East)},children:"East"})}),(0,r.jsx)(h.ZP,{item:!0,style:{textAlign:"center"},xs:2}),(0,r.jsx)(h.ZP,{item:!0,style:{textAlign:"center"},xs:2,children:(0,r.jsx)(A.Z,{"aria-label":"South terrain: ".concat(G),disabled:U,variant:"contained",onClick:function(){return Y(B.p$.South)},children:"South"})}),(0,r.jsx)(h.ZP,{item:!0,style:{textAlign:"center"},xs:2}),c.stats.intelligence>100&&(0,r.jsxs)(h.ZP,{item:!0,style:{textAlign:"center"},xs:6,children:[(0,r.jsx)(s.Z,{}),(0,r.jsx)(d.Z,{variant:"h5",color:"secondary",sx:{margin:1},children:"Teleport"}),(0,r.jsx)(Q.Z,{label:"X coordinate",value:v,onChange:function(e){return l(e.target.value,y)},sx:{width:"100px",margin:1}}),(0,r.jsx)(Q.Z,{label:"Y coordinate",value:y,onChange:function(e){return l(v,e.target.value)},sx:{width:"100px",margin:1}}),(0,r.jsx)("br",{}),(0,r.jsxs)(A.Z,{color:"secondary",variant:"outlined",onClick:function(){return K.apply(this,arguments)},disabled:0===V||V>c.stats.intelligence||U,children:["Teleport",(0,r.jsx)("br",{}),V>0&&"".concat(V.toLocaleString()," minimum intelligence")]})]})]})}),(0,r.jsxs)(h.ZP,{item:!0,style:{textAlign:"center"},xs:2,sm:1,children:[z&&(0,r.jsx)(d.Z,{variant:"h6",children:z.name}),z&&(0,r.jsx)(d.Z,{variant:"subtitle2",children:z.type}),q&&(0,r.jsxs)(i.Fragment,{children:[(0,r.jsxs)(d.Z,{variant:"h6",children:[null!==(_=null===(t=q.publicOwner)||void 0===t?void 0:t.name)&&void 0!==_?_:"???","'s Settlement"]}),(0,r.jsx)(d.Z,{variant:"subtitle2",children:q.type})]}),!z&&!q&&W&&(0,r.jsxs)(i.Fragment,{children:[(0,r.jsx)(d.Z,{variant:"h6",children:"Wilderness"}),(0,r.jsx)(d.Z,{variant:"subtitle2",children:W.terrain.terrain})]}),!z&&!q&&!W&&(0,r.jsxs)(i.Fragment,{children:[(0,r.jsx)(d.Z,{variant:"h6",children:"\xa0"}),(0,r.jsx)(d.Z,{variant:"subtitle2",children:"loading..."})]}),(0,r.jsx)(Oe,{location:c.location}),(null===z||void 0===z?void 0:z.description)&&z.description.map((function(e,n){return(0,r.jsx)(d.Z,{variant:"body1",children:e},"loc-desc-".concat(n))})),F.filter((function(e){return!!e})).map((function(e){return(0,r.jsx)(d.Z,{variant:"body1",role:"status",children:e},e)}))]}),"dock"===(null===z||void 0===z?void 0:z.type)&&(0,r.jsx)(h.ZP,{item:!0,style:{textAlign:"center"},xs:2,children:(0,r.jsx)($e,{location:z})}),(null===W||void 0===W?void 0:W.shop)&&(0,r.jsx)(h.ZP,{item:!0,style:{textAlign:"center"},xs:2,children:(0,r.jsx)(Ne,{shop:null===W||void 0===W?void 0:W.shop})})]})})}var at,ot=t(7948),lt=t(7416);function st(e,n){(null==n||n>e.length)&&(n=e.length);for(var t=0,r=new Array(n);t2&&(0,r.jsxs)(i.Fragment,{children:[(0,r.jsx)(d.Z,{id:"level-up-stat-slider-label",children:v}),(0,r.jsx)(lt.ZP,{min:1,max:x.attributePoints,value:o,onChange:function(e,n){return!Array.isArray(n)&&c(n)},id:"level-up-stat-slider","aria-labelledby":"level-up-stat-slider-label",valueLabelDisplay:"auto"})]})})]}),(0,r.jsx)("br",{}),(0,r.jsxs)(h.ZP,{container:!0,columns:14,spacing:2,children:[(0,r.jsx)(M.Z,{title:"Strength determines your damage when attacking with melee weapons",children:(0,r.jsx)(h.ZP,{item:!0,xs:14,sm:7,md:4,lg:2,children:(0,r.jsx)(d.Z,{align:"center",children:(0,r.jsx)(A.Z,{id:"level-up-strength",disabled:m||n>0,onClick:function(){return p("Strength")},variant:"contained",children:"Strength"})})})}),(0,r.jsx)(M.Z,{title:"Dexterity determines the accuracy and dodge rate for melee and ranged weapons, it also determines ranged weapons damage",children:(0,r.jsx)(h.ZP,{item:!0,xs:14,sm:7,md:4,lg:2,children:(0,r.jsx)(d.Z,{align:"center",children:(0,r.jsx)(A.Z,{id:"level-up-dexterity",disabled:m||n>0,onClick:function(){return p("Dexterity")},variant:"contained",children:"Dexterity"})})})}),(0,r.jsx)(M.Z,{title:"Constitution determines your max health, and is used in both attacking and defending blood magic",children:(0,r.jsx)(h.ZP,{item:!0,xs:14,sm:7,md:4,lg:2,children:(0,r.jsx)(d.Z,{align:"center",children:(0,r.jsx)(A.Z,{id:"level-up-constitution",disabled:m||n>0,onClick:function(){return p("Constitution")},variant:"contained",children:"Constitution"})})})}),(0,r.jsx)(M.Z,{title:"Intelligence determines your spellcasting damage",children:(0,r.jsx)(h.ZP,{item:!0,xs:14,sm:7,md:4,lg:2,children:(0,r.jsx)(d.Z,{align:"center",children:(0,r.jsx)(A.Z,{id:"level-up-intelligence",disabled:m||n>0,onClick:function(){return p("Intelligence")},variant:"contained",children:"Intelligence"})})})}),(0,r.jsx)(M.Z,{title:"Wisdom is your accuracy and dodge stat for spellcasting and smiting",children:(0,r.jsx)(h.ZP,{item:!0,xs:14,sm:7,md:4,lg:2,children:(0,r.jsx)(d.Z,{align:"center",children:(0,r.jsx)(A.Z,{id:"level-up-wisdom",disabled:m||n>0,onClick:function(){return p("Wisdom")},variant:"contained",children:"Wisdom"})})})}),(0,r.jsx)(M.Z,{title:"Willpower helps you survive attacks by reducing damage, it also helps smiters deal deal more damage.",children:(0,r.jsx)(h.ZP,{item:!0,xs:14,sm:7,md:4,lg:2,children:(0,r.jsx)(d.Z,{align:"center",children:(0,r.jsx)(A.Z,{id:"level-up-willpower",disabled:m||n>0,onClick:function(){return p("Willpower")},variant:"contained",children:"Willpower"})})})}),(0,r.jsx)(M.Z,{title:"Luck helps you critically strike foes and also affects item drop rates",children:(0,r.jsx)(h.ZP,{item:!0,xs:14,md:12,lg:2,children:(0,r.jsx)(d.Z,{align:"center",children:(0,r.jsx)(A.Z,{id:"level-up-luck",disabled:m||n>0,onClick:function(){return p("Luck")},variant:"contained",children:"Luck"})})})}),(0,r.jsx)(M.Z,{title:"Places 1 in every stat for a more well rounded character",children:(0,r.jsx)(h.ZP,{item:!0,xs:14,md:12,lg:2,children:(0,r.jsx)(d.Z,{align:"center",children:(0,r.jsx)(A.Z,{id:"level-up-all",disabled:m||n>0,onClick:function(){return p("All")},variant:"contained",children:"All"})})})})]}),(0,r.jsx)("br",{}),(0,r.jsx)("br",{}),(0,r.jsx)("br",{})]}),(0,r.jsx)(s.Z,{})]})}function ft(e,n){(null==n||n>e.length)&&(n=e.length);for(var t=0,r=new Array(n);to.gold,children:[e.cost&&(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(d.Z,{display:"inline-block",children:e.name}),"\xa0",(0,r.jsxs)(d.Z,{variant:"caption",display:"inline-block",children:["Lvl. ",e.level]}),"\xa0",(0,r.jsxs)(d.Z,{variant:"subtitle2",display:"inline-block",sx:{color:"info.main"},children:[e.cost.toLocaleString()," Gold"]})]}),!e.cost&&e.name]},e.id)}))})]}):null}function Zt(){var e=pt((0,le.g)(),1)[0],n=(0,i.useState)(null),t=n[0],a=n[1],o=(0,i.useState)(""),l=o[0],c=o[1],u=(0,B.Cb)(),f=u.data,m=(u.loading,u.error,pt((0,B.Nn)(),2)),x=m[0],v=m[1].loading,p=pt((0,B.o_)(),2),g=p[0],y=p[1].loading||v||e>0;function b(){return(b=xt(j().mark((function e(){return j().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(t){e.next=2;break}return e.abrupt("return");case 2:return e.prev=2,a(null),e.next=6,x({variables:{baseItem:t.id}});case 6:e.next=10;break;case 8:e.prev=8,e.t0=e.catch(2);case 10:case"end":return e.stop()}}),e,null,[[2,8]])})))).apply(this,arguments)}function Z(){return(Z=xt(j().mark((function e(){return j().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(t){e.next=2;break}return e.abrupt("return");case 2:return e.prev=2,a(null),e.next=6,g({variables:{item:t.id}});case 6:e.next=10;break;case 8:e.prev=8,e.t0=e.catch(2);case 10:case"end":return e.stop()}}),e,null,[[2,8]])})))).apply(this,arguments)}var S,w="Choose which shop to visit";return(0,r.jsxs)(i.Fragment,{children:[(0,r.jsxs)(d.Z,{align:"center",children:["Welcome to the shop! You can buy and sell any non-enchanted items here.",(0,r.jsx)("br",{}),"The items purchasable here have a level from 1 to 32 but no enchantments or direct attribute increases."]}),(0,r.jsx)("br",{}),(0,r.jsx)(s.Z,{}),(0,r.jsx)("br",{}),(0,r.jsxs)(h.ZP,{container:!0,columns:6,spacing:2,children:[(0,r.jsx)(h.ZP,{item:!0,xs:6,sm:3,children:(0,r.jsxs)(I.Z,{fullWidth:!0,children:[(0,r.jsx)(E.Z,{id:"shop-type-select-label",children:w}),(0,r.jsxs)(z.Z,{id:"shop-type-select",labelId:"shop-type-select-label",value:l,label:w,onChange:function(e){c(e.target.value),a(null)},children:[(0,r.jsx)(q.Z,{value:"sell",children:"Sell Items"}),(0,r.jsx)(s.Z,{}),(0,r.jsxs)(q.Z,{value:B.$7.MeleeWeapon,children:[yt(B.$7.MeleeWeapon)," Shop"]}),(0,r.jsxs)(q.Z,{value:B.$7.RangedWeapon,children:[yt(B.$7.RangedWeapon)," Shop"]}),(0,r.jsxs)(q.Z,{value:B.$7.SpellFocus,children:[yt(B.$7.SpellFocus)," Shop"]}),(0,r.jsxs)(q.Z,{value:B.$7.Shield,children:[yt(B.$7.Shield)," Shop"]}),(0,r.jsxs)(q.Z,{value:B.$7.BodyArmor,children:[yt(B.$7.BodyArmor)," Shop"]}),(0,r.jsxs)(q.Z,{value:B.$7.HandArmor,children:[yt(B.$7.HandArmor)," Shop"]}),(0,r.jsxs)(q.Z,{value:B.$7.LegArmor,children:[yt(B.$7.LegArmor)," Shop"]}),(0,r.jsxs)(q.Z,{value:B.$7.HeadArmor,children:[yt(B.$7.HeadArmor)," Shop"]}),(0,r.jsxs)(q.Z,{value:B.$7.FootArmor,children:[yt(B.$7.FootArmor)," Shop"]})]})]})}),(0,r.jsxs)(h.ZP,{item:!0,xs:6,sm:3,children:[""!==l&&"sell"!==l&&(0,r.jsx)(jt,{value:t?t.id:null,type:l,items:function(e){var n;return(null===f||void 0===f||null===(n=f.shopItems)||void 0===n?void 0:n.length)?f.shopItems.filter((function(n){return n.type===e})):[]}(l),onChange:function(e){return a(e)}},l),"sell"===l&&(0,r.jsx)(bt,{value:t?t.id:null,sellables:null!==(S=null===f||void 0===f?void 0:f.shopItems)&&void 0!==S?S:[],onChange:function(e){return a(e)}})]}),(0,r.jsx)(h.ZP,{item:!0,xs:6,children:t&&(0,r.jsxs)(A.Z,{variant:"contained",color:"sell"===l?"error":"success",fullWidth:!0,disabled:y,onClick:"sell"===l?function(){return Z.apply(this,arguments)}:function(){return b.apply(this,arguments)},children:["sell"===l?"Sell":"Buy"," ",t.name," for"," ",t.cost.toLocaleString()," gold"]})})]}),(0,r.jsx)("br",{})]})}function St(){$();var e=se();ce();return(0,r.jsxs)(i.Fragment,{children:[(0,r.jsx)(d.Z,{variant:"h3",sx:{textAlign:"center"},children:"Item Shop"}),(0,r.jsx)(Zt,{}),(null===e||void 0===e?void 0:e.shop)&&(0,r.jsx)(Ne,{shop:null===e||void 0===e?void 0:e.shop})]})}function wt(e,n){(null==n||n>e.length)&&(n=e.length);for(var t=0,r=new Array(n);t=n.levelCap);function s(){return(s=At(j().mark((function e(){return j().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,a();case 3:e.next=8;break;case 5:e.prev=5,e.t0=e.catch(0),console.log(e.t0);case 8:case"end":return e.stop()}}),e,null,[[0,5]])})))).apply(this,arguments)}return(0,r.jsxs)(l.Z,{sx:{padding:1,margin:1},children:[(0,r.jsx)(d.Z,{color:"secondary",variant:"h2",children:"Rebirth"}),!o&&(0,r.jsx)(d.Z,{children:"You may only be reborn when you are at level cap. Keep leveling up your character in order to be reborn!"}),o&&(0,r.jsxs)(i.Fragment,{children:[(0,r.jsx)(d.Z,{children:"This will reset your character's level and attributes, however you will keep all gold and items and will receive special bonuses depending on your current level cap."}),(0,r.jsx)("br",{}),(0,r.jsx)(A.Z,{size:"large",variant:"outlined",color:"secondary",onClick:function(){return s.apply(this,arguments)},children:"Reset Character to Level 1"})]})]})}var It=t(5988),Et=t(9629);function Lt(e,n){(null==n||n>e.length)&&(n=e.length);for(var t=0,r=new Array(n);te.length)&&(n=e.length);for(var t=0,r=new Array(n);t1&&"(".concat(p[e],")"),"???"!==(0,D.Lt)(e)&&(0,r.jsxs)(d.Z,{variant:"subtitle2",sx:{color:"primary.main"},children:["\xa0",(0,D.Lt)(e)]})]},e)}))})]}),(0,r.jsxs)(A.Z,{fullWidth:!0,variant:"contained",disabled:!y||t||x||S>n.enchantingDust,color:"success",onClick:function(){return Z.apply(this,arguments)},children:[y&&""!==u&&(0,r.jsxs)(l.Z,{children:[(0,r.jsxs)(d.Z,{children:["Create"," ",(0,r.jsx)("b",{children:(0,D.FK)(y.baseItem,u)})]}),(0,r.jsxs)(d.Z,{variant:"subtitle2",children:["Costs ",S.toLocaleString()," Enchantment Dust"]})]}),!y&&"Select Item"]})]})}function Nt(e,n){(null==n||n>e.length)&&(n=e.length);for(var t=0,r=new Array(n);tn.enchantingDust,color:"error",onClick:function(){return Z.apply(this,arguments)},children:[b&&(0,r.jsxs)(l.Z,{children:[(0,r.jsxs)(d.Z,{children:["Disenchant ",(0,r.jsx)("b",{children:(0,D.GJ)(b)})]}),(0,r.jsxs)(d.Z,{variant:"subtitle2",children:["Costs ",w.toLocaleString()," Enchantment Dust"]})]}),!b&&"Select Item"]})]}),(0,r.jsx)("br",{}),(0,r.jsx)("br",{}),f&&(0,r.jsxs)(I.Z,{fullWidth:!0,children:[(0,r.jsx)(E.Z,{id:"filter-select-label",children:"Filter by enchantment"}),(0,r.jsx)(z.Z,{id:"filter-select",labelId:"filter-select-label",value:o||"",label:"Filter by enchantment",onChange:function(e){var t=e.target.value;n.inventory.find((function(e){return e.enchantment===t}))&&s(t)},children:y.map((function(e){return(0,r.jsxs)(q.Z,{value:e,children:[(0,D.uD)(e),"???"!==(0,D.Lt)(e)&&(0,r.jsxs)(d.Z,{variant:"subtitle2",sx:{color:"primary.main"},children:["\xa0",(0,D.Lt)(e)]})]},e)}))})]})]})}function Yt(e){var n=e.hero,t=e.disabled,a=(0,i.useState)("1"),o=a[0],c=a[1];return(0,r.jsxs)(i.Fragment,{children:[(0,r.jsx)(s.Z,{sx:{margin:2}}),(0,r.jsx)(d.Z,{variant:"h2",color:"secondary",children:"Crafting"}),(0,r.jsxs)(d.Z,{variant:"subtitle1",color:"secondary",children:["Enchanting Dust:"," ",(0,r.jsx)("span",{id:"hero-stats-enchanting-dust",children:n.enchantingDust.toLocaleString()})]}),(0,r.jsxs)(d.Z,{variant:"subtitle1",color:"secondary",children:["Enchantments:"," ",(0,r.jsx)("span",{id:"hero-stats-enchantments",children:n.enchantments.length.toLocaleString()})]}),(0,r.jsx)("br",{}),(0,r.jsx)(x.ZP,{value:o,children:(0,r.jsxs)(l.Z,{sx:{flexGrow:1,borderBottom:1,borderColor:"divider",display:"flex"},children:[(0,r.jsxs)(v.Z,{orientation:"vertical",onChange:function(e,n){return c(n)},"aria-label":"navigation tabs",variant:"scrollable",textColor:"secondary",indicatorColor:"secondary",sx:{flexShrink:0,flexGrow:0,width:"100px"},children:[(0,r.jsx)(u.Z,{icon:(0,r.jsx)(Cn.Z,{}),label:"Destroy",value:"1"}),(0,r.jsx)(u.Z,{icon:(0,r.jsx)(Et.Z,{}),label:"Disenchant",value:"2"}),(0,r.jsx)(u.Z,{icon:(0,r.jsx)(It.Z,{}),label:"Enchant",value:"3"})]}),(0,r.jsx)(p.Z,{value:"1",children:(0,r.jsx)(Ft,{hero:n,disabled:t})}),(0,r.jsx)(p.Z,{value:"2",children:(0,r.jsx)(Ut,{hero:n,disabled:t})}),(0,r.jsx)(p.Z,{value:"3",children:(0,r.jsx)(Qt,{hero:n,disabled:t})})]})})]})}function Jt(e,n){(null==n||n>e.length)&&(n=e.length);for(var t=0,r=new Array(n);t=0,children:[e.id===c?(0,r.jsx)("b",{children:(0,D.GJ)(e)}):(0,D.GJ)(e),(0,r.jsxs)(d.Z,{variant:"caption",sx:{color:"info.secondary"},children:["\xa0Lvl. ",e.level]}),e.enchantment&&(0,r.jsxs)(d.Z,{variant:"subtitle2",sx:{color:"info.main"},children:["\xa0",(0,D.Lt)(e.enchantment)]})]},e.id)}))})]})})})}function Xt(e){var n=e.hero,t=e.disabled,a=e.onChange,o=(0,i.useState)(""),l=o[0],s=o[1],c=n.inventory.filter((function(e){return e.type===B.$7.Quest})).sort((function(e,n){return n.level-e.level})),u="Quest items (passive, always active)",h=n.inventory.find((function(e){return e.id===l}));return(0,i.useEffect)((function(){l.length&&!h&&s("")}),[h,l]),(0,r.jsx)(i.Fragment,{children:(0,r.jsx)("div",{children:(0,r.jsxs)(I.Z,{fullWidth:!0,children:[(0,r.jsx)(E.Z,{id:"quest-item-label",children:u}),(0,r.jsx)(z.Z,{id:"quest-item",labelId:"quest-item-label",value:l,label:u,disabled:t,onChange:function(e){if(s(e.target.value),a){var n=c.find((function(n){return n.id===e.target.value}));n&&a(n.baseItem)}},children:c.map((function(e){return(0,r.jsxs)(q.Z,{value:e.id,children:[(0,D.GJ)(e),"???"!==(0,D.Lt)(e.baseItem)&&(0,r.jsxs)(d.Z,{variant:"subtitle2",sx:{color:"primary.main"},children:["\xa0",(0,D.Lt)(e.baseItem)]})]},e.id)}))})]})})})}function er(e,n){(null==n||n>e.length)&&(n=e.length);for(var t=0,r=new Array(n);t0;if(!c)return null;function f(e,n){return m.apply(this,arguments)}function m(){return(m=tr(j().mark((function e(n,r){return j().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,t({variables:{item:r,slot:n}});case 3:e.next=7;break;case 5:e.prev=5,e.t0=e.catch(0);case 7:case"end":return e.stop()}}),e,null,[[0,5]])})))).apply(this,arguments)}return(0,r.jsx)(i.Fragment,{children:(0,r.jsxs)(h.ZP,{container:!0,columns:6,spacing:1,children:[(0,r.jsx)(h.ZP,{item:!0,xs:6,children:(0,r.jsx)(d.Z,{variant:"h3",sx:{fontSize:"1.2rem"},children:"Equipped items"})}),(0,r.jsx)(h.ZP,{item:!0,xs:6,sm:3,children:(0,r.jsx)(Vt,{hero:c,slot:"leftHand",label:"Left Hand",onEquip:f,disabled:u})}),(0,r.jsx)(h.ZP,{item:!0,xs:6,sm:3,children:(0,r.jsx)(Vt,{hero:c,slot:"rightHand",label:"Right Hand",onEquip:f,disabled:u})}),(0,r.jsx)(h.ZP,{item:!0,xs:6,sm:3,children:(0,r.jsx)(Vt,{hero:c,slot:"bodyArmor",label:"Body Armor",onEquip:f,disabled:u})}),(0,r.jsx)(h.ZP,{item:!0,xs:6,sm:3,children:(0,r.jsx)(Vt,{hero:c,slot:"handArmor",label:"Gauntlets",onEquip:f,disabled:u})}),(0,r.jsx)(h.ZP,{item:!0,xs:6,sm:3,children:(0,r.jsx)(Vt,{hero:c,slot:"legArmor",label:"Leggings",onEquip:f,disabled:u})}),(0,r.jsx)(h.ZP,{item:!0,xs:6,sm:3,children:(0,r.jsx)(Vt,{hero:c,slot:"headArmor",label:"Helmets",onEquip:f,disabled:u})}),(0,r.jsx)(h.ZP,{item:!0,xs:6,sm:3,children:(0,r.jsx)(Vt,{hero:c,slot:"footArmor",label:"Greaves",onEquip:f,disabled:u})}),(0,r.jsx)(h.ZP,{item:!0,xs:6,sm:3,children:(0,r.jsx)(Xt,{hero:c,disabled:u,onChange:s})}),(0,r.jsx)(h.ZP,{item:!0,xs:6,children:c.equipment.artifact&&(0,r.jsxs)(i.Fragment,{children:[(0,r.jsx)(d.Z,{children:"Active artifact"}),(0,r.jsx)(_,{artifact:c.equipment.artifact})]})}),c.level===c.levelCap&&(0,D.jr)(l)&&(0,r.jsx)(h.ZP,{item:!0,xs:6,children:(0,r.jsx)(Ct,{hero:c,disabled:u})}),(0,D.OB)(l)&&(0,r.jsx)(h.ZP,{item:!0,xs:6,children:(0,r.jsx)(Yt,{hero:c,disabled:u})}),(0,D.jj)(l)&&(0,r.jsx)(h.ZP,{item:!0,xs:6,children:(0,r.jsx)(_t,{hero:c,disabled:u})})]})})}function ar(e,n){(null==n||n>e.length)&&(n=e.length);for(var t=0,r=new Array(n);te.length)&&(n=e.length);for(var t=0,r=new Array(n);te.length)&&(n=e.length);for(var t=0,r=new Array(n);te.length)&&(n=e.length);for(var t=0,r=new Array(n);te.length)&&(n=e.length);for(var t=0,r=new Array(n);t0&&(0,r.jsx)(ht,{}),T&&T.currentQuest&&(0,r.jsx)(lr,{event:T.currentQuest})]}),(0,r.jsxs)(l.Z,{sx:{width:"100%",typography:"body1"},children:[(0,r.jsxs)(x.ZP,{value:L,children:[(0,r.jsxs)(l.Z,{sx:{borderBottom:1,borderColor:"divider"},children:[(0,r.jsx)(d.Z,{variant:"h1",sx:g.Z,children:"Navigation"}),(0,r.jsxs)(v.Z,{onChange:function(e,n){"play"===n?Z.push("/play","/play",{scroll:!1}):Z.push("/play/".concat(n),"/play/".concat(n),{scroll:!1}),M(n)},"aria-label":"navigation tabs",variant:"scrollable",children:[(0,r.jsx)(u.Z,{label:"Welcome",value:"play"}),(0,r.jsx)(u.Z,{label:"Combat",value:"combat"}),!(!(null===T||void 0===T?void 0:T.inventory.length)&&!(null===T||void 0===T?void 0:T.gold))&&(0,r.jsx)(u.Z,{label:"Shop",value:"shop"}),!!(null===T||void 0===T?void 0:T.inventory.length)&&(0,r.jsx)(u.Z,{label:"Inventory",value:"inventory"}),(0,r.jsx)(u.Z,{label:"Map",value:"map"}),T&&Object.values(T.questLog).filter((function(e){return!!e})).length>2&&(0,r.jsx)(u.Z,{label:"Quests",value:"quests"}),W&&(0,r.jsx)(u.Z,{label:"Settings",value:"settings"}),F===B.Ks.Admin&&(0,r.jsx)(u.Z,{label:"Admin",value:"admin"})]})]}),(0,r.jsx)(p.Z,{value:"play",children:(0,r.jsxs)(h.ZP,{container:!0,columns:12,spacing:4,children:[(0,r.jsxs)(h.ZP,{item:!0,xs:12,sm:7,md:8,children:[(0,r.jsxs)(d.Z,{variant:"h2",sx:{mb:2,fontSize:"1.8rem"},children:["Welcome to ",(0,r.jsx)("b",{children:"Proof of Combat"}),"!"]}),(0,r.jsxs)(d.Z,{variant:"subtitle1",sx:g.Z,children:["This text is only available to screen readers. Thank you for trying out my game! If you find any parts of the user interface that are difficult to navigate please let me know and I would love to improve them.",(0,r.jsx)("br",{}),(0,r.jsx)(m.Z,{href:"https://github.com/chrisinajar/proofofcombat/wiki/Screen-Readers-and-Accessibility",target:"_blank",rel:"noreferrer",children:"Check this wiki page for more details on accessibility"})]}),(0,r.jsx)(d.Z,{sx:{mb:2},children:"This game is once again being developed actively. It's been a long time coming and there's a lot of major changes to the underlying engine in order to unlock cooler and more interesting mechanics for the game."}),(0,r.jsx)(d.Z,{variant:"h4",sx:g.Z,children:"Discord Server"}),(0,r.jsxs)(d.Z,{sx:{mb:2},children:["If you'd like to talk more with other players, report bugs, or discuss upcoming features,"," ",(0,r.jsx)(m.Z,{underline:"hover",href:"https://discord.gg/t7AZSxvfJG",target:"_blank",rel:"noreferrer",children:"join the discord!"})]}),(0,r.jsx)(d.Z,{variant:"h4",sx:g.Z,children:"Game Wiki"}),(0,r.jsxs)(d.Z,{sx:{mb:2},children:["A great deal of the game is undocumented, but the parts which are documented can be found,"," ",(0,r.jsx)(m.Z,{underline:"hover",href:"https://github.com/chrisinajar/proofofcombat/wiki/",target:"_blank",rel:"noreferrer",children:"in the wiki"}),". The game is nearly impossible to 100% without consulting the wiki."]}),(0,r.jsx)(d.Z,{variant:"h5",sx:{mb:2},children:"Combat Stats"}),(null===T||void 0===T?void 0:T.combatStats)&&(0,r.jsx)(pr,{skills:T.skills,stats:T.combatStats})]}),(null===O||void 0===O?void 0:O.leaderboard)&&(0,r.jsxs)(h.ZP,{item:!0,xs:12,sm:5,md:4,children:[(0,r.jsx)(d.Z,{variant:"h6",children:"Leaderboard"}),(0,r.jsx)("ul",{id:"leaderboard-list",children:O.leaderboard.slice(0,20).map((function(e,n){return(0,r.jsxs)("li",{id:"leaderboard-list-".concat(n),children:[(0,r.jsx)("b",{id:"leaderboard-list-".concat(n,"-name"),children:e.name})," ","(",(0,D.qh)(e.class),")"]},e.id)}))})]})]})}),(0,r.jsxs)(p.Z,{value:"combat",children:[(0,r.jsx)(d.Z,{variant:"h3",sx:{textAlign:"center"},children:"Combat"}),(0,r.jsx)(d.Z,{children:"Challenge a monster from the list, then fight it to the death. Note that other players in the same location see the same monster lists, so they may get to it first!"}),(0,r.jsx)("br",{}),(0,r.jsx)(Le,{})]}),(0,r.jsx)(p.Z,{value:"shop",children:(0,r.jsx)(St,{})}),(0,r.jsx)(p.Z,{value:"inventory",children:(0,r.jsx)(ir,{})}),(0,r.jsx)(p.Z,{value:"map",children:(0,r.jsx)(it,{})}),(0,r.jsx)(p.Z,{value:"quests",children:(0,r.jsx)(xr,{})}),(0,r.jsx)(p.Z,{value:"settings",children:(0,r.jsx)(Mr,{})}),(0,r.jsx)(p.Z,{value:"admin",children:(0,r.jsx)(Fr,{})})]}),(0,r.jsx)("br",{}),(0,r.jsx)(s.Z,{}),(0,r.jsx)("br",{}),(0,r.jsx)(ae,{})]})]})})}}}]); \ No newline at end of file diff --git a/_next/static/chunks/799-d926860fa1b3fc62.js b/_next/static/chunks/799-d926860fa1b3fc62.js new file mode 100644 index 0000000..b5cb03f --- /dev/null +++ b/_next/static/chunks/799-d926860fa1b3fc62.js @@ -0,0 +1 @@ +"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[799],{3799:function(e,n,t){t.d(n,{Z:function(){return Wr}});var r=t(5893),i=t(7294),a=t(1163),o=t(5152),l=t(7357),s=t(7720),c=t(1458),u=t(44),d=t(5861),h=t(6886),f=t(9104),m=t(122),x=t(5670),v=t(7225),p=t(5050),g=t(3113),y=t(4045),b=t(4051),j=t.n(b),Z=t(1157),S=t(8445),w=t(5739),k=t(9825),A=t(3321),P=t(7109),C=t(3946),I=t(4054),E=t(3841),L=t(7058),M=t(3984),O=t(9267),T=t(6824),F=t(622),W=t(4510),B=t(9402);function $(){var e,n,t,r=(0,B.UE)().data;return null!==(t=null===r||void 0===r||null===(e=r.me)||void 0===e||null===(n=e.account)||void 0===n?void 0:n.hero)&&void 0!==t?t:void 0}var D=t(874),z=t(5018),q=t(3599),Q=t(1903);function N(e,n){(null==n||n>e.length)&&(n=e.length);for(var t=0,r=new Array(n);t0&&(0,r.jsxs)(h.ZP,{item:!0,xs:6,children:["Received offers:",(0,r.jsx)(l.Z,{children:O.map((function(e){return(0,r.jsx)(i.Fragment,{children:(0,r.jsxs)(l.Z,{sx:{mt:1,bgcolor:"info.main",p:2},children:["From: ",(0,r.jsx)("b",{children:e.fromName}),(0,r.jsx)("br",{}),"Item: ",(0,r.jsx)("b",{children:(0,D.GJ)(e.item)}),(0,r.jsx)("br",{}),"Gold: ",(0,r.jsx)("b",{children:e.gold.toLocaleString()}),(0,r.jsx)("br",{}),(0,r.jsx)(A.Z,{sx:{m:1},variant:"contained",color:"success",disabled:L||e.gold>a.gold,onClick:function(){return function(e){return U.apply(this,arguments)}(e.id)},children:"Accept Trade"}),(0,r.jsx)(A.Z,{sx:{m:1},variant:"contained",color:"error",disabled:L,onClick:function(){return N(e.id)},children:"Reject Trade"})]})},e.id)}))})]}),T.length>0&&(0,r.jsxs)(h.ZP,{item:!0,xs:6,children:["Sent offers:",(0,r.jsx)(l.Z,{children:T.map((function(e){return(0,r.jsx)(i.Fragment,{children:(0,r.jsxs)(l.Z,{sx:{mt:1,bgcolor:"info.main",p:2},children:["To: ",(0,r.jsx)("b",{children:e.toName}),(0,r.jsx)("br",{}),"Item: ",(0,r.jsx)("b",{children:(0,D.GJ)(e.item)}),(0,r.jsx)("br",{}),"Gold: ",(0,r.jsx)("b",{children:e.gold.toLocaleString()}),(0,r.jsx)("br",{}),(0,r.jsx)("br",{}),(0,r.jsx)(A.Z,{variant:"contained",color:"error",disabled:L,onClick:function(){return N(e.id)},children:"Cancel Trade"})]})},e.id)}))})]})]})]})}function Y(e,n){(null==n||n>e.length)&&(n=e.length);for(var t=0,r=new Array(n);t1?"".concat(Math.round(1e3*(e.magnitude-1))/10,"%"):"".concat(Math.round(1e3*e.magnitude)/10,"%");switch(e.type){case B.WB.BonusStrength:return"".concat(n," increased strength");case B.WB.BonusDexterity:return"".concat(n," increased dexterity");case B.WB.BonusConstitution:return"".concat(n," increased constitution");case B.WB.BonusIntelligence:return"".concat(n," increased intelligence");case B.WB.BonusWisdom:return"".concat(n," increased wisdom");case B.WB.BonusWillpower:return"".concat(n," increased willpower");case B.WB.BonusLuck:return"".concat(n," increased luck");case B.WB.DamageReduction:return"".concat(n," reduced damage taken");case B.WB.EnhancedDamage:return"".concat(n," enhanced damage");case B.WB.BonusHealth:return"".concat(n," bonus max health");case B.WB.ReducedDelay:return"".concat(n," reduced delay on actions");case B.WB.BonusExperience:return"".concat(n," more experience from all sources");case B.WB.BonusSkillChance:return"".concat(n," bonus chance to increase skills");case B.WB.Lifesteal:return"".concat(n," damage dealt gained as health");case B.WB.Mesmerize:return"".concat(n," chance to mesmerize opponents");case B.WB.Focus:return"".concat(n," chance to resist mesmerizing")}}(e),e.type)}))})}function V(e){var n=e.artifact;return(0,r.jsxs)(i.Fragment,{children:[(0,r.jsx)(d.Z,{variant:"h4",children:n.name}),"A mysterious magical item with the following properties:",(0,r.jsx)(_,{artifact:n})]})}function X(e,n){(null==n||n>e.length)&&(n=e.length);for(var t=0,r=new Array(n);te.length)&&(n=e.length);for(var t=0,r=new Array(n);t0&&(o?"Auto-Battling":"Battling"),W<=0&&"Dead"," ",f.name]}),(0,r.jsx)(c.Z,{variant:"determinate",value:W,color:"error"})]}),W>0&&(0,r.jsxs)(i.Fragment,{children:[(0,r.jsx)(h.ZP,{item:!0,xs:6,sm:3,md:2,xl:2,children:(0,r.jsx)(M.Z,{title:"Attack using your melee weapons, uses strength and dexterity",children:(0,r.jsx)(A.Z,{sx:{fontSize:"1rem",padding:2},size:"large",id:"attack-with-melee",onClick:function(){return H(B.hK.Melee)},"aria-label":"melee attack",startIcon:(0,r.jsx)(de.Z,{}),children:"Melee attack"})})}),(0,r.jsx)(h.ZP,{item:!0,xs:6,sm:3,md:2,xl:2,children:(0,r.jsx)(M.Z,{title:"Attack using your ranged weapons, uses dexterity",children:(0,r.jsx)(A.Z,{sx:{fontSize:"1rem",padding:2},size:"large",id:"attack-with-ranged",onClick:function(){return H(B.hK.Ranged)},"aria-label":"ranged attack",startIcon:(0,r.jsx)(he.Z,{}),children:"Ranged attack"})})}),(0,r.jsx)(h.ZP,{item:!0,xs:6,sm:3,md:2,xl:2,children:(0,r.jsx)(M.Z,{title:"Cast spells using your wisdom and intelligence",children:(0,r.jsx)(A.Z,{sx:{fontSize:"1rem",padding:2},size:"large",id:"attack-with-cast",onClick:function(){return H(B.hK.Cast)},"aria-label":"cast spell",startIcon:(0,r.jsx)(fe.Z,{}),children:"Cast Spell"})})}),(0,r.jsx)(h.ZP,{item:!0,xs:6,sm:3,md:3,xl:3,children:(0,r.jsx)(M.Z,{title:"Smite your foe using wisdom and willpower",children:(0,r.jsx)(A.Z,{sx:{fontSize:"1rem",padding:2},size:"large",id:"attack-with-holy",onClick:function(){return H(B.hK.Smite)},"aria-label":"holy attack",startIcon:(0,r.jsx)(me.Z,{}),children:"Smite"})})}),(0,r.jsx)(h.ZP,{item:!0,xs:6,sm:6,md:3,xl:3,children:(0,r.jsx)(M.Z,{title:"Damage yourself to damage the enemy, uses constitution",children:(0,r.jsx)(A.Z,{sx:{fontSize:"1rem",padding:2},size:"large",id:"attack-with-blood",onClick:function(){return H(B.hK.Blood)},"aria-label":"blood magic",startIcon:(0,r.jsx)(xe.Z,{}),children:"Blood magic"})})})]})]}),b&&"This enemy was killed by another player",N&&N.log.map((function(e,n){return(0,r.jsx)(i.Fragment,{children:(0,r.jsxs)(d.Z,{children:[e.isEnchantment&&(0,r.jsxs)(i.Fragment,{children:[e.damage<0&&(0,r.jsxs)(i.Fragment,{children:[(0,r.jsx)("b",{children:e.from})," heals"," ",(0,r.jsx)("span",{id:"fight-".concat(e.from,"-enchantment-heal"),children:(0-e.damage).toLocaleString()})," ","health from their enchantments"]}),e.damage>0&&(0,r.jsxs)(i.Fragment,{children:[(0,r.jsx)("b",{children:e.from})," dealt"," ",(0,r.jsx)("span",{id:"fight-".concat(e.from,"-enchantment-damage"),children:e.damage.toLocaleString()})," ","enchantment damage to ",(0,r.jsx)("b",{children:e.to})]})]}),!e.isEnchantment&&(0,r.jsxs)(i.Fragment,{children:[(0,r.jsx)("b",{children:e.from})," ".concat(je(e.attackType,e.success,e.critical)," "),(0,r.jsx)("b",{children:e.to}),e.success?" for ".concat(e.damage.toLocaleString()," damage!"):"."]})]})},"".concat(e.from,"-").concat(n))})),N&&N.victory&&(0,r.jsxs)(i.Fragment,{children:[(0,r.jsxs)(d.Z,{id:"fight-did-win",children:[f.name," has been killed!",(N.experience||N.gold)&&" You gain ",N.gold&&(0,r.jsxs)(i.Fragment,{children:[" ",(0,r.jsx)("span",{id:"fight-recap-gold",children:N.gold.toLocaleString()})," ","gold"]}),N.gold&&N.experience&&" and",N.experience&&(0,r.jsxs)(i.Fragment,{children:[" ",(0,r.jsx)("span",{id:"fight-recap-experience",children:N.experience.toLocaleString()})," ","experience"]}),(N.experience||N.gold)&&"!! ",N.didLevel&&(0,r.jsx)("b",{id:"fight-level-up",children:"You leveled up!!"})]}),N.drop&&(0,r.jsxs)(i.Fragment,{children:[(0,r.jsx)("br",{}),(0,r.jsxs)(d.Z,{id:"fight-got-drop",variant:"h5",children:["You find an enchanted item on the monster's corpse!",(0,r.jsx)("br",{}),(0,D.GJ)(N.drop)]})]}),(0,r.jsx)("br",{}),R&&(0,r.jsx)(A.Z,{fullWidth:!0,color:"secondary",variant:"contained",onClick:function(){v&&v(f.id,q)},children:"Auto-Battle this enemy"})]})]})})}function je(e,n,t){switch(e){case B.hK.Blood:return n?t?"surges with blood magic against":"lets blood and casts forth towards":"attempts to cast a spell against";case B.hK.Smite:return n?t?"summons powers beyond this world against":"smites":"attempts to smite";case B.hK.Cast:return n?t?"carefully casts a spell at":"blasts a beam of necrotic energy into":"attempts to cast a spell against";case B.hK.Ranged:return n?t?"lands a sneak attack from the shadows, critically damaging":"fires an arrow at":"shoots an arrow but it misses";case B.hK.Melee:default:return n?t?"lands a crippling blow against":"struck":"missed"}}function Ze(e,n,t){return n in e?Object.defineProperty(e,n,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[n]=t,e}var Se=(Ze(ue={},B.zP.Normal,"Normal stance with no pros or cons."),Ze(ue,B.zP.Combat,"???"),Ze(ue,B.zP.Reckless,"???"),Ze(ue,B.zP.Aggressive,"???"),Ze(ue,B.zP.Defensive,"???"),Ze(ue,B.zP.NecroticBeam,"???"),Ze(ue,B.zP.CloudofKnives,"???"),Ze(ue,B.zP.FrozenOrb,"???"),Ze(ue,B.zP.MageArmor,"???"),Ze(ue,B.zP.NormalArrow,"???"),Ze(ue,B.zP.BarbedArrow,"???"),Ze(ue,B.zP.BloodHunter,"???"),Ze(ue,B.zP.DarkPresence,"???"),Ze(ue,B.zP.AuraoftheLifeless,"???"),Ze(ue,B.zP.ShieldSmash,"???"),Ze(ue,B.zP.ShieldSlash,"???"),Ze(ue,B.zP.HolySmite,"???"),Ze(ue,B.zP.VengefulSmite,"???"),Ze(ue,B.zP.WarriorsStance,"???"),Ze(ue,B.zP.Hexblade,"???"),Ze(ue,B.zP.Focus,"???"),ue);function we(){var e=$();if(!e)return null;var n=e.availableStances.map((function(e){return{name:e,tooltip:Se[e]}}));return n.length<2?null:(0,r.jsx)(h.ZP,{item:!0,xs:12,children:(0,r.jsxs)(h.ZP,{container:!0,sx:{textAlign:"center"},columns:6,children:[(0,r.jsx)(h.ZP,{item:!0,xs:6,children:(0,r.jsx)("hr",{})}),(0,r.jsx)(h.ZP,{item:!0,lg:1,xs:6,children:(0,r.jsx)(d.Z,{variant:"h5",children:"Select Stance"})}),n.map((function(n){return(0,r.jsx)(h.ZP,{item:!0,lg:1,md:2,sm:3,xs:6,children:(0,r.jsx)(M.Z,{title:n.tooltip,children:(0,r.jsx)(A.Z,{variant:e.activeStance===n.name?"outlined":"text",sx:{fontSize:"1rem",padding:2},size:"large",id:"set-stance-".concat(n.name.toLowerCase()),onClick:function(){return function(n){console.log("Setting stance to",n,e)}(n.name)},"aria-label":"set stance ".concat(n.name),children:n.name})})},n.name)}))]})})}function ke(e,n){(null==n||n>e.length)&&(n=e.length);for(var t=0,r=new Array(n);t.5?100*Math.random():y[0],Math.random()>.5?100*Math.random():y[1],Math.random()>.5?100*Math.random():y[2]]),0===v){e.next=4;break}return e.abrupt("return");case 4:if(!(Te||G>0)){e.next=6;break}return e.abrupt("return");case 6:if(0!==(null===ye||void 0===ye?void 0:ye.combat.health)){e.next=9;break}return console.log("[AutoBattler] Healing!"),e.abrupt("return",Fe());case 9:if(Le&&0!==Le.monster.combat.health&&Le.monster.id===C){e.next=13;break}return console.log("[AutoBattler] Challenging new mob!"),De(C),e.abrupt("return");case 13:if(!Le||!ke.current){e.next=17;break}return console.log("[AutoBattler] Fighting ".concat(l,"!")),ke.current(l),e.abrupt("return");case 17:console.log("[AutoBattler] Doing nothing...");case 18:case"end":return e.stop()}}),e)}))),(0,i.useEffect)((function(){if(w&&C.length){var e=(0,oe.Zi)((function(){Z.current()}),500);return function(){(0,oe.cv)(e)}}}),[w,Oe]),(0,i.useEffect)((function(){var e;if(null===ae||void 0===ae||null===(e=ae.monsters)||void 0===e?void 0:e.length){var n=ae.monsters.concat().sort((function(e,n){return e.monster.level-n.monster.level}));if(""===K)_(n[0].id);else ae.monsters.find((function(e){return e.id===K}))||_(n[0].id)}}),[K,null===ae||void 0===ae||null===(n=ae.monsters)||void 0===n?void 0:n.length]);var Ne=null===ae||void 0===ae||null===(t=ae.monsters)||void 0===t?void 0:t.find((function(e){return e.id===K}));Ne||(K="");var Ge=Ee.find((function(e){return e.id===te}));(Ee.find((function(e){return e.id===X}))||(X=""),ye)&&(ye.levelCap>100||(ge=ge.slice(0,ye.level)));Ee=Ee.filter((function(e){return e.combat.health>0}));var Re="Select a new monster to challenge",He="Fight an existing monster!",Ue="Duel with a nearby player!";return(0,r.jsx)(i.Fragment,{children:(0,r.jsxs)(h.ZP,{container:!0,columns:6,spacing:4,children:[!w&&ye&&ye.combat.health>0&&(0,r.jsxs)(i.Fragment,{children:[(0,r.jsx)(h.ZP,{item:!0,md:3,xs:6,children:(0,r.jsxs)(I.Z,{fullWidth:!0,children:[(0,r.jsx)(E.Z,{id:"challenge-monster-select-label",children:Re}),(0,r.jsx)(z.Z,{id:"challenge-select",labelId:"challenge-monster-select-label",value:U,label:Re,disabled:w,onChange:function(e){return Y(e.target.value)},children:ge.map((function(e){return(0,r.jsxs)(q.Z,{value:e.id,children:[e.name,"\xa0",(0,r.jsxs)(d.Z,{variant:"caption",display:"inline-block",children:["Tier ",e.level]})]},e.id)}))}),(0,r.jsx)(A.Z,{id:"challenge-button",disabled:!U||G>0||me||w,onClick:function(){return $e.apply(this,arguments)},variant:"contained",children:"Challenge!"})]})}),(0,r.jsx)(h.ZP,{item:!0,md:3,xs:6,children:(0,r.jsxs)(I.Z,{fullWidth:!0,children:[(0,r.jsx)(E.Z,{id:"fight-monster-select-label",children:He}),(0,r.jsx)(z.Z,{id:"fight-select",labelId:"fight-monster-select-label",value:K,label:He,disabled:w,onChange:function(e){return _(e.target.value)},children:(null===ae||void 0===ae?void 0:ae.monsters)&&Ie(null===ae||void 0===ae?void 0:ae.monsters).sort((function(e,n){return e.monster.level-n.monster.level})).map((function(e){return(0,r.jsxs)(q.Z,{value:e.id,disabled:0===e.monster.combat.health,children:[0===e.monster.combat.health&&"Dead ",e.monster.name]},e.id)}))}),(0,r.jsx)(A.Z,{id:"fight-button",disabled:!K||G>0||me||Ne&&0===Ne.monster.combat.health||w,onClick:function(){return Be.apply(this,arguments)},variant:"contained",children:"Fight!"})]})}),Ee.length>1&&(0,r.jsx)(h.ZP,{item:!0,md:3,xs:6,children:(0,r.jsxs)(I.Z,{fullWidth:!0,children:[(0,r.jsx)(E.Z,{id:"duel-select-label",children:Ue}),(0,r.jsx)(z.Z,{id:"duel-select",labelId:"duel-select-label",value:X,label:Ue,disabled:w,onChange:function(e){return ee(e.target.value)},children:Ee.filter((function(e){return e.id!==ye.id})).sort((function(e,n){return e.level-n.level})).map((function(e){return(0,r.jsx)(q.Z,{value:e.id,children:e.name},e.id)}))}),(0,r.jsx)(A.Z,{id:"duel-button",disabled:!X.length||G>0||me||w,onClick:function(){return Qe.apply(this,arguments)},variant:"contained",children:"Duel Player!"})]})})]}),w&&(0,r.jsxs)(h.ZP,{item:!0,xs:6,children:[(0,r.jsx)(c.Z,{sx:{margin:1,color:"#f00"},variant:"determinate",value:y[0],color:"inherit"}),(0,r.jsx)(c.Z,{color:"inherit",sx:{margin:1,color:"#0f0"},variant:"determinate",value:y[1]}),(0,r.jsx)(c.Z,{color:"inherit",sx:{margin:1,color:"#00f"},variant:"determinate",value:y[2]}),(0,r.jsx)(A.Z,{fullWidth:!0,variant:"contained",color:"error",size:"large",onClick:function(){return k(!1)},children:"Disable Auto-Battle"})]}),ye&&ye.combat.health<=0&&(0,r.jsx)(h.ZP,{item:!0,lg:3,xs:6,children:(0,r.jsx)(d.Z,{id:"you-are-dead",children:"You are dead."})}),Le&&(0,r.jsxs)(i.Fragment,{children:[(0,r.jsx)(we,{}),(0,r.jsx)(be,{fight:Le,onError:function(){ue(),Q(null)},autoBattle:w,canAutoBattle:Me,onAutoBattle:function(e,n){return qe.apply(this,arguments)},fightMutationRef:ke,onVictory:function(){return m(f+1)}},"".concat(Le.id,"-").concat(O))]}),Ge&&(0,r.jsxs)(i.Fragment,{children:[(0,r.jsx)(we,{}),(0,r.jsx)(be,{fight:{id:Ge.id,monster:Ge},onError:function(){ue(),Q(null)},duel:!0,autoBattle:!1,canAutoBattle:!1},"".concat(Ge.id,"-").concat(O))]}),(0,r.jsx)(h.ZP,{item:!0,lg:3,xs:6,children:(0,r.jsx)(A.Z,{id:"heal-button",fullWidth:!0,onClick:Fe,variant:"contained",disabled:G>0||me||ye&&ye.combat.health===ye.combat.maxHealth,children:"Heal"})})]})})}var Me=t(9692);function Oe(e){var n=e.location,t=e.minimapSize,i=void 0===t?[24,24]:t,a=e.gridSize,o=void 0===a?[128,96]:a,l=e.cellSize,s=void 0===l?16:l,c=e.indicatorSize,u=void 0===c?8:c,d=[Math.round(Math.min(o[0]-i[0],Math.max(0,n.x-i[0]/2))),Math.round(Math.min(o[1]-i[1],Math.max(0,n.y-i[1]/2)))];return(0,r.jsx)("div",{style:{position:"relative",display:"inline-block",backgroundImage:"url(/maps/".concat(n.map,".jpg)"),backgroundPosition:"-".concat(d[0]*s,"px -").concat(d[1]*s,"px"),backgroundSize:"".concat(128*s,"px ").concat(96*s,"px "),width:"".concat(i[0]*s,"px"),height:"".concat(i[1]*s,"px")},children:(0,r.jsx)("div",{style:{position:"absolute",borderRadius:"".concat(u/2,"px"),backgroundColor:"red",border:"2px solid rgba(255,255,255,0.3)",left:"".concat((n.x-d[0])*s+(s-u)/2,"px"),top:"".concat((n.y-d[1])*s+(s-u)/2,"px"),width:"".concat(u,"px"),height:"".concat(u,"px")}})})}function Te(e,n){(null==n||n>e.length)&&(n=e.length);for(var t=0,r=new Array(n);te.length)&&(n=e.length);for(var t=0,r=new Array(n);t0&&(0,r.jsx)(d.Z,{sx:{mb:2},variant:"body1",color:a?"success.main":"error.main",children:c}),n.trades.map((function(e,n){return(0,r.jsx)(i.Fragment,{children:(0,r.jsxs)(d.Z,{children:[(0,r.jsx)(Ge,{trade:e}),(0,r.jsx)(A.Z,{disabled:m,onClick:function(){return function(e){return x.apply(this,arguments)}(e.id)},sx:{ml:1},children:"Trade"})]})},"npc shop items ".concat(n))}))]})}function Ge(e){var n=e.trade;return(0,r.jsxs)(i.Fragment,{children:["For the price of ",(0,r.jsx)(Re,{price:n.price}),", I'll give you"," ",(0,r.jsx)(Re,{price:n.offer})]})}function Re(e){var n=e.price;return(0,r.jsx)(M.Z,{title:He(n),describeChild:!0,children:(0,r.jsx)("b",{children:n.description})})}function He(e){var n,t,r,i=[];return e.gold&&i.push("".concat(e.gold.toLocaleString()," gold")),e.dust&&i.push("".concat(e.dust.toLocaleString()," dust")),(null===(n=e.baseItems)||void 0===n?void 0:n.length)&&e.baseItems.forEach((function(e){i.push("".concat(e))})),(null===(t=e.enchantments)||void 0===t?void 0:t.length)&&e.enchantments.forEach((function(e){i.push("".concat((0,D.uD)(e)))})),(null===(r=e.questItems)||void 0===r?void 0:r.length)&&e.questItems.forEach((function(e){i.push("".concat(e))})),i.length?i.join(", "):"???"}var Ue=t(3020),Ye=t(2748),Je=t(1425),Ke=t(6580),_e=t(8951),Ve=t(7645),Xe=t(8987),en=t(7855),nn=t(3707),tn=t(9653),rn=t(6447);function an(e,n){(null==n||n>e.length)&&(n=e.length);for(var t=0,r=new Array(n);te.length)&&(n=e.length);for(var t=0,r=new Array(n);tt.gold?"error":"success",onClick:function(){return function(e){return x.apply(this,arguments)}(e.type)},children:"Upgrade"}),e.name]})},e.type)}))]})}function yn(e){e.hero,e.camp;return null}var bn=t(8396),jn=t(2734),Zn=t(2613),Sn=t(3054),wn=t(7563),kn=t(6398),An=t(6667),Pn=t(3898),Cn=t(1733),In=t(1671);function En(e,n,t){return n in e?Object.defineProperty(e,n,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[n]=t,e}function Ln(e){for(var n=1;ne.length)&&(n=e.length);for(var t=0,r=new Array(n);t=l||c.find((function(n){return n.x===e&&n.y===t}))?"continue":c.find((function(n){return n.x===e+1&&n.y===t||n.x===e-1&&n.y===t||n.x===e&&n.y===t+1||n.x===e&&n.y===t-1}))?void n.push({x:e,y:t,map:a.location.map}):"continue"},i=u.y,o=d.y;i<=o;++i)r(i)},n=[],t=u.x,r=d.x;t<=r;++t)e(t);return n}),[c.length,u.x,u.y,d.x,d.y,l]);function f(){return(f=Dn(j().mark((function e(n){return j().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,s({variables:{location:n,type:o}});case 3:e.next=7;break;case 5:e.prev=5,e.t0=e.catch(0);case 7:case"end":return e.stop()}}),e,null,[[0,5]])})))).apply(this,arguments)}return(0,r.jsx)(i.Fragment,{children:h.map((function(e){return(0,r.jsx)(Wn,{onClick:function(){return function(e){return f.apply(this,arguments)}(e)},hover:!0,color:"rgb(10, 120, 10)",cellSize:n,boundingBox:t,location:e,tooltip:"Build here",icon:(0,r.jsx)(Sn.Z,{})},"".concat(e.x,"-").concat(e.y))}))})}function Qn(e){e.location;return(0,r.jsx)("div",{children:"details"})}function Nn(e,n){(null==n||n>e.length)&&(n=e.length);for(var t=0,r=new Array(n);te.length)&&(n=e.length);for(var t=0,r=new Array(n);t0||L;function Y(e){return J.apply(this,arguments)}function J(){return(J=nt(j().mark((function e(n){var t,r;return j().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,P({variables:{direction:n}});case 3:T(),e.next=10;break;case 6:e.prev=6,e.t0=e.catch(0),e.t0.graphQLErrors&&(null===(t=e.t0.graphQLErrors[0])||void 0===t||null===(r=t.extensions)||void 0===r?void 0:r.delay)&&w(e.t0.graphQLErrors[0].extensions.remaining);case 10:case"end":return e.stop()}}),e,null,[[0,6]])})))).apply(this,arguments)}function K(){return(K=nt(j().mark((function e(){var n,t;return j().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,E({variables:{x:v,y:y}});case 3:T(),e.next=10;break;case 6:e.prev=6,e.t0=e.catch(0),e.t0.graphQLErrors&&(null===(n=e.t0.graphQLErrors[0])||void 0===n||null===(t=n.extensions)||void 0===t?void 0:t.delay)&&w(e.t0.graphQLErrors[0].extensions.remaining);case 10:case"end":return e.stop()}}),e,null,[[0,6]])})))).apply(this,arguments)}var _,V=Math.round(Math.pow(5*(0,D.LW)(c.location,{x:v,y:y}),1.3));return(0,r.jsx)(i.Fragment,{children:(0,r.jsxs)(h.ZP,{container:!0,columns:2,spacing:3,children:[(0,r.jsx)(h.ZP,{item:!0,xs:2,sm:1,children:(0,r.jsxs)(h.ZP,{container:!0,columns:6,spacing:3,children:[(0,r.jsx)(h.ZP,{item:!0,style:{textAlign:"center"},xs:6,children:(0,r.jsx)(mn,{hero:c,onShowSettlement:function(){m(!0)}})}),(0,r.jsxs)(h.ZP,{item:!0,style:{textAlign:"center"},xs:6,children:[(0,r.jsx)(d.Z,{variant:"h5",children:"Travel"}),c.combat.health>0&&(0,r.jsx)(d.Z,{children:"Use buttons to move around the map."}),0===c.combat.health&&(0,r.jsx)(d.Z,{variant:"h6",children:"You cannot move while dead. Heal yourself in the Combat tab."})]}),(0,r.jsx)(h.ZP,{item:!0,style:{textAlign:"center"},xs:2}),(0,r.jsx)(h.ZP,{item:!0,style:{textAlign:"center"},xs:2,children:(0,r.jsx)(A.Z,{"aria-label":"North terrain: ".concat(N),disabled:U,variant:"contained",onClick:function(){return Y(B.p$.North)},children:"North"})}),(0,r.jsx)(h.ZP,{item:!0,style:{textAlign:"center"},xs:2}),(0,r.jsx)(h.ZP,{item:!0,style:{textAlign:"center"},xs:2,children:(0,r.jsx)(A.Z,{"aria-label":"West terrain: ".concat(H),disabled:U,variant:"contained",onClick:function(){return Y(B.p$.West)},children:"West"})}),(0,r.jsx)(h.ZP,{item:!0,style:{textAlign:"center"},xs:2,children:(0,r.jsxs)(d.Z,{children:[c.location.x,", ",c.location.y]})}),(0,r.jsx)(h.ZP,{item:!0,style:{textAlign:"center"},xs:2,children:(0,r.jsx)(A.Z,{"aria-label":"East terrain: ".concat(R),disabled:U,variant:"contained",onClick:function(){return Y(B.p$.East)},children:"East"})}),(0,r.jsx)(h.ZP,{item:!0,style:{textAlign:"center"},xs:2}),(0,r.jsx)(h.ZP,{item:!0,style:{textAlign:"center"},xs:2,children:(0,r.jsx)(A.Z,{"aria-label":"South terrain: ".concat(G),disabled:U,variant:"contained",onClick:function(){return Y(B.p$.South)},children:"South"})}),(0,r.jsx)(h.ZP,{item:!0,style:{textAlign:"center"},xs:2}),c.stats.intelligence>100&&(0,r.jsxs)(h.ZP,{item:!0,style:{textAlign:"center"},xs:6,children:[(0,r.jsx)(s.Z,{}),(0,r.jsx)(d.Z,{variant:"h5",color:"secondary",sx:{margin:1},children:"Teleport"}),(0,r.jsx)(Q.Z,{label:"X coordinate",value:v,onChange:function(e){return l(e.target.value,y)},sx:{width:"100px",margin:1}}),(0,r.jsx)(Q.Z,{label:"Y coordinate",value:y,onChange:function(e){return l(v,e.target.value)},sx:{width:"100px",margin:1}}),(0,r.jsx)("br",{}),(0,r.jsxs)(A.Z,{color:"secondary",variant:"outlined",onClick:function(){return K.apply(this,arguments)},disabled:0===V||V>c.stats.intelligence||U,children:["Teleport",(0,r.jsx)("br",{}),V>0&&"".concat(V.toLocaleString()," minimum intelligence")]})]})]})}),(0,r.jsxs)(h.ZP,{item:!0,style:{textAlign:"center"},xs:2,sm:1,children:[z&&(0,r.jsx)(d.Z,{variant:"h6",children:z.name}),z&&(0,r.jsx)(d.Z,{variant:"subtitle2",children:z.type}),q&&(0,r.jsxs)(i.Fragment,{children:[(0,r.jsxs)(d.Z,{variant:"h6",children:[null!==(_=null===(t=q.publicOwner)||void 0===t?void 0:t.name)&&void 0!==_?_:"???","'s Settlement"]}),(0,r.jsx)(d.Z,{variant:"subtitle2",children:q.type})]}),!z&&!q&&W&&(0,r.jsxs)(i.Fragment,{children:[(0,r.jsx)(d.Z,{variant:"h6",children:"Wilderness"}),(0,r.jsx)(d.Z,{variant:"subtitle2",children:W.terrain.terrain})]}),!z&&!q&&!W&&(0,r.jsxs)(i.Fragment,{children:[(0,r.jsx)(d.Z,{variant:"h6",children:"\xa0"}),(0,r.jsx)(d.Z,{variant:"subtitle2",children:"loading..."})]}),(0,r.jsx)(Oe,{location:c.location}),(null===z||void 0===z?void 0:z.description)&&z.description.map((function(e,n){return(0,r.jsx)(d.Z,{variant:"body1",children:e},"loc-desc-".concat(n))})),F.filter((function(e){return!!e})).map((function(e){return(0,r.jsx)(d.Z,{variant:"body1",role:"status",children:e},e)}))]}),"dock"===(null===z||void 0===z?void 0:z.type)&&(0,r.jsx)(h.ZP,{item:!0,style:{textAlign:"center"},xs:2,children:(0,r.jsx)($e,{location:z})}),(null===W||void 0===W?void 0:W.shop)&&(0,r.jsx)(h.ZP,{item:!0,style:{textAlign:"center"},xs:2,children:(0,r.jsx)(Ne,{shop:null===W||void 0===W?void 0:W.shop})})]})})}var at,ot=t(7948),lt=t(7416);function st(e,n){(null==n||n>e.length)&&(n=e.length);for(var t=0,r=new Array(n);t2&&(0,r.jsxs)(i.Fragment,{children:[(0,r.jsx)(d.Z,{id:"level-up-stat-slider-label",children:v}),(0,r.jsx)(lt.ZP,{min:1,max:x.attributePoints,value:o,onChange:function(e,n){return!Array.isArray(n)&&c(n)},id:"level-up-stat-slider","aria-labelledby":"level-up-stat-slider-label",valueLabelDisplay:"auto"})]})})]}),(0,r.jsx)("br",{}),(0,r.jsxs)(h.ZP,{container:!0,columns:14,spacing:2,children:[(0,r.jsx)(M.Z,{title:"Strength determines your damage when attacking with melee weapons",children:(0,r.jsx)(h.ZP,{item:!0,xs:14,sm:7,md:4,lg:2,children:(0,r.jsx)(d.Z,{align:"center",children:(0,r.jsx)(A.Z,{id:"level-up-strength",disabled:m||n>0,onClick:function(){return p("Strength")},variant:"contained",children:"Strength"})})})}),(0,r.jsx)(M.Z,{title:"Dexterity determines the accuracy and dodge rate for melee and ranged weapons, it also determines ranged weapons damage",children:(0,r.jsx)(h.ZP,{item:!0,xs:14,sm:7,md:4,lg:2,children:(0,r.jsx)(d.Z,{align:"center",children:(0,r.jsx)(A.Z,{id:"level-up-dexterity",disabled:m||n>0,onClick:function(){return p("Dexterity")},variant:"contained",children:"Dexterity"})})})}),(0,r.jsx)(M.Z,{title:"Constitution determines your max health, and is used in both attacking and defending blood magic",children:(0,r.jsx)(h.ZP,{item:!0,xs:14,sm:7,md:4,lg:2,children:(0,r.jsx)(d.Z,{align:"center",children:(0,r.jsx)(A.Z,{id:"level-up-constitution",disabled:m||n>0,onClick:function(){return p("Constitution")},variant:"contained",children:"Constitution"})})})}),(0,r.jsx)(M.Z,{title:"Intelligence determines your spellcasting damage",children:(0,r.jsx)(h.ZP,{item:!0,xs:14,sm:7,md:4,lg:2,children:(0,r.jsx)(d.Z,{align:"center",children:(0,r.jsx)(A.Z,{id:"level-up-intelligence",disabled:m||n>0,onClick:function(){return p("Intelligence")},variant:"contained",children:"Intelligence"})})})}),(0,r.jsx)(M.Z,{title:"Wisdom is your accuracy and dodge stat for spellcasting and smiting",children:(0,r.jsx)(h.ZP,{item:!0,xs:14,sm:7,md:4,lg:2,children:(0,r.jsx)(d.Z,{align:"center",children:(0,r.jsx)(A.Z,{id:"level-up-wisdom",disabled:m||n>0,onClick:function(){return p("Wisdom")},variant:"contained",children:"Wisdom"})})})}),(0,r.jsx)(M.Z,{title:"Willpower helps you survive attacks by reducing damage, it also helps smiters deal deal more damage.",children:(0,r.jsx)(h.ZP,{item:!0,xs:14,sm:7,md:4,lg:2,children:(0,r.jsx)(d.Z,{align:"center",children:(0,r.jsx)(A.Z,{id:"level-up-willpower",disabled:m||n>0,onClick:function(){return p("Willpower")},variant:"contained",children:"Willpower"})})})}),(0,r.jsx)(M.Z,{title:"Luck helps you critically strike foes and also affects item drop rates",children:(0,r.jsx)(h.ZP,{item:!0,xs:14,md:12,lg:2,children:(0,r.jsx)(d.Z,{align:"center",children:(0,r.jsx)(A.Z,{id:"level-up-luck",disabled:m||n>0,onClick:function(){return p("Luck")},variant:"contained",children:"Luck"})})})}),(0,r.jsx)(M.Z,{title:"Places 1 in every stat for a more well rounded character",children:(0,r.jsx)(h.ZP,{item:!0,xs:14,md:12,lg:2,children:(0,r.jsx)(d.Z,{align:"center",children:(0,r.jsx)(A.Z,{id:"level-up-all",disabled:m||n>0,onClick:function(){return p("All")},variant:"contained",children:"All"})})})})]}),(0,r.jsx)("br",{}),(0,r.jsx)("br",{}),(0,r.jsx)("br",{})]}),(0,r.jsx)(s.Z,{})]})}function ft(e,n){(null==n||n>e.length)&&(n=e.length);for(var t=0,r=new Array(n);to.gold,children:[e.cost&&(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(d.Z,{display:"inline-block",children:e.name}),"\xa0",(0,r.jsxs)(d.Z,{variant:"caption",display:"inline-block",children:["Lvl. ",e.level]}),"\xa0",(0,r.jsxs)(d.Z,{variant:"subtitle2",display:"inline-block",sx:{color:"info.main"},children:[e.cost.toLocaleString()," Gold"]})]}),!e.cost&&e.name]},e.id)}))})]}):null}function Zt(){var e=pt((0,le.g)(),1)[0],n=(0,i.useState)(null),t=n[0],a=n[1],o=(0,i.useState)(""),l=o[0],c=o[1],u=(0,B.Cb)(),f=u.data,m=(u.loading,u.error,pt((0,B.Nn)(),2)),x=m[0],v=m[1].loading,p=pt((0,B.o_)(),2),g=p[0],y=p[1].loading||v||e>0;function b(){return(b=xt(j().mark((function e(){return j().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(t){e.next=2;break}return e.abrupt("return");case 2:return e.prev=2,a(null),e.next=6,x({variables:{baseItem:t.id}});case 6:e.next=10;break;case 8:e.prev=8,e.t0=e.catch(2);case 10:case"end":return e.stop()}}),e,null,[[2,8]])})))).apply(this,arguments)}function Z(){return(Z=xt(j().mark((function e(){return j().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(t){e.next=2;break}return e.abrupt("return");case 2:return e.prev=2,a(null),e.next=6,g({variables:{item:t.id}});case 6:e.next=10;break;case 8:e.prev=8,e.t0=e.catch(2);case 10:case"end":return e.stop()}}),e,null,[[2,8]])})))).apply(this,arguments)}var S,w="Choose which shop to visit";return(0,r.jsxs)(i.Fragment,{children:[(0,r.jsxs)(d.Z,{align:"center",children:["Welcome to the shop! You can buy and sell any non-enchanted items here.",(0,r.jsx)("br",{}),"The items purchasable here have a level from 1 to 32 but no enchantments or direct attribute increases."]}),(0,r.jsx)("br",{}),(0,r.jsx)(s.Z,{}),(0,r.jsx)("br",{}),(0,r.jsxs)(h.ZP,{container:!0,columns:6,spacing:2,children:[(0,r.jsx)(h.ZP,{item:!0,xs:6,sm:3,children:(0,r.jsxs)(I.Z,{fullWidth:!0,children:[(0,r.jsx)(E.Z,{id:"shop-type-select-label",children:w}),(0,r.jsxs)(z.Z,{id:"shop-type-select",labelId:"shop-type-select-label",value:l,label:w,onChange:function(e){c(e.target.value),a(null)},children:[(0,r.jsx)(q.Z,{value:"sell",children:"Sell Items"}),(0,r.jsx)(s.Z,{}),(0,r.jsxs)(q.Z,{value:B.$7.MeleeWeapon,children:[yt(B.$7.MeleeWeapon)," Shop"]}),(0,r.jsxs)(q.Z,{value:B.$7.RangedWeapon,children:[yt(B.$7.RangedWeapon)," Shop"]}),(0,r.jsxs)(q.Z,{value:B.$7.SpellFocus,children:[yt(B.$7.SpellFocus)," Shop"]}),(0,r.jsxs)(q.Z,{value:B.$7.Shield,children:[yt(B.$7.Shield)," Shop"]}),(0,r.jsxs)(q.Z,{value:B.$7.BodyArmor,children:[yt(B.$7.BodyArmor)," Shop"]}),(0,r.jsxs)(q.Z,{value:B.$7.HandArmor,children:[yt(B.$7.HandArmor)," Shop"]}),(0,r.jsxs)(q.Z,{value:B.$7.LegArmor,children:[yt(B.$7.LegArmor)," Shop"]}),(0,r.jsxs)(q.Z,{value:B.$7.HeadArmor,children:[yt(B.$7.HeadArmor)," Shop"]}),(0,r.jsxs)(q.Z,{value:B.$7.FootArmor,children:[yt(B.$7.FootArmor)," Shop"]})]})]})}),(0,r.jsxs)(h.ZP,{item:!0,xs:6,sm:3,children:[""!==l&&"sell"!==l&&(0,r.jsx)(jt,{value:t?t.id:null,type:l,items:function(e){var n;return(null===f||void 0===f||null===(n=f.shopItems)||void 0===n?void 0:n.length)?f.shopItems.filter((function(n){return n.type===e})):[]}(l),onChange:function(e){return a(e)}},l),"sell"===l&&(0,r.jsx)(bt,{value:t?t.id:null,sellables:null!==(S=null===f||void 0===f?void 0:f.shopItems)&&void 0!==S?S:[],onChange:function(e){return a(e)}})]}),(0,r.jsx)(h.ZP,{item:!0,xs:6,children:t&&(0,r.jsxs)(A.Z,{variant:"contained",color:"sell"===l?"error":"success",fullWidth:!0,disabled:y,onClick:"sell"===l?function(){return Z.apply(this,arguments)}:function(){return b.apply(this,arguments)},children:["sell"===l?"Sell":"Buy"," ",t.name," for"," ",t.cost.toLocaleString()," gold"]})})]}),(0,r.jsx)("br",{})]})}function St(){$();var e=se();ce();return(0,r.jsxs)(i.Fragment,{children:[(0,r.jsx)(d.Z,{variant:"h3",sx:{textAlign:"center"},children:"Item Shop"}),(0,r.jsx)(Zt,{}),(null===e||void 0===e?void 0:e.shop)&&(0,r.jsx)(Ne,{shop:null===e||void 0===e?void 0:e.shop})]})}function wt(e,n){(null==n||n>e.length)&&(n=e.length);for(var t=0,r=new Array(n);t=n.levelCap);function s(){return(s=At(j().mark((function e(){return j().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,a();case 3:e.next=8;break;case 5:e.prev=5,e.t0=e.catch(0),console.log(e.t0);case 8:case"end":return e.stop()}}),e,null,[[0,5]])})))).apply(this,arguments)}return(0,r.jsxs)(l.Z,{sx:{padding:1,margin:1},children:[(0,r.jsx)(d.Z,{color:"secondary",variant:"h2",children:"Rebirth"}),!o&&(0,r.jsx)(d.Z,{children:"You may only be reborn when you are at level cap. Keep leveling up your character in order to be reborn!"}),o&&(0,r.jsxs)(i.Fragment,{children:[(0,r.jsx)(d.Z,{children:"This will reset your character's level and attributes, however you will keep all gold and items and will receive special bonuses depending on your current level cap."}),(0,r.jsx)("br",{}),(0,r.jsx)(A.Z,{size:"large",variant:"outlined",color:"secondary",onClick:function(){return s.apply(this,arguments)},children:"Reset Character to Level 1"})]})]})}var It=t(5988),Et=t(9629);function Lt(e,n){(null==n||n>e.length)&&(n=e.length);for(var t=0,r=new Array(n);te.length)&&(n=e.length);for(var t=0,r=new Array(n);t1&&"(".concat(p[e],")"),"???"!==(0,D.Lt)(e)&&(0,r.jsxs)(d.Z,{variant:"subtitle2",sx:{color:"primary.main"},children:["\xa0",(0,D.Lt)(e)]})]},e)}))})]}),(0,r.jsxs)(A.Z,{fullWidth:!0,variant:"contained",disabled:!y||t||x||S>n.enchantingDust,color:"success",onClick:function(){return Z.apply(this,arguments)},children:[y&&""!==u&&(0,r.jsxs)(l.Z,{children:[(0,r.jsxs)(d.Z,{children:["Create"," ",(0,r.jsx)("b",{children:(0,D.FK)(y.baseItem,u)})]}),(0,r.jsxs)(d.Z,{variant:"subtitle2",children:["Costs ",S.toLocaleString()," Enchantment Dust"]})]}),!y&&"Select Item"]})]})}function Nt(e,n){(null==n||n>e.length)&&(n=e.length);for(var t=0,r=new Array(n);tn.enchantingDust,color:"error",onClick:function(){return Z.apply(this,arguments)},children:[b&&(0,r.jsxs)(l.Z,{children:[(0,r.jsxs)(d.Z,{children:["Disenchant ",(0,r.jsx)("b",{children:(0,D.GJ)(b)})]}),(0,r.jsxs)(d.Z,{variant:"subtitle2",children:["Costs ",w.toLocaleString()," Enchantment Dust"]})]}),!b&&"Select Item"]})]}),(0,r.jsx)("br",{}),(0,r.jsx)("br",{}),f&&(0,r.jsxs)(I.Z,{fullWidth:!0,children:[(0,r.jsx)(E.Z,{id:"filter-select-label",children:"Filter by enchantment"}),(0,r.jsx)(z.Z,{id:"filter-select",labelId:"filter-select-label",value:o||"",label:"Filter by enchantment",onChange:function(e){var t=e.target.value;n.inventory.find((function(e){return e.enchantment===t}))&&s(t)},children:y.map((function(e){return(0,r.jsxs)(q.Z,{value:e,children:[(0,D.uD)(e),"???"!==(0,D.Lt)(e)&&(0,r.jsxs)(d.Z,{variant:"subtitle2",sx:{color:"primary.main"},children:["\xa0",(0,D.Lt)(e)]})]},e)}))})]})]})}function Yt(e){var n=e.hero,t=e.disabled,a=(0,i.useState)("1"),o=a[0],c=a[1];return(0,r.jsxs)(i.Fragment,{children:[(0,r.jsx)(s.Z,{sx:{margin:2}}),(0,r.jsx)(d.Z,{variant:"h2",color:"secondary",children:"Crafting"}),(0,r.jsxs)(d.Z,{variant:"subtitle1",color:"secondary",children:["Enchanting Dust:"," ",(0,r.jsx)("span",{id:"hero-stats-enchanting-dust",children:n.enchantingDust.toLocaleString()})]}),(0,r.jsxs)(d.Z,{variant:"subtitle1",color:"secondary",children:["Enchantments:"," ",(0,r.jsx)("span",{id:"hero-stats-enchantments",children:n.enchantments.length.toLocaleString()})]}),(0,r.jsx)("br",{}),(0,r.jsx)(x.ZP,{value:o,children:(0,r.jsxs)(l.Z,{sx:{flexGrow:1,borderBottom:1,borderColor:"divider",display:"flex"},children:[(0,r.jsxs)(v.Z,{orientation:"vertical",onChange:function(e,n){return c(n)},"aria-label":"navigation tabs",variant:"scrollable",textColor:"secondary",indicatorColor:"secondary",sx:{flexShrink:0,flexGrow:0,width:"100px"},children:[(0,r.jsx)(u.Z,{icon:(0,r.jsx)(Cn.Z,{}),label:"Destroy",value:"1"}),(0,r.jsx)(u.Z,{icon:(0,r.jsx)(Et.Z,{}),label:"Disenchant",value:"2"}),(0,r.jsx)(u.Z,{icon:(0,r.jsx)(It.Z,{}),label:"Enchant",value:"3"})]}),(0,r.jsx)(p.Z,{value:"1",children:(0,r.jsx)(Ft,{hero:n,disabled:t})}),(0,r.jsx)(p.Z,{value:"2",children:(0,r.jsx)(Ut,{hero:n,disabled:t})}),(0,r.jsx)(p.Z,{value:"3",children:(0,r.jsx)(Qt,{hero:n,disabled:t})})]})})]})}function Jt(e,n){(null==n||n>e.length)&&(n=e.length);for(var t=0,r=new Array(n);t=0,children:[e.id===c?(0,r.jsx)("b",{children:(0,D.GJ)(e)}):(0,D.GJ)(e),(0,r.jsxs)(d.Z,{variant:"caption",sx:{color:"info.secondary"},children:["\xa0Lvl. ",e.level]}),e.enchantment&&(0,r.jsxs)(d.Z,{variant:"subtitle2",sx:{color:"info.main"},children:["\xa0",(0,D.Lt)(e.enchantment)]})]},e.id)}))})]})})})}function Xt(e){var n=e.hero,t=e.disabled,a=e.onChange,o=(0,i.useState)(""),l=o[0],s=o[1],c=n.inventory.filter((function(e){return e.type===B.$7.Quest})).sort((function(e,n){return n.level-e.level})),u="Quest items (passive, always active)",h=n.inventory.find((function(e){return e.id===l}));return(0,i.useEffect)((function(){l.length&&!h&&s("")}),[h,l]),(0,r.jsx)(i.Fragment,{children:(0,r.jsx)("div",{children:(0,r.jsxs)(I.Z,{fullWidth:!0,children:[(0,r.jsx)(E.Z,{id:"quest-item-label",children:u}),(0,r.jsx)(z.Z,{id:"quest-item",labelId:"quest-item-label",value:l,label:u,disabled:t,onChange:function(e){if(s(e.target.value),a){var n=c.find((function(n){return n.id===e.target.value}));n&&a(n.baseItem)}},children:c.map((function(e){return(0,r.jsxs)(q.Z,{value:e.id,children:[(0,D.GJ)(e),"???"!==(0,D.Lt)(e.baseItem)&&(0,r.jsxs)(d.Z,{variant:"subtitle2",sx:{color:"primary.main"},children:["\xa0",(0,D.Lt)(e.baseItem)]})]},e.id)}))})]})})})}function er(e,n){(null==n||n>e.length)&&(n=e.length);for(var t=0,r=new Array(n);t0;if(!c)return null;function f(e,n){return m.apply(this,arguments)}function m(){return(m=tr(j().mark((function e(n,r){return j().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,t({variables:{item:r,slot:n}});case 3:e.next=7;break;case 5:e.prev=5,e.t0=e.catch(0);case 7:case"end":return e.stop()}}),e,null,[[0,5]])})))).apply(this,arguments)}return(0,r.jsx)(i.Fragment,{children:(0,r.jsxs)(h.ZP,{container:!0,columns:6,spacing:1,children:[(0,r.jsx)(h.ZP,{item:!0,xs:6,children:(0,r.jsx)(d.Z,{variant:"h3",sx:{fontSize:"1.2rem"},children:"Equipped items"})}),(0,r.jsx)(h.ZP,{item:!0,xs:6,sm:3,children:(0,r.jsx)(Vt,{hero:c,slot:"leftHand",label:"Left Hand",onEquip:f,disabled:u})}),(0,r.jsx)(h.ZP,{item:!0,xs:6,sm:3,children:(0,r.jsx)(Vt,{hero:c,slot:"rightHand",label:"Right Hand",onEquip:f,disabled:u})}),(0,r.jsx)(h.ZP,{item:!0,xs:6,sm:3,children:(0,r.jsx)(Vt,{hero:c,slot:"bodyArmor",label:"Body Armor",onEquip:f,disabled:u})}),(0,r.jsx)(h.ZP,{item:!0,xs:6,sm:3,children:(0,r.jsx)(Vt,{hero:c,slot:"handArmor",label:"Gauntlets",onEquip:f,disabled:u})}),(0,r.jsx)(h.ZP,{item:!0,xs:6,sm:3,children:(0,r.jsx)(Vt,{hero:c,slot:"legArmor",label:"Leggings",onEquip:f,disabled:u})}),(0,r.jsx)(h.ZP,{item:!0,xs:6,sm:3,children:(0,r.jsx)(Vt,{hero:c,slot:"headArmor",label:"Helmets",onEquip:f,disabled:u})}),(0,r.jsx)(h.ZP,{item:!0,xs:6,sm:3,children:(0,r.jsx)(Vt,{hero:c,slot:"footArmor",label:"Greaves",onEquip:f,disabled:u})}),(0,r.jsx)(h.ZP,{item:!0,xs:6,sm:3,children:(0,r.jsx)(Xt,{hero:c,disabled:u,onChange:s})}),(0,r.jsx)(h.ZP,{item:!0,xs:6,children:c.equipment.artifact&&(0,r.jsxs)(i.Fragment,{children:[(0,r.jsx)(d.Z,{children:"Active artifact"}),(0,r.jsx)(_,{artifact:c.equipment.artifact})]})}),c.level===c.levelCap&&(0,D.jr)(l)&&(0,r.jsx)(h.ZP,{item:!0,xs:6,children:(0,r.jsx)(Ct,{hero:c,disabled:u})}),(0,D.OB)(l)&&(0,r.jsx)(h.ZP,{item:!0,xs:6,children:(0,r.jsx)(Yt,{hero:c,disabled:u})}),(0,D.jj)(l)&&(0,r.jsx)(h.ZP,{item:!0,xs:6,children:(0,r.jsx)(_t,{hero:c,disabled:u})})]})})}function ar(e,n){(null==n||n>e.length)&&(n=e.length);for(var t=0,r=new Array(n);te.length)&&(n=e.length);for(var t=0,r=new Array(n);te.length)&&(n=e.length);for(var t=0,r=new Array(n);te.length)&&(n=e.length);for(var t=0,r=new Array(n);te.length)&&(n=e.length);for(var t=0,r=new Array(n);t0&&(0,r.jsx)(ht,{}),T&&T.currentQuest&&(0,r.jsx)(lr,{event:T.currentQuest})]}),(0,r.jsxs)(l.Z,{sx:{width:"100%",typography:"body1"},children:[(0,r.jsxs)(x.ZP,{value:L,children:[(0,r.jsxs)(l.Z,{sx:{borderBottom:1,borderColor:"divider"},children:[(0,r.jsx)(d.Z,{variant:"h1",sx:g.Z,children:"Navigation"}),(0,r.jsxs)(v.Z,{onChange:function(e,n){"play"===n?Z.push("/play","/play",{scroll:!1}):Z.push("/play/".concat(n),"/play/".concat(n),{scroll:!1}),M(n)},"aria-label":"navigation tabs",variant:"scrollable",children:[(0,r.jsx)(u.Z,{label:"Welcome",value:"play"}),(0,r.jsx)(u.Z,{label:"Combat",value:"combat"}),!(!(null===T||void 0===T?void 0:T.inventory.length)&&!(null===T||void 0===T?void 0:T.gold))&&(0,r.jsx)(u.Z,{label:"Shop",value:"shop"}),!!(null===T||void 0===T?void 0:T.inventory.length)&&(0,r.jsx)(u.Z,{label:"Inventory",value:"inventory"}),(0,r.jsx)(u.Z,{label:"Map",value:"map"}),T&&Object.values(T.questLog).filter((function(e){return!!e})).length>2&&(0,r.jsx)(u.Z,{label:"Quests",value:"quests"}),W&&(0,r.jsx)(u.Z,{label:"Settings",value:"settings"}),F===B.Ks.Admin&&(0,r.jsx)(u.Z,{label:"Admin",value:"admin"})]})]}),(0,r.jsx)(p.Z,{value:"play",children:(0,r.jsxs)(h.ZP,{container:!0,columns:12,spacing:4,children:[(0,r.jsxs)(h.ZP,{item:!0,xs:12,sm:7,md:8,children:[(0,r.jsxs)(d.Z,{variant:"h2",sx:{mb:2,fontSize:"1.8rem"},children:["Welcome to ",(0,r.jsx)("b",{children:"Proof of Combat"}),"!"]}),(0,r.jsxs)(d.Z,{variant:"subtitle1",sx:g.Z,children:["This text is only available to screen readers. Thank you for trying out my game! If you find any parts of the user interface that are difficult to navigate please let me know and I would love to improve them.",(0,r.jsx)("br",{}),(0,r.jsx)(m.Z,{href:"https://github.com/chrisinajar/proofofcombat/wiki/Screen-Readers-and-Accessibility",target:"_blank",rel:"noreferrer",children:"Check this wiki page for more details on accessibility"})]}),(0,r.jsx)(d.Z,{sx:{mb:2},children:"This game is once again being developed actively. It's been a long time coming and there's a lot of major changes to the underlying engine in order to unlock cooler and more interesting mechanics for the game."}),(0,r.jsx)(d.Z,{variant:"h4",sx:g.Z,children:"Discord Server"}),(0,r.jsxs)(d.Z,{sx:{mb:2},children:["If you'd like to talk more with other players, report bugs, or discuss upcoming features,"," ",(0,r.jsx)(m.Z,{underline:"hover",href:"https://discord.gg/t7AZSxvfJG",target:"_blank",rel:"noreferrer",children:"join the discord!"})]}),(0,r.jsx)(d.Z,{variant:"h4",sx:g.Z,children:"Game Wiki"}),(0,r.jsxs)(d.Z,{sx:{mb:2},children:["A great deal of the game is undocumented, but the parts which are documented can be found,"," ",(0,r.jsx)(m.Z,{underline:"hover",href:"https://github.com/chrisinajar/proofofcombat/wiki/",target:"_blank",rel:"noreferrer",children:"in the wiki"}),". The game is nearly impossible to 100% without consulting the wiki."]}),(0,r.jsx)(d.Z,{variant:"h5",sx:{mb:2},children:"Combat Stats"}),(null===T||void 0===T?void 0:T.combatStats)&&(0,r.jsx)(pr,{skills:T.skills,stats:T.combatStats})]}),(null===O||void 0===O?void 0:O.leaderboard)&&(0,r.jsxs)(h.ZP,{item:!0,xs:12,sm:5,md:4,children:[(0,r.jsx)(d.Z,{variant:"h6",children:"Leaderboard"}),(0,r.jsx)("ul",{id:"leaderboard-list",children:O.leaderboard.slice(0,20).map((function(e,n){return(0,r.jsxs)("li",{id:"leaderboard-list-".concat(n),children:[(0,r.jsx)("b",{id:"leaderboard-list-".concat(n,"-name"),children:e.name})," ","(",(0,D.qh)(e.class),")"]},e.id)}))})]})]})}),(0,r.jsxs)(p.Z,{value:"combat",children:[(0,r.jsx)(d.Z,{variant:"h3",sx:{textAlign:"center"},children:"Combat"}),(0,r.jsx)(d.Z,{children:"Challenge a monster from the list, then fight it to the death. Note that other players in the same location see the same monster lists, so they may get to it first!"}),(0,r.jsx)("br",{}),(0,r.jsx)(Le,{})]}),(0,r.jsx)(p.Z,{value:"shop",children:(0,r.jsx)(St,{})}),(0,r.jsx)(p.Z,{value:"inventory",children:(0,r.jsx)(ir,{})}),(0,r.jsx)(p.Z,{value:"map",children:(0,r.jsx)(it,{})}),(0,r.jsx)(p.Z,{value:"quests",children:(0,r.jsx)(xr,{})}),(0,r.jsx)(p.Z,{value:"settings",children:(0,r.jsx)(Mr,{})}),(0,r.jsx)(p.Z,{value:"admin",children:(0,r.jsx)(Fr,{})})]}),(0,r.jsx)("br",{}),(0,r.jsx)(s.Z,{}),(0,r.jsx)("br",{}),(0,r.jsx)(ae,{})]})]})})}}}]); \ No newline at end of file diff --git a/_next/static/z5Z3PScGuEJl8r_F-tGf0/_buildManifest.js b/_next/static/z5Z3PScGuEJl8r_F-tGf0/_buildManifest.js new file mode 100644 index 0000000..628346f --- /dev/null +++ b/_next/static/z5Z3PScGuEJl8r_F-tGf0/_buildManifest.js @@ -0,0 +1 @@ +self.__BUILD_MANIFEST=function(a,s,c,e,t){return{__rewrites:{beforeFiles:[],afterFiles:[],fallback:[]},"/":[a,s,c,"static/chunks/pages/index-c17a2aee1bb98bda.js"],"/_error":["static/chunks/pages/_error-2280fa386d040b66.js"],"/map":[a,"static/chunks/pages/map-791512877388b19f.js"],"/play":[a,s,e,c,t,"static/chunks/pages/play-456fc6dd80c8c028.js"],"/play/admin":[a,s,e,c,t,"static/chunks/pages/play/admin-5414a1cc9c45847e.js"],"/play/combat":[a,s,e,c,t,"static/chunks/pages/play/combat-1e440f3188e2f06d.js"],"/play/inventory":[a,s,e,c,t,"static/chunks/pages/play/inventory-c3505fca5d489193.js"],"/play/map":[a,s,e,c,t,"static/chunks/pages/play/map-efec1845d8de4bc2.js"],"/play/quests":[a,s,e,c,t,"static/chunks/pages/play/quests-2198c7aef5e67890.js"],"/play/settings":[a,s,e,c,t,"static/chunks/pages/play/settings-3bb492282ff25d49.js"],"/play/shop":[a,s,e,c,t,"static/chunks/pages/play/shop-e4c7d919dbe8b2f6.js"],sortedPages:["/","/_app","/_error","/map","/play","/play/admin","/play/combat","/play/inventory","/play/map","/play/quests","/play/settings","/play/shop"]}}("static/chunks/984-deb885fc01d3e6bf.js","static/chunks/392-d33825396aabb6d2.js","static/chunks/45-8f7a909cdae1ecc1.js","static/chunks/671-f5fc12b9cba90a61.js","static/chunks/799-d926860fa1b3fc62.js"),self.__BUILD_MANIFEST_CB&&self.__BUILD_MANIFEST_CB(); \ No newline at end of file diff --git a/_next/static/8Knyl21kqYQiznWRQubRu/_middlewareManifest.js b/_next/static/z5Z3PScGuEJl8r_F-tGf0/_middlewareManifest.js similarity index 100% rename from _next/static/8Knyl21kqYQiznWRQubRu/_middlewareManifest.js rename to _next/static/z5Z3PScGuEJl8r_F-tGf0/_middlewareManifest.js diff --git a/_next/static/8Knyl21kqYQiznWRQubRu/_ssgManifest.js b/_next/static/z5Z3PScGuEJl8r_F-tGf0/_ssgManifest.js similarity index 100% rename from _next/static/8Knyl21kqYQiznWRQubRu/_ssgManifest.js rename to _next/static/z5Z3PScGuEJl8r_F-tGf0/_ssgManifest.js diff --git a/index.html b/index.html index fdd91d4..6e482b4 100644 --- a/index.html +++ b/index.html @@ -1 +1 @@ -Proof of Combat

Proof of Combat


This is a game about clicking things and watching numbers go up, login if you have an account already.




Need an account?






Client source code

API explorer

Server source code



Logout

\ No newline at end of file +Proof of Combat

Proof of Combat


This is a game about clicking things and watching numbers go up, login if you have an account already.




Need an account?






Client source code

API explorer

Server source code



Logout

\ No newline at end of file diff --git a/map.html b/map.html index de2a6d1..5730c55 100644 --- a/map.html +++ b/map.html @@ -1 +1 @@ -Proof of Combat
\ No newline at end of file +Proof of Combat
\ No newline at end of file diff --git a/play.html b/play.html index 6b2a261..9eb844e 100644 --- a/play.html +++ b/play.html @@ -1 +1 @@ -Proof of Combat

Proof of Combat




Client source code

API explorer

Server source code



Logout

\ No newline at end of file +Proof of Combat

Proof of Combat




Client source code

API explorer

Server source code



Logout

\ No newline at end of file diff --git a/play/admin.html b/play/admin.html index e5dcf0b..3542590 100644 --- a/play/admin.html +++ b/play/admin.html @@ -1 +1 @@ -Proof of Combat

Proof of Combat




Client source code

API explorer

Server source code



Logout

\ No newline at end of file +Proof of Combat

Proof of Combat




Client source code

API explorer

Server source code



Logout

\ No newline at end of file diff --git a/play/combat.html b/play/combat.html index c16673f..3d63036 100644 --- a/play/combat.html +++ b/play/combat.html @@ -1 +1 @@ -Proof of Combat

Proof of Combat




Client source code

API explorer

Server source code



Logout

\ No newline at end of file +Proof of Combat

Proof of Combat




Client source code

API explorer

Server source code



Logout

\ No newline at end of file diff --git a/play/inventory.html b/play/inventory.html index 05e88a6..a23fb0d 100644 --- a/play/inventory.html +++ b/play/inventory.html @@ -1 +1 @@ -Proof of Combat

Proof of Combat




Client source code

API explorer

Server source code



Logout

\ No newline at end of file +Proof of Combat

Proof of Combat




Client source code

API explorer

Server source code



Logout

\ No newline at end of file diff --git a/play/map.html b/play/map.html index d40859e..da8dad1 100644 --- a/play/map.html +++ b/play/map.html @@ -1 +1 @@ -Proof of Combat

Proof of Combat




Client source code

API explorer

Server source code



Logout

\ No newline at end of file +Proof of Combat

Proof of Combat




Client source code

API explorer

Server source code



Logout

\ No newline at end of file diff --git a/play/quests.html b/play/quests.html index 272b779..6bda432 100644 --- a/play/quests.html +++ b/play/quests.html @@ -1 +1 @@ -Proof of Combat

Proof of Combat




Client source code

API explorer

Server source code



Logout

\ No newline at end of file +Proof of Combat

Proof of Combat




Client source code

API explorer

Server source code



Logout

\ No newline at end of file diff --git a/play/settings.html b/play/settings.html index d54feb1..575f655 100644 --- a/play/settings.html +++ b/play/settings.html @@ -1 +1 @@ -Proof of Combat

Proof of Combat




Client source code

API explorer

Server source code



Logout

\ No newline at end of file +Proof of Combat

Proof of Combat




Client source code

API explorer

Server source code



Logout

\ No newline at end of file diff --git a/play/shop.html b/play/shop.html index 3849cf0..acc7bfc 100644 --- a/play/shop.html +++ b/play/shop.html @@ -1 +1 @@ -Proof of Combat

Proof of Combat




Client source code

API explorer

Server source code



Logout

\ No newline at end of file +Proof of Combat

Proof of Combat




Client source code

API explorer

Server source code



Logout

\ No newline at end of file