From d06e1c6abc984a1dfc553894059eb21c817551c2 Mon Sep 17 00:00:00 2001 From: chrisinajar Date: Tue, 6 Feb 2024 20:32:20 +0000 Subject: [PATCH] =?UTF-8?q?Deploying=20to=20gh-pages=20from=20@=20chrisina?= =?UTF-8?q?jar/proofofcombat@ace5fbdff4e6fb4843a687abefc07ae98672ef71=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 +- .../_buildManifest.js | 2 +- .../_middlewareManifest.js | 0 .../_ssgManifest.js | 0 .../chunks/{18-be6d9eba6f2193e7.js => 18-f882c25e6c7ee0a4.js} | 2 +- 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 +- 15 files changed, 13 insertions(+), 13 deletions(-) rename _next/static/{MKRgWuUw590N4TCtWoQK6 => MbjlQaSwq5UhqVh9MSFu8}/_buildManifest.js (95%) rename _next/static/{MKRgWuUw590N4TCtWoQK6 => MbjlQaSwq5UhqVh9MSFu8}/_middlewareManifest.js (100%) rename _next/static/{MKRgWuUw590N4TCtWoQK6 => MbjlQaSwq5UhqVh9MSFu8}/_ssgManifest.js (100%) rename _next/static/chunks/{18-be6d9eba6f2193e7.js => 18-f882c25e6c7ee0a4.js} (56%) diff --git a/404.html b/404.html index 3b9b3df..ec50186 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/MKRgWuUw590N4TCtWoQK6/_buildManifest.js b/_next/static/MbjlQaSwq5UhqVh9MSFu8/_buildManifest.js similarity index 95% rename from _next/static/MKRgWuUw590N4TCtWoQK6/_buildManifest.js rename to _next/static/MbjlQaSwq5UhqVh9MSFu8/_buildManifest.js index bae2e7c..df2a85b 100644 --- a/_next/static/MKRgWuUw590N4TCtWoQK6/_buildManifest.js +++ b/_next/static/MbjlQaSwq5UhqVh9MSFu8/_buildManifest.js @@ -1 +1 @@ -self.__BUILD_MANIFEST=function(a,s,c,e,t){return{__rewrites:{beforeFiles:[],afterFiles:[],fallback:[]},"/":[a,s,c,"static/chunks/pages/index-e177ebb4a3857e30.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-2c810b3c086c07a4.js"],"/play/admin":[a,s,e,c,t,"static/chunks/pages/play/admin-cf303b46e5ffd5b0.js"],"/play/combat":[a,s,e,c,t,"static/chunks/pages/play/combat-69a901e0fc7ed82c.js"],"/play/inventory":[a,s,e,c,t,"static/chunks/pages/play/inventory-da7422b44bfb25b2.js"],"/play/map":[a,s,e,c,t,"static/chunks/pages/play/map-b300358cdc43a14a.js"],"/play/quests":[a,s,e,c,t,"static/chunks/pages/play/quests-b16f80e22922ff97.js"],"/play/settings":[a,s,e,c,t,"static/chunks/pages/play/settings-a61c9d0b2ddd23b4.js"],"/play/shop":[a,s,e,c,t,"static/chunks/pages/play/shop-cedc88c22096694d.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/6-c379133134feb644.js","static/chunks/18-be6d9eba6f2193e7.js","static/chunks/671-3892aee0a4d4e9b0.js","static/chunks/799-d224864a178f6b12.js"),self.__BUILD_MANIFEST_CB&&self.__BUILD_MANIFEST_CB(); \ No newline at end of file +self.__BUILD_MANIFEST=function(a,s,c,e,t){return{__rewrites:{beforeFiles:[],afterFiles:[],fallback:[]},"/":[a,s,c,"static/chunks/pages/index-e177ebb4a3857e30.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-2c810b3c086c07a4.js"],"/play/admin":[a,s,e,c,t,"static/chunks/pages/play/admin-cf303b46e5ffd5b0.js"],"/play/combat":[a,s,e,c,t,"static/chunks/pages/play/combat-69a901e0fc7ed82c.js"],"/play/inventory":[a,s,e,c,t,"static/chunks/pages/play/inventory-da7422b44bfb25b2.js"],"/play/map":[a,s,e,c,t,"static/chunks/pages/play/map-b300358cdc43a14a.js"],"/play/quests":[a,s,e,c,t,"static/chunks/pages/play/quests-b16f80e22922ff97.js"],"/play/settings":[a,s,e,c,t,"static/chunks/pages/play/settings-a61c9d0b2ddd23b4.js"],"/play/shop":[a,s,e,c,t,"static/chunks/pages/play/shop-cedc88c22096694d.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/6-c379133134feb644.js","static/chunks/18-f882c25e6c7ee0a4.js","static/chunks/671-3892aee0a4d4e9b0.js","static/chunks/799-d224864a178f6b12.js"),self.__BUILD_MANIFEST_CB&&self.__BUILD_MANIFEST_CB(); \ No newline at end of file diff --git a/_next/static/MKRgWuUw590N4TCtWoQK6/_middlewareManifest.js b/_next/static/MbjlQaSwq5UhqVh9MSFu8/_middlewareManifest.js similarity index 100% rename from _next/static/MKRgWuUw590N4TCtWoQK6/_middlewareManifest.js rename to _next/static/MbjlQaSwq5UhqVh9MSFu8/_middlewareManifest.js diff --git a/_next/static/MKRgWuUw590N4TCtWoQK6/_ssgManifest.js b/_next/static/MbjlQaSwq5UhqVh9MSFu8/_ssgManifest.js similarity index 100% rename from _next/static/MKRgWuUw590N4TCtWoQK6/_ssgManifest.js rename to _next/static/MbjlQaSwq5UhqVh9MSFu8/_ssgManifest.js diff --git a/_next/static/chunks/18-be6d9eba6f2193e7.js b/_next/static/chunks/18-f882c25e6c7ee0a4.js similarity index 56% rename from _next/static/chunks/18-be6d9eba6f2193e7.js rename to _next/static/chunks/18-f882c25e6c7ee0a4.js index 54d6a09..fe68b49 100644 --- a/_next/static/chunks/18-be6d9eba6f2193e7.js +++ b/_next/static/chunks/18-f882c25e6c7ee0a4.js @@ -1 +1 @@ -"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[18],{7018:function(n,e,t){t.d(e,{A:function(){return R}});var r=t(5893),i=t(7294),a=t(8239),o=t(1927),l=t(7948),s=t(8396),u=t(6720),c=t(9402),m=t(9835),d=(0,i.createContext)([null,function(n){}]);var h,p=t(6252),g=t(1163),f=t(2293),v=t(155),y=t(5861),S=t(6886),x=t(3321),A=t(9653),w=t(480),b=t(3457),k=t(9692),j=t(3984),D=t(9944),B=t(874);function C(n,e,t){return e in n?Object.defineProperty(n,e,{value:t,enumerable:!0,configurable:!0,writable:!0}):n[e]=t,n}var I=(C(h={},c.UB.Monster,"???"),C(h,c.UB.Adventurer,"Brand new heroes gain bonus experience until they find their niche."),C(h,c.UB.JackOfAllTrades,"You gain +50% in all stats."),C(h,c.UB.Gambler,"Gamblers gain an additional level of crit, random amounts of their luck added to accuracy and dodge, +20% to dexterity wisdom and luck and +10% to all other stats"),C(h,c.UB.Fighter,"Fighters gain +50% strength, +30% to dexterity, and +20% to willpower"),C(h,c.UB.Berserker,"Berserkers received +100% strengtth and +30% dexterity"),C(h,c.UB.Wizard,"You receive +100% intelligence and +30% wisdom"),C(h,c.UB.Warlock,"You receive +50% intelligence, +30% wisdom, and +20% willpower"),C(h,c.UB.BattleMage,"Battle Mage's can attack with both a spell and a weapon at the same time, additionally they receive +100% strength, +30% dexterity, +100% intelligence, +30% wisdom, and +20% willpower"),C(h,c.UB.Paladin,"Paladins can use shields as weapons, additionally they receive +30% willpower"),C(h,c.UB.Ranger,"Rangers receive +100% dexterity and double accuracy"),C(h,c.UB.BloodMage,"Blood Mages damage themselves every time they attack"),h);function M(n){var e,t=n.hero,a=null!==(e=I[t.class])&&void 0!==e?e:"???";return(0,r.jsx)(i.Fragment,{children:(0,r.jsxs)(S.ZP,{container:!0,columns:6,children:[(0,r.jsxs)(S.ZP,{item:!0,lg:1,md:2,sm:3,xs:6,children:["Level:"," ",(0,r.jsx)("span",{id:"hero-stats-level",children:t.level.toLocaleString()})]}),(0,r.jsx)(S.ZP,{item:!0,lg:1,md:2,sm:3,xs:6,children:(0,r.jsx)(j.Z,{title:a,leaveTouchDelay:5e3,children:(0,r.jsxs)("span",{children:["Class: ",(0,r.jsx)("span",{id:"hero-stats-class",children:(0,B.qh)(t.class)}),(0,r.jsx)(D.Z,{sx:{fontSize:10,verticalAlign:"top"}})]})})}),(0,r.jsxs)(S.ZP,{item:!0,lg:1,md:2,sm:3,xs:6,children:["Gold: ",(0,r.jsx)("span",{id:"hero-stats-gold",children:t.gold.toLocaleString()})]}),(0,r.jsxs)(S.ZP,{item:!0,lg:1,md:2,sm:3,xs:6,children:["Location:"," ",(0,r.jsxs)("span",{id:"hero-stats-location",children:[t.location.x,", ",t.location.y]})]}),(0,r.jsxs)(S.ZP,{item:!0,lg:1,md:2,sm:3,xs:6,children:["Experience:"," ",(0,r.jsx)("span",{id:"hero-stats-experience",children:t.experience.toLocaleString()})," ","/"," ",(0,r.jsx)("span",{id:"hero-stats-experience-needed",children:t.needed.toLocaleString()})]}),(0,r.jsxs)(S.ZP,{item:!0,lg:1,md:2,sm:3,xs:6,children:["Health:"," ",(0,r.jsxs)("span",{id:"hero-stats-health",children:[t.combat.health.toLocaleString()," /"," ",t.combat.maxHealth.toLocaleString()]})]}),(0,r.jsxs)(S.ZP,{item:!0,lg:1,md:2,sm:3,xs:6,children:["Strength:"," ",(0,r.jsx)("span",{id:"hero-stats-strength",children:t.stats.strength.toLocaleString()})]}),(0,r.jsxs)(S.ZP,{item:!0,lg:1,md:2,sm:3,xs:6,children:["Dexterity:"," ",(0,r.jsx)("span",{id:"hero-stats-dexterity",children:t.stats.dexterity.toLocaleString()})]}),(0,r.jsxs)(S.ZP,{item:!0,lg:1,md:2,sm:3,xs:6,children:["Constitution:"," ",(0,r.jsx)("span",{id:"hero-stats-constitution",children:t.stats.constitution.toLocaleString()})]}),(0,r.jsxs)(S.ZP,{item:!0,lg:1,md:2,sm:3,xs:6,children:["Intelligence:"," ",(0,r.jsx)("span",{id:"hero-stats-intelligence",children:t.stats.intelligence.toLocaleString()})]}),(0,r.jsxs)(S.ZP,{item:!0,lg:1,md:2,sm:3,xs:6,children:["Wisdom:"," ",(0,r.jsx)("span",{id:"hero-stats-wisdom",children:t.stats.wisdom.toLocaleString()})]}),(0,r.jsxs)(S.ZP,{item:!0,lg:1,md:2,sm:3,xs:6,children:["Willpower:"," ",(0,r.jsx)("span",{id:"hero-stats-willpower",children:t.stats.willpower.toLocaleString()})]}),(0,r.jsxs)(S.ZP,{item:!0,lg:1,md:2,sm:3,xs:6,children:["Luck:"," ",(0,r.jsx)("span",{id:"hero-stats-luck",children:t.stats.luck.toLocaleString()})]})]})})}function P(n,e){(null==e||e>n.length)&&(e=n.length);for(var t=0,r=new Array(e);t0?"is-in-delay":"no-delay",style:{width:"100%",height:"6px",backgroundColor:"#ccc"},children:(0,r.jsx)("div",{id:"delay-bar",ref:t,style:{height:"100%",backgroundColor:"#f0f"}})})}var E=t(7720);function L(){return(0,r.jsxs)(i.Fragment,{children:[(0,r.jsx)("br",{}),(0,r.jsx)(E.Z,{}),(0,r.jsx)("br",{}),(0,r.jsx)(l.Z,{children:(0,r.jsxs)(S.ZP,{container:!0,columns:3,children:[(0,r.jsx)(S.ZP,{item:!0,sm:1,xs:3,children:(0,r.jsx)(y.Z,{children:(0,r.jsx)("a",{href:"https://github.com/chrisinajar/proofofcombat",target:"_blank",rel:"noreferrer",children:"Client source code"})})}),(0,r.jsx)(S.ZP,{item:!0,sm:1,xs:3,children:(0,r.jsx)(y.Z,{align:"center",children:(0,r.jsx)("a",{href:"https://studio.apollographql.com/sandbox/explorer?endpoint=https%3A%2F%2Fchrisinajar.com%3A8443%2Fgraphql",target:"_blank",rel:"noreferrer",children:"API explorer"})})}),(0,r.jsx)(S.ZP,{item:!0,sm:1,xs:3,children:(0,r.jsx)(y.Z,{align:"right",children:(0,r.jsx)("a",{href:"https://github.com/chrisinajar/proofofcombat-server",target:"_blank",rel:"noreferrer",children:"Server source code"})})})]})}),(0,r.jsx)("br",{})]})}var H=t(1458);function q(n){var e=n.hero;return(0,r.jsxs)(i.Fragment,{children:[(0,r.jsx)(H.Z,{sx:{height:10},variant:"determinate",value:e.combat.health/e.combat.maxHealth*100,color:"success"}),(0,r.jsx)(H.Z,{sx:{height:10},variant:"determinate",value:e.experience/e.needed*100,color:"secondary"})]})}function U(n,e){(null==e||e>n.length)&&(e=n.length);for(var t=0,r=new Array(e);t0){var n=setTimeout((function(){var n=U-Date.now();W(n)}),Math.max(50,P));return function(){return clearTimeout(n)}}}),[P]),(0,i.useEffect)((function(){var n,e;if(null===I||void 0===I||null===(n=I.me)||void 0===n||null===(e=n.account)||void 0===e?void 0:e.nextAllowedAction){var t=U-R;t>0&&(t>P&&H(t),W(t))}}),[null===I||void 0===I||null===(h=I.me)||void 0===h||null===(p=h.account)||void 0===p?void 0:p.nextAllowedAction,k]),I&&y){var V=I.me,N=(V.now,V.account),G=N.hero;N.nextAllowedAction;if(G)return(0,r.jsxs)(o.Z,{theme:Z,children:[(0,r.jsx)(u.ZP,{enableColorScheme:!0}),(0,r.jsxs)(d.Provider,{value:[O,w],children:[(0,r.jsx)(T,{hero:G}),(0,r.jsx)(q,{hero:G}),(0,r.jsx)($,{delay:P}),(0,r.jsx)(l.Z,{children:f}),(0,r.jsx)(L,{})]})]})}return(0,r.jsxs)(o.Z,{theme:Z,children:[(0,r.jsx)(u.ZP,{enableColorScheme:!0}),(0,r.jsxs)(d.Provider,{value:[O,w],children:[(0,r.jsx)(T,{}),(0,r.jsx)(l.Z,{children:f}),(0,r.jsx)(L,{})]})]})}},9402:function(n,e,t){t.d(e,{Ks:function(){return ln},WB:function(){return sn},hK:function(){return un},GC:function(){return cn},kj:function(){return mn},UB:function(){return dn},lq:function(){return hn},zP:function(){return pn},$7:function(){return gn},p$:function(){return fn},oS:function(){return vn},gT:function(){return yn},AF:function(){return wn},OQ:function(){return kn},ED:function(){return Dn},sf:function(){return Cn},iX:function(){return Mn},_W:function(){return Wn},lG:function(){return $n},F2:function(){return Ln},TX:function(){return qn},_v:function(){return Fn},Fw:function(){return On},E0:function(){return Vn},Ht:function(){return Gn},pL:function(){return zn},zC:function(){return Kn},hL:function(){return Xn},Of:function(){return ne},YA:function(){return te},Bl:function(){return ie},Nn:function(){return oe},w3:function(){return se},Rw:function(){return ce},Pw:function(){return de},dg:function(){return pe},mE:function(){return fe},PF:function(){return ye},aP:function(){return xe},Wg:function(){return we},Y4:function(){return ke},Hk:function(){return De},jE:function(){return Ce},dE:function(){return Me},NA:function(){return We},W1:function(){return $e},gK:function(){return Le},L7:function(){return qe},G_:function(){return Fe},kO:function(){return Oe},Dp:function(){return Ve},iA:function(){return Ge},j9:function(){return ze},Q8:function(){return Ke},Th:function(){return Xe},QT:function(){return nt},Nw:function(){return tt},o_:function(){return it},Xx:function(){return ot},hv:function(){return st},Cb:function(){return ct},Rz:function(){return dt},UE:function(){return pt}});var r=t(7283),i=t(319),a=t(1641);function o(n,e,t){return e in n?Object.defineProperty(n,e,{value:t,enumerable:!0,configurable:!0,writable:!0}):n[e]=t,n}function l(n){for(var e=1;ee.name?1:e.name>n.name?-1:n.enchantment&&e.enchantment?n.enchantment>e.enchantment?1:e.enchantment>n.enchantment?-1:0:0}function A(n,e){var t,r,i,a,o,l,s;return!(!(null===(t=n.equipment.leftHand)||void 0===t?void 0:t.id)||n.equipment.leftHand.id!==e.id)||(!(!(null===(r=n.equipment.rightHand)||void 0===r?void 0:r.id)||n.equipment.rightHand.id!==e.id)||(!(!(null===(i=n.equipment.bodyArmor)||void 0===i?void 0:i.id)||n.equipment.bodyArmor.id!==e.id)||(!(!(null===(a=n.equipment.handArmor)||void 0===a?void 0:a.id)||n.equipment.handArmor.id!==e.id)||(!(!(null===(o=n.equipment.legArmor)||void 0===o?void 0:o.id)||n.equipment.legArmor.id!==e.id)||(!(!(null===(l=n.equipment.headArmor)||void 0===l?void 0:l.id)||n.equipment.headArmor.id!==e.id)||!(!(null===(s=n.equipment.footArmor)||void 0===s?void 0:s.id)||n.equipment.footArmor.id!==e.id))))))}},9692:function(n,e,t){t.d(e,{d:function(){return l}});var r,i=t(7294),a=["undefined"!==typeof sessionStorage&&null!==(r=sessionStorage.token)&&void 0!==r?r:null,function(n){a[0]=n,"undefined"!==typeof sessionStorage&&(sessionStorage.token=n)}],o=i.createContext(a);function l(){return i.useContext(o)}}}]); \ No newline at end of file +"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[18],{7018:function(n,e,t){t.d(e,{A:function(){return R}});var r=t(5893),i=t(7294),a=t(8239),o=t(1927),s=t(7948),l=t(8396),u=t(6720),c=t(9402),m=t(9835),d=(0,i.createContext)([null,function(n){}]);var h,p=t(6252),g=t(1163),f=t(2293),v=t(155),y=t(5861),S=t(6886),x=t(3321),A=t(9653),w=t(480),b=t(3457),k=t(9692),j=t(3984),D=t(9944),B=t(874);function C(n,e,t){return e in n?Object.defineProperty(n,e,{value:t,enumerable:!0,configurable:!0,writable:!0}):n[e]=t,n}var I=(C(h={},c.UB.Monster,"???"),C(h,c.UB.Adventurer,"Brand new heroes gain bonus experience until they find their niche."),C(h,c.UB.JackOfAllTrades,"You gain +50% in all stats."),C(h,c.UB.Gambler,"Gamblers gain an additional level of crit, random amounts of their luck added to accuracy and dodge, +20% to dexterity wisdom and luck and +10% to all other stats"),C(h,c.UB.Fighter,"Fighters gain +50% strength, +30% to dexterity, and +20% to willpower"),C(h,c.UB.Berserker,"Berserkers received +100% strengtth and +30% dexterity"),C(h,c.UB.Wizard,"You receive +100% intelligence and +30% wisdom"),C(h,c.UB.Warlock,"You receive +50% intelligence, +30% wisdom, and +20% willpower"),C(h,c.UB.BattleMage,"Battle Mage's can attack with both a spell and a weapon at the same time, additionally they receive +100% strength, +30% dexterity, +100% intelligence, +30% wisdom, and +20% willpower"),C(h,c.UB.Paladin,"Paladins can use shields as weapons, additionally they receive +30% willpower"),C(h,c.UB.Ranger,"Rangers receive +100% dexterity and double accuracy"),C(h,c.UB.BloodMage,"Blood Mages damage themselves every time they attack"),h);function M(n){var e,t=n.hero,a=null!==(e=I[t.class])&&void 0!==e?e:"???";return(0,r.jsx)(i.Fragment,{children:(0,r.jsxs)(S.ZP,{container:!0,columns:6,children:[(0,r.jsxs)(S.ZP,{item:!0,lg:1,md:2,sm:3,xs:6,children:["Level:"," ",(0,r.jsx)("span",{id:"hero-stats-level",children:t.level.toLocaleString()})]}),(0,r.jsx)(S.ZP,{item:!0,lg:1,md:2,sm:3,xs:6,children:(0,r.jsx)(j.Z,{title:a,leaveTouchDelay:5e3,children:(0,r.jsxs)("span",{children:["Class: ",(0,r.jsx)("span",{id:"hero-stats-class",children:(0,B.qh)(t.class)}),(0,r.jsx)(D.Z,{sx:{fontSize:10,verticalAlign:"top"}})]})})}),(0,r.jsxs)(S.ZP,{item:!0,lg:1,md:2,sm:3,xs:6,children:["Gold: ",(0,r.jsx)("span",{id:"hero-stats-gold",children:t.gold.toLocaleString()})]}),(0,r.jsxs)(S.ZP,{item:!0,lg:1,md:2,sm:3,xs:6,children:["Location:"," ",(0,r.jsxs)("span",{id:"hero-stats-location",children:[t.location.x,", ",t.location.y]})]}),(0,r.jsxs)(S.ZP,{item:!0,lg:1,md:2,sm:3,xs:6,children:["Experience:"," ",(0,r.jsx)("span",{id:"hero-stats-experience",children:t.experience.toLocaleString()})," ","/"," ",(0,r.jsx)("span",{id:"hero-stats-experience-needed",children:t.needed.toLocaleString()})]}),(0,r.jsxs)(S.ZP,{item:!0,lg:1,md:2,sm:3,xs:6,children:["Health:"," ",(0,r.jsxs)("span",{id:"hero-stats-health",children:[t.combat.health.toLocaleString()," /"," ",t.combat.maxHealth.toLocaleString()]})]}),(0,r.jsxs)(S.ZP,{item:!0,lg:1,md:2,sm:3,xs:6,children:["Strength:"," ",(0,r.jsx)("span",{id:"hero-stats-strength",children:t.stats.strength.toLocaleString()})]}),(0,r.jsxs)(S.ZP,{item:!0,lg:1,md:2,sm:3,xs:6,children:["Dexterity:"," ",(0,r.jsx)("span",{id:"hero-stats-dexterity",children:t.stats.dexterity.toLocaleString()})]}),(0,r.jsxs)(S.ZP,{item:!0,lg:1,md:2,sm:3,xs:6,children:["Constitution:"," ",(0,r.jsx)("span",{id:"hero-stats-constitution",children:t.stats.constitution.toLocaleString()})]}),(0,r.jsxs)(S.ZP,{item:!0,lg:1,md:2,sm:3,xs:6,children:["Intelligence:"," ",(0,r.jsx)("span",{id:"hero-stats-intelligence",children:t.stats.intelligence.toLocaleString()})]}),(0,r.jsxs)(S.ZP,{item:!0,lg:1,md:2,sm:3,xs:6,children:["Wisdom:"," ",(0,r.jsx)("span",{id:"hero-stats-wisdom",children:t.stats.wisdom.toLocaleString()})]}),(0,r.jsxs)(S.ZP,{item:!0,lg:1,md:2,sm:3,xs:6,children:["Willpower:"," ",(0,r.jsx)("span",{id:"hero-stats-willpower",children:t.stats.willpower.toLocaleString()})]}),(0,r.jsxs)(S.ZP,{item:!0,lg:1,md:2,sm:3,xs:6,children:["Luck:"," ",(0,r.jsx)("span",{id:"hero-stats-luck",children:t.stats.luck.toLocaleString()})]})]})})}function P(n,e){(null==e||e>n.length)&&(e=n.length);for(var t=0,r=new Array(e);t0?"is-in-delay":"no-delay",style:{width:"100%",height:"6px",backgroundColor:"#ccc"},children:(0,r.jsx)("div",{id:"delay-bar",ref:t,style:{height:"100%",backgroundColor:"#f0f"}})})}var E=t(7720);function L(){return(0,r.jsxs)(i.Fragment,{children:[(0,r.jsx)("br",{}),(0,r.jsx)(E.Z,{}),(0,r.jsx)("br",{}),(0,r.jsx)(s.Z,{children:(0,r.jsxs)(S.ZP,{container:!0,columns:3,children:[(0,r.jsx)(S.ZP,{item:!0,sm:1,xs:3,children:(0,r.jsx)(y.Z,{children:(0,r.jsx)("a",{href:"https://github.com/chrisinajar/proofofcombat",target:"_blank",rel:"noreferrer",children:"Client source code"})})}),(0,r.jsx)(S.ZP,{item:!0,sm:1,xs:3,children:(0,r.jsx)(y.Z,{align:"center",children:(0,r.jsx)("a",{href:"https://studio.apollographql.com/sandbox/explorer?endpoint=https%3A%2F%2Fchrisinajar.com%3A8443%2Fgraphql",target:"_blank",rel:"noreferrer",children:"API explorer"})})}),(0,r.jsx)(S.ZP,{item:!0,sm:1,xs:3,children:(0,r.jsx)(y.Z,{align:"right",children:(0,r.jsx)("a",{href:"https://github.com/chrisinajar/proofofcombat-server",target:"_blank",rel:"noreferrer",children:"Server source code"})})})]})}),(0,r.jsx)("br",{})]})}var H=t(1458);function q(n){var e=n.hero;return(0,r.jsxs)(i.Fragment,{children:[(0,r.jsx)(H.Z,{sx:{height:10},variant:"determinate",value:e.combat.health/e.combat.maxHealth*100,color:"success"}),(0,r.jsx)(H.Z,{sx:{height:10},variant:"determinate",value:e.experience/e.needed*100,color:"secondary"})]})}function U(n,e){(null==e||e>n.length)&&(e=n.length);for(var t=0,r=new Array(e);t0){var n=setTimeout((function(){var n=U-Date.now();W(n)}),Math.max(50,P));return function(){return clearTimeout(n)}}}),[P]),(0,i.useEffect)((function(){var n,e;if(null===I||void 0===I||null===(n=I.me)||void 0===n||null===(e=n.account)||void 0===e?void 0:e.nextAllowedAction){var t=U-R;t>0&&(t>P&&H(t),W(t))}}),[null===I||void 0===I||null===(h=I.me)||void 0===h||null===(p=h.account)||void 0===p?void 0:p.nextAllowedAction,k]),I&&y){var V=I.me,N=(V.now,V.account),G=N.hero;N.nextAllowedAction;if(G)return(0,r.jsxs)(o.Z,{theme:Z,children:[(0,r.jsx)(u.ZP,{enableColorScheme:!0}),(0,r.jsxs)(d.Provider,{value:[O,w],children:[(0,r.jsx)(T,{hero:G}),(0,r.jsx)(q,{hero:G}),(0,r.jsx)($,{delay:P}),(0,r.jsx)(s.Z,{children:f}),(0,r.jsx)(L,{})]})]})}return(0,r.jsxs)(o.Z,{theme:Z,children:[(0,r.jsx)(u.ZP,{enableColorScheme:!0}),(0,r.jsxs)(d.Provider,{value:[O,w],children:[(0,r.jsx)(T,{}),(0,r.jsx)(s.Z,{children:f}),(0,r.jsx)(L,{})]})]})}},9402:function(n,e,t){t.d(e,{Ks:function(){return sn},WB:function(){return ln},hK:function(){return un},GC:function(){return cn},kj:function(){return mn},UB:function(){return dn},lq:function(){return hn},zP:function(){return pn},$7:function(){return gn},p$:function(){return fn},oS:function(){return vn},gT:function(){return yn},AF:function(){return wn},OQ:function(){return kn},ED:function(){return Dn},sf:function(){return Cn},iX:function(){return Mn},_W:function(){return Wn},lG:function(){return $n},F2:function(){return Ln},TX:function(){return qn},_v:function(){return Fn},Fw:function(){return On},E0:function(){return Vn},Ht:function(){return Gn},pL:function(){return zn},zC:function(){return Kn},hL:function(){return Xn},Of:function(){return ne},YA:function(){return te},Bl:function(){return ie},Nn:function(){return oe},w3:function(){return le},Rw:function(){return ce},Pw:function(){return de},dg:function(){return pe},mE:function(){return fe},PF:function(){return ye},aP:function(){return xe},Wg:function(){return we},Y4:function(){return ke},Hk:function(){return De},jE:function(){return Ce},dE:function(){return Me},NA:function(){return We},W1:function(){return $e},gK:function(){return Le},L7:function(){return qe},G_:function(){return Fe},kO:function(){return Oe},Dp:function(){return Ve},iA:function(){return Ge},j9:function(){return ze},Q8:function(){return Ke},Th:function(){return Xe},QT:function(){return nt},Nw:function(){return tt},o_:function(){return it},Xx:function(){return ot},hv:function(){return lt},Cb:function(){return ct},Rz:function(){return dt},UE:function(){return pt}});var r=t(7283),i=t(319),a=t(1641);function o(n,e,t){return e in n?Object.defineProperty(n,e,{value:t,enumerable:!0,configurable:!0,writable:!0}):n[e]=t,n}function s(n){for(var e=1;ee.name?1:e.name>n.name?-1:n.enchantment&&e.enchantment?n.enchantment>e.enchantment?1:e.enchantment>n.enchantment?-1:0:0}function A(n,e){var t,r,i,a,o,s,l;return!(!(null===(t=n.equipment.leftHand)||void 0===t?void 0:t.id)||n.equipment.leftHand.id!==e.id)||(!(!(null===(r=n.equipment.rightHand)||void 0===r?void 0:r.id)||n.equipment.rightHand.id!==e.id)||(!(!(null===(i=n.equipment.bodyArmor)||void 0===i?void 0:i.id)||n.equipment.bodyArmor.id!==e.id)||(!(!(null===(a=n.equipment.handArmor)||void 0===a?void 0:a.id)||n.equipment.handArmor.id!==e.id)||(!(!(null===(o=n.equipment.legArmor)||void 0===o?void 0:o.id)||n.equipment.legArmor.id!==e.id)||(!(!(null===(s=n.equipment.headArmor)||void 0===s?void 0:s.id)||n.equipment.headArmor.id!==e.id)||!(!(null===(l=n.equipment.footArmor)||void 0===l?void 0:l.id)||n.equipment.footArmor.id!==e.id))))))}},9692:function(n,e,t){t.d(e,{d:function(){return s}});var r,i=t(7294),a=["undefined"!==typeof sessionStorage&&null!==(r=sessionStorage.token)&&void 0!==r?r:null,function(n){a[0]=n,"undefined"!==typeof sessionStorage&&(sessionStorage.token=n)}],o=i.createContext(a);function s(){return i.useContext(o)}}}]); \ No newline at end of file diff --git a/index.html b/index.html index a0aca4e..c06332b 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


\ 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


\ No newline at end of file diff --git a/map.html b/map.html index b6e95f7..33045d1 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 6912d5a..4dac9f2 100644 --- a/play.html +++ b/play.html @@ -1 +1 @@ -Proof of Combat

Proof of Combat




Client source code

API explorer

Server source code


\ No newline at end of file +Proof of Combat

Proof of Combat




Client source code

API explorer

Server source code


\ No newline at end of file diff --git a/play/admin.html b/play/admin.html index e2ae26b..b39298f 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


\ No newline at end of file +Proof of Combat

Proof of Combat




Client source code

API explorer

Server source code


\ No newline at end of file diff --git a/play/combat.html b/play/combat.html index b1202bb..9d3d04f 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


\ No newline at end of file +Proof of Combat

Proof of Combat




Client source code

API explorer

Server source code


\ No newline at end of file diff --git a/play/inventory.html b/play/inventory.html index 2a84220..b79dbee 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


\ No newline at end of file +Proof of Combat

Proof of Combat




Client source code

API explorer

Server source code


\ No newline at end of file diff --git a/play/map.html b/play/map.html index ee94b88..997181e 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


\ No newline at end of file +Proof of Combat

Proof of Combat




Client source code

API explorer

Server source code


\ No newline at end of file diff --git a/play/quests.html b/play/quests.html index af7c4df..96febbc 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


\ No newline at end of file +Proof of Combat

Proof of Combat




Client source code

API explorer

Server source code


\ No newline at end of file diff --git a/play/settings.html b/play/settings.html index 97fdf0f..cbd7d87 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


\ No newline at end of file +Proof of Combat

Proof of Combat




Client source code

API explorer

Server source code


\ No newline at end of file diff --git a/play/shop.html b/play/shop.html index 9881608..41b4b54 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


\ No newline at end of file +Proof of Combat

Proof of Combat




Client source code

API explorer

Server source code


\ No newline at end of file