Skip to content
Snippets Groups Projects
Commit c47a3592 authored by Griefed's avatar Griefed :joystick:
Browse files

Deploying to gh-pages from @ 2fcce502 :rocket:

parent d5ba8131
No related branches found
No related tags found
No related merge requests found
File moved
<!DOCTYPE html><html><head><title>Let Them Trade Map-Maker</title><meta charset=utf-8><meta name=description content="Visual Map Maker for Let Them Trade"><meta name=format-detection content="telephone=no"><meta name=msapplication-tap-highlight content=no><meta name=viewport content="user-scalable=no,initial-scale=1,maximum-scale=1,minimum-scale=1,width=device-width"><link rel=icon type=image/png sizes=128x128 href=icons/favicon-128x128.png><link rel=icon type=image/png sizes=96x96 href=icons/favicon-96x96.png><link rel=icon type=image/png sizes=32x32 href=icons/favicon-32x32.png><link rel=icon type=image/png sizes=16x16 href=icons/favicon-16x16.png><link rel=icon type=image/ico href=favicon.ico><script defer src=js/vendor.397444a2.js></script><script defer src=js/app.96fe15ba.js></script><link href=css/vendor.e1411231.css rel=stylesheet><link href=css/app.31d6cfe0.css rel=stylesheet></head><body><div id=q-app></div></body></html>
\ No newline at end of file
<!DOCTYPE html><html><head><title>Let Them Trade Map-Maker</title><meta charset=utf-8><meta name=description content="Visual Map Maker for Let Them Trade"><meta name=format-detection content="telephone=no"><meta name=msapplication-tap-highlight content=no><meta name=viewport content="user-scalable=no,initial-scale=1,maximum-scale=1,minimum-scale=1,width=device-width"><link rel=icon type=image/png sizes=128x128 href=icons/favicon-128x128.png><link rel=icon type=image/png sizes=96x96 href=icons/favicon-96x96.png><link rel=icon type=image/png sizes=32x32 href=icons/favicon-32x32.png><link rel=icon type=image/png sizes=16x16 href=icons/favicon-16x16.png><link rel=icon type=image/ico href=favicon.ico><script defer src=js/vendor.501ef6c0.js></script><script defer src=js/app.c7425758.js></script><link href=css/vendor.e1411231.css rel=stylesheet><link href=css/app.31d6cfe0.css rel=stylesheet></head><body><div id=q-app></div></body></html>
\ No newline at end of file
"use strict";(self["webpackChunkltt_mapmaker"]=self["webpackChunkltt_mapmaker"]||[]).push([[302],{6302:(e,t,a)=>{a.r(t),a.d(t,{default:()=>A});var l=a(3673),s=a(2323),o=a(8880);const i={key:0},r={key:1},n={class:"row no-wrap q-pa-md absolute-center"},d={class:"column",style:{width:"600px"}},m=(0,l._)("div",{class:"text-h6 q-mb-md text-black"},"New Map Dimensions",-1),u=(0,l.Uk)(" Size along the X-axis. "),p=(0,l.Uk)(" Size along the Y-axis. "),c=(0,l.Uk)(" Generate empty map with size set above "),f={class:"column",style:{width:"600px"}},w=(0,l.Uk)(" Numbers only. "),b=(0,l.Uk)(" Generate random map with size set above "),h={class:"column"},y=(0,l._)("div",{class:"text-h6 q-mb-md text-black"},"Load Existing Map",-1),_=(0,l.Uk)(" Valid map-json only. "),g=(0,l.Uk)(" Load Map From Data "),x={class:"column"},v=(0,l._)("div",{class:"text-h6 q-mb-md text-black"},"Load Map from File",-1),W=(0,l.Uk)(" Only one file of max 800Kb in size. "),k=(0,l.Uk)(" Load Map From File ");function q(e,t,a,q,V,S){const M=(0,l.up)("Tile"),Y=(0,l.up)("q-icon"),C=(0,l.up)("q-item-section"),U=(0,l.up)("q-slider"),Z=(0,l.up)("q-tooltip"),Q=(0,l.up)("q-item"),X=(0,l.up)("q-btn"),z=(0,l.up)("q-card-section"),F=(0,l.up)("q-input"),I=(0,l.up)("q-file"),D=(0,l.up)("q-card");return e.store.state.lttMap?((0,l.wg)(),(0,l.iD)("span",i,[((0,l.wg)(!0),(0,l.iD)(l.HY,null,(0,l.Ko)(e.store.state.lttMap,((e,t)=>((0,l.wg)(),(0,l.iD)("span",{key:t},[(0,l._)("div",{class:(0,s.C_)(["row no-wrap",[{firstRow:0==t,moveup:0!=t},0==t||t%2?"notShifted":"shifted"]])},[((0,l.wg)(!0),(0,l.iD)(l.HY,null,(0,l.Ko)(e,((e,t)=>((0,l.wg)(),(0,l.j4)(M,{tile:e,typeValue:e.typeId,"onUpdate:typeValue":t=>e.typeId=t,id:e.x+"_"+e.y,class:(0,s.C_)({tileMl:0!=t?1:0}),key:t},null,8,["tile","typeValue","onUpdate:typeValue","id","class"])))),128))],2)])))),128))])):((0,l.wg)(),(0,l.iD)("span",r,[(0,l._)("div",n,[(0,l.Wm)(D,null,{default:(0,l.w5)((()=>[(0,l.Wm)(z,null,{default:(0,l.w5)((()=>[(0,l._)("div",d,[m,(0,l.Wm)(Q,null,{default:(0,l.w5)((()=>[(0,l.Wm)(C,{avatar:""},{default:(0,l.w5)((()=>[(0,l.Wm)(Y,{size:"30px",color:"secondary",name:"mdi-arrow-expand-horizontal"})])),_:1}),(0,l.Wm)(C,null,{default:(0,l.w5)((()=>[(0,l.Wm)(U,{modelValue:e.store.state.mapSizeX,"onUpdate:modelValue":t[0]||(t[0]=t=>e.store.state.mapSizeX=t),min:1,max:101,label:"",color:"secondary",step:1,"label-always":""},null,8,["modelValue"]),(0,l.Wm)(Z,{disable:e.$q.platform.is.mobile},{default:(0,l.w5)((()=>[u])),_:1},8,["disable"])])),_:1})])),_:1}),(0,l.Wm)(Q,null,{default:(0,l.w5)((()=>[(0,l.Wm)(C,{avatar:""},{default:(0,l.w5)((()=>[(0,l.Wm)(Y,{size:"30px",color:"secondary",name:"mdi-arrow-expand-vertical"})])),_:1}),(0,l.Wm)(C,null,{default:(0,l.w5)((()=>[(0,l.Wm)(U,{modelValue:e.store.state.mapSizeY,"onUpdate:modelValue":t[1]||(t[1]=t=>e.store.state.mapSizeY=t),min:1,max:101,label:"",color:"secondary",step:1,"label-always":""},null,8,["modelValue"]),(0,l.Wm)(Z,{disable:e.$q.platform.is.mobile},{default:(0,l.w5)((()=>[p])),_:1},8,["disable"])])),_:1})])),_:1}),(0,l.Wm)(X,{class:"q-mr-xs",color:"secondary",label:"Generate Empty Map",onClick:t[2]||(t[2]=t=>e.createMap())},{default:(0,l.w5)((()=>[(0,l.Wm)(Z,{disable:e.$q.platform.is.mobile},{default:(0,l.w5)((()=>[c])),_:1},8,["disable"])])),_:1})])])),_:1}),(0,l.Wm)(z,null,{default:(0,l.w5)((()=>[(0,l._)("div",f,[(0,l.Wm)(F,{color:"black",filled:"",modelValue:e.store.state.seed,"onUpdate:modelValue":t[5]||(t[5]=t=>e.store.state.seed=t),label:"Seed",type:"number",maxlength:"15"},{append:(0,l.w5)((()=>[(0,l.Wm)(Y,{name:"cancel",onClick:t[3]||(t[3]=(0,o.iM)((t=>e.store.state.seed=null),["stop"])),class:"cursor-pointer"}),(0,l.Wm)(Y,{name:"refresh",onClick:t[4]||(t[4]=(0,o.iM)((t=>e.store.state.seed=e.store.seedGenerator.random_int31()),["stop"])),class:"cursor-pointer"})])),default:(0,l.w5)((()=>[(0,l.Wm)(Z,{disable:e.$q.platform.is.mobile},{default:(0,l.w5)((()=>[w])),_:1},8,["disable"])])),_:1},8,["modelValue"]),(0,l.Wm)(X,{class:"q-mr-xs",color:"secondary",label:"Generate Random Map",onClick:t[6]||(t[6]=t=>e.createRandomMap())},{default:(0,l.w5)((()=>[(0,l.Wm)(Z,{disable:e.$q.platform.is.mobile},{default:(0,l.w5)((()=>[b])),_:1},8,["disable"])])),_:1})])])),_:1}),(0,l.Wm)(z,null,{default:(0,l.w5)((()=>[(0,l._)("div",h,[y,(0,l.Wm)(F,{modelValue:e.mapString,"onUpdate:modelValue":t[7]||(t[7]=t=>e.mapString=t),filled:"",placeholder:"Paste Map Data",type:"textarea","input-class":"pastCodeArea"},{default:(0,l.w5)((()=>[(0,l.Wm)(Z,{disable:e.$q.platform.is.mobile},{default:(0,l.w5)((()=>[_])),_:1},8,["disable"])])),_:1},8,["modelValue"]),(0,l.Wm)(X,{class:"q-mr-xs",color:"secondary",label:"Load Map From Filedata",onClick:t[8]||(t[8]=t=>e.loadMapData())},{default:(0,l.w5)((()=>[(0,l.Wm)(Z,{disable:e.$q.platform.is.mobile},{default:(0,l.w5)((()=>[g])),_:1},8,["disable"])])),_:1})])])),_:1}),(0,l.Wm)(z,null,{default:(0,l.w5)((()=>[(0,l._)("div",x,[v,(0,l.Wm)(I,{modelValue:e.file,"onUpdate:modelValue":t[9]||(t[9]=t=>e.file=t),label:"Pick one file",filled:"",clearable:"",accept:".json, application/*","max-file-size":"800000",style:{"max-width":"100%"},onRejected:e.onRejected},{default:(0,l.w5)((()=>[(0,l.Wm)(Z,{disable:e.$q.platform.is.mobile},{default:(0,l.w5)((()=>[W])),_:1},8,["disable"])])),_:1},8,["modelValue","onRejected"]),(0,l.Wm)(X,{class:"q-mr-xs",color:"secondary",label:"Load Map From Filedata",onClick:t[10]||(t[10]=t=>e.loadMapFile())},{default:(0,l.w5)((()=>[(0,l.Wm)(Z,{disable:e.$q.platform.is.mobile},{default:(0,l.w5)((()=>[k])),_:1},8,["disable"])])),_:1})])])),_:1})])),_:1})])]))}var V=a(1959);const S=["src"];function M(e,t,a,o,i,r){const n=(0,l.up)("q-avatar"),d=(0,l.up)("q-item-section"),m=(0,l.up)("q-item-label"),u=(0,l.up)("q-item"),p=(0,l.up)("q-list"),c=(0,l.up)("q-btn-dropdown"),f=(0,l.up)("q-tooltip"),w=(0,l.Q2)("close-popup");return(0,l.wg)(),(0,l.iD)("div",{id:"parent",class:(0,s.C_)(["hexagon",[a.tile.typeId,o.isViewRadiusBorder(),a.tile.x==o.store.state.centerX&&a.tile.y==o.store.state.centerY?"centerTile":""]])},[(0,l._)("div",{class:(0,s.C_)(["hexTop",a.tile.x==o.store.state.centerX&&a.tile.y==o.store.state.centerY?"centerTop":""])},null,2),(0,l._)("div",{class:(0,s.C_)(["hexBottom",a.tile.x==o.store.state.centerX&&a.tile.y==o.store.state.centerY?"centerBottom":""])},null,2),(0,l.Wm)(c,{class:"buttonshift without-icon custom-width",label:a.tile.typeId,align:"center",size:"11px","dropdown-icon":" ",modelValue:o.menuState,"onUpdate:modelValue":t[0]||(t[0]=e=>o.menuState=e)},{default:(0,l.w5)((()=>[(0,l.Wm)(p,null,{default:(0,l.w5)((()=>[((0,l.wg)(!0),(0,l.iD)(l.HY,null,(0,l.Ko)(o.types,(e=>(0,l.wy)(((0,l.wg)(),(0,l.j4)(u,{key:e,clickable:"",onClick:t=>r.setType(e)},{default:(0,l.w5)((()=>[(0,l.Wm)(d,{avatar:""},{default:(0,l.w5)((()=>[(0,l.Wm)(n,null,{default:(0,l.w5)((()=>[(0,l._)("img",{src:"./tiles/"+e+".webp"},null,8,S)])),_:2},1024)])),_:2},1024),(0,l.Wm)(d,null,{default:(0,l.w5)((()=>[(0,l.Wm)(m,null,{default:(0,l.w5)((()=>[(0,l.Uk)((0,s.zw)(e.toUpperCase()),1)])),_:2},1024)])),_:2},1024)])),_:2},1032,["onClick"])),[[w]]))),128))])),_:1})])),_:1},8,["label","modelValue"]),(0,l.Wm)(f,{disable:e.$q.platform.is.mobile},{default:(0,l.w5)((()=>[(0,l.Uk)((0,s.zw)(a.tile.x+"/"+a.tile.y+": "+a.tile.typeId),1)])),_:1},8,["disable"])],2)}const Y={props:{tile:Object,typeValue:String},setup(e){var t=["barren","clay","desert","fish","forest","grass","ice","iron","mountain","salt","stone","water","wheat","wool"];const a=(0,l.f3)("store"),s=function(){var t=[];return e.tile.x==this.store.state.centerX-this.store.state.radiusX+1&&this.store.state.centerY-this.store.state.radiusY+1<=e.tile.y&&e.tile.y<=this.store.state.centerY+this.store.state.radiusY-1&&t.push("viewBorderLeft"),e.tile.x==this.store.state.centerX+this.store.state.radiusX-1&&this.store.state.centerY-this.store.state.radiusY+1<=e.tile.y&&e.tile.y<=this.store.state.centerY+this.store.state.radiusY-1&&t.push("viewBorderRight"),e.tile.y==this.store.state.centerY+this.store.state.radiusY-1&&this.store.state.centerX-this.store.state.radiusX+1<=e.tile.x&&e.tile.x<=this.store.state.centerX+this.store.state.radiusX-1&&t.push("viewBorderTop"),e.tile.y==this.store.state.centerY-this.store.state.radiusY+1&&this.store.state.centerX-this.store.state.radiusX+1<=e.tile.x&&e.tile.x<=this.store.state.centerX+this.store.state.radiusX-1&&t.push("viewBorderBottom"),t};return{isViewRadiusBorder:s,store:a,types:t,menuState:(0,V.iH)(!1),label:"grass",color:"green-8",textcolor:"white",backgroundImage:"background-image: url(./tiles/grass_tile.webp);"}},emits:["update:typeValue"],updated(){},methods:{setType(e){this.$emit("update:typeValue",e)}}};var C=a(4858),U=a(7011),Z=a(3414),Q=a(2035),X=a(5096),z=a(2350),F=a(8870),I=a(677),D=a(7518),R=a.n(D);Y.render=M;const T=Y;R()(Y,"components",{QBtnDropdown:C.Z,QList:U.Z,QItem:Z.Z,QItemSection:Q.Z,QAvatar:X.Z,QItemLabel:z.Z,QTooltip:F.Z}),R()(Y,"directives",{ClosePopup:I.Z});var $=a(8825);const B=(0,l.aZ)({setup(){const e=(0,l.f3)("store"),t=(0,$.Z)();var a=(0,V.iH)("");const s=function(a){let l;try{l=JSON.parse(a)}catch(s){return void(s instanceof SyntaxError?t.notify({type:"negative",message:"Input is not a valid JSON"}):(t.notify({type:"negative",message:"An unknown error occured"}),console.log(s)))}this.file=null,this.mapString=null,e.methods.loadMap(l)},o=function(){this.parseJsonFromString(a.value)},i=function(){const e=new FileReader;e.onload=e=>this.parseJsonFromString(e.target.result),e.readAsText(this.file)},r=function(){e.methods.generateMap()},n=function(){e.methods.generateRandomMap()},d=function(e){t.notify({type:"negative",message:`${e[0].file.name}-file did not pass validation constraints. The file is either too big or not a valid JSON.`})};return{parseJsonFromString:s,file:(0,V.iH)(null),mapString:a,store:e,createMap:r,createRandomMap:n,loadMapData:o,loadMapFile:i,onRejected:d}},methods:{},components:{Tile:T}});var j=a(151),L=a(5589),H=a(4554),J=a(2064),G=a(2165),N=a(5855),O=a(4816);B.render=q;const A=B;R()(B,"components",{QCard:j.Z,QCardSection:L.Z,QItem:Z.Z,QItemSection:Q.Z,QIcon:H.Z,QSlider:J.Z,QTooltip:F.Z,QBtn:G.Z,QInput:N.Z,QFile:O.Z})}}]);
\ No newline at end of file
"use strict";(self["webpackChunkltt_mapmaker"]=self["webpackChunkltt_mapmaker"]||[]).push([[467],{5467:(e,t,a)=>{a.r(t),a.d(t,{default:()=>R});var s=a(3673),l=a(2323),o=a(8880);const r={key:0},i={key:1},n={class:"row no-wrap q-pa-md absolute-center"},d={class:"column",style:{width:"600px"}},u=(0,s._)("div",{class:"text-h6 q-mb-md text-black"},"New Map Dimensions",-1),p=(0,s.Uk)(" Generate empty map with size set above "),m={class:"column",style:{width:"600px"}},c=(0,s.Uk)(" Generate random map with size set above "),w={class:"column"},h=(0,s._)("div",{class:"text-h6 q-mb-md text-black"},"Load Existing Map",-1),f=(0,s.Uk)(" Load Map From Data ");function y(e,t,a,y,b,_){const x=(0,s.up)("Tile"),v=(0,s.up)("q-icon"),W=(0,s.up)("q-item-section"),g=(0,s.up)("q-slider"),k=(0,s.up)("q-item"),q=(0,s.up)("q-tooltip"),V=(0,s.up)("q-btn"),M=(0,s.up)("q-card-section"),Y=(0,s.up)("q-input"),C=(0,s.up)("q-card");return e.store.state.lttMap?((0,s.wg)(),(0,s.iD)("span",r,[((0,s.wg)(!0),(0,s.iD)(s.HY,null,(0,s.Ko)(e.store.state.lttMap,((e,t)=>((0,s.wg)(),(0,s.iD)("span",{key:t},[(0,s._)("div",{class:(0,l.C_)(["row no-wrap",[{firstRow:0==t,moveup:0!=t},0==t||t%2?"notShifted":"shifted"]])},[((0,s.wg)(!0),(0,s.iD)(s.HY,null,(0,s.Ko)(e,((e,t)=>((0,s.wg)(),(0,s.j4)(x,{tile:e,typeValue:e.typeId,"onUpdate:typeValue":t=>e.typeId=t,id:e.x+"_"+e.y,class:(0,l.C_)({tileMl:0!=t?1:0}),key:t},null,8,["tile","typeValue","onUpdate:typeValue","id","class"])))),128))],2)])))),128))])):((0,s.wg)(),(0,s.iD)("span",i,[(0,s._)("div",n,[(0,s.Wm)(C,null,{default:(0,s.w5)((()=>[(0,s.Wm)(M,null,{default:(0,s.w5)((()=>[(0,s._)("div",d,[u,(0,s.Wm)(k,null,{default:(0,s.w5)((()=>[(0,s.Wm)(W,{avatar:""},{default:(0,s.w5)((()=>[(0,s.Wm)(v,{size:"30px",color:"secondary",name:"mdi-arrow-expand-horizontal"})])),_:1}),(0,s.Wm)(W,null,{default:(0,s.w5)((()=>[(0,s.Wm)(g,{modelValue:e.store.state.mapSizeX,"onUpdate:modelValue":t[0]||(t[0]=t=>e.store.state.mapSizeX=t),min:1,max:101,label:"",color:"secondary",step:1,"label-always":""},null,8,["modelValue"])])),_:1})])),_:1}),(0,s.Wm)(k,null,{default:(0,s.w5)((()=>[(0,s.Wm)(W,{avatar:""},{default:(0,s.w5)((()=>[(0,s.Wm)(v,{size:"30px",color:"secondary",name:"mdi-arrow-expand-vertical"})])),_:1}),(0,s.Wm)(W,null,{default:(0,s.w5)((()=>[(0,s.Wm)(g,{modelValue:e.store.state.mapSizeY,"onUpdate:modelValue":t[1]||(t[1]=t=>e.store.state.mapSizeY=t),min:1,max:101,label:"",color:"secondary",step:1,"label-always":""},null,8,["modelValue"])])),_:1})])),_:1}),(0,s.Wm)(V,{class:"q-mr-xs",color:"secondary",label:"Generate Empty Map",onClick:t[2]||(t[2]=t=>e.createMap())},{default:(0,s.w5)((()=>[(0,s.Wm)(q,{disable:e.$q.platform.is.mobile},{default:(0,s.w5)((()=>[p])),_:1},8,["disable"])])),_:1})])])),_:1}),(0,s.Wm)(M,null,{default:(0,s.w5)((()=>[(0,s._)("div",m,[(0,s.Wm)(Y,{color:"black",filled:"",modelValue:e.store.state.seed,"onUpdate:modelValue":t[5]||(t[5]=t=>e.store.state.seed=t),label:"Seed",type:"number",maxlength:"15"},{append:(0,s.w5)((()=>[(0,s.Wm)(v,{name:"cancel",onClick:t[3]||(t[3]=(0,o.iM)((t=>e.store.state.seed=null),["stop"])),class:"cursor-pointer"}),(0,s.Wm)(v,{name:"refresh",onClick:t[4]||(t[4]=(0,o.iM)((t=>e.store.state.seed=e.store.seedGenerator.random_int31()),["stop"])),class:"cursor-pointer"})])),_:1},8,["modelValue"]),(0,s.Wm)(V,{class:"q-mr-xs",color:"secondary",label:"Generate Random Map",onClick:t[6]||(t[6]=t=>e.createRandomMap())},{default:(0,s.w5)((()=>[(0,s.Wm)(q,{disable:e.$q.platform.is.mobile},{default:(0,s.w5)((()=>[c])),_:1},8,["disable"])])),_:1})])])),_:1}),(0,s.Wm)(M,null,{default:(0,s.w5)((()=>[(0,s._)("div",w,[h,(0,s.Wm)(Y,{modelValue:e.mapString,"onUpdate:modelValue":t[7]||(t[7]=t=>e.mapString=t),filled:"",placeholder:"Paste Map Data",type:"textarea","input-class":"pastCodeArea"},null,8,["modelValue"]),(0,s.Wm)(V,{class:"q-mr-xs",color:"secondary",label:"Load Map From Filedata",onClick:t[8]||(t[8]=t=>e.loadMapData())},{default:(0,s.w5)((()=>[(0,s.Wm)(q,{disable:e.$q.platform.is.mobile},{default:(0,s.w5)((()=>[f])),_:1},8,["disable"])])),_:1})])])),_:1})])),_:1})])]))}var b=a(1959);const _=["src"];function x(e,t,a,o,r,i){const n=(0,s.up)("q-avatar"),d=(0,s.up)("q-item-section"),u=(0,s.up)("q-item-label"),p=(0,s.up)("q-item"),m=(0,s.up)("q-list"),c=(0,s.up)("q-btn-dropdown"),w=(0,s.up)("q-tooltip"),h=(0,s.Q2)("close-popup");return(0,s.wg)(),(0,s.iD)("div",{id:"parent",class:(0,l.C_)(["hexagon",[a.tile.typeId,o.isViewRadiusBorder(),a.tile.x==o.store.state.centerX&&a.tile.y==o.store.state.centerY?"centerTile":""]])},[(0,s._)("div",{class:(0,l.C_)(["hexTop",a.tile.x==o.store.state.centerX&&a.tile.y==o.store.state.centerY?"centerTop":""])},null,2),(0,s._)("div",{class:(0,l.C_)(["hexBottom",a.tile.x==o.store.state.centerX&&a.tile.y==o.store.state.centerY?"centerBottom":""])},null,2),(0,s.Wm)(c,{class:"buttonshift without-icon custom-width",label:a.tile.typeId,align:"center",size:"11px","dropdown-icon":" ",modelValue:o.menuState,"onUpdate:modelValue":t[0]||(t[0]=e=>o.menuState=e)},{default:(0,s.w5)((()=>[(0,s.Wm)(m,null,{default:(0,s.w5)((()=>[((0,s.wg)(!0),(0,s.iD)(s.HY,null,(0,s.Ko)(o.types,(e=>(0,s.wy)(((0,s.wg)(),(0,s.j4)(p,{key:e,clickable:"",onClick:t=>i.setType(e)},{default:(0,s.w5)((()=>[(0,s.Wm)(d,{avatar:""},{default:(0,s.w5)((()=>[(0,s.Wm)(n,null,{default:(0,s.w5)((()=>[(0,s._)("img",{src:"./tiles/"+e+".webp"},null,8,_)])),_:2},1024)])),_:2},1024),(0,s.Wm)(d,null,{default:(0,s.w5)((()=>[(0,s.Wm)(u,null,{default:(0,s.w5)((()=>[(0,s.Uk)((0,l.zw)(e.toUpperCase()),1)])),_:2},1024)])),_:2},1024)])),_:2},1032,["onClick"])),[[h]]))),128))])),_:1})])),_:1},8,["label","modelValue"]),(0,s.Wm)(w,{disable:e.$q.platform.is.mobile},{default:(0,s.w5)((()=>[(0,s.Uk)((0,l.zw)(a.tile.x+"/"+a.tile.y+": "+a.tile.typeId),1)])),_:1},8,["disable"])],2)}const v={props:{tile:Object,typeValue:String},setup(e){var t=["barren","clay","desert","fish","forest","grass","ice","iron","mountain","salt","stone","water","wheat","wool"];const a=(0,s.f3)("store"),l=function(){var t=[];return e.tile.x==this.store.state.centerX-this.store.state.radiusX+1&&this.store.state.centerY-this.store.state.radiusY+1<=e.tile.y&&e.tile.y<=this.store.state.centerY+this.store.state.radiusY-1&&t.push("viewBorderLeft"),e.tile.x==this.store.state.centerX+this.store.state.radiusX-1&&this.store.state.centerY-this.store.state.radiusY+1<=e.tile.y&&e.tile.y<=this.store.state.centerY+this.store.state.radiusY-1&&t.push("viewBorderRight"),e.tile.y==this.store.state.centerY+this.store.state.radiusY-1&&this.store.state.centerX-this.store.state.radiusX+1<=e.tile.x&&e.tile.x<=this.store.state.centerX+this.store.state.radiusX-1&&t.push("viewBorderTop"),e.tile.y==this.store.state.centerY-this.store.state.radiusY+1&&this.store.state.centerX-this.store.state.radiusX+1<=e.tile.x&&e.tile.x<=this.store.state.centerX+this.store.state.radiusX-1&&t.push("viewBorderBottom"),t};return{isViewRadiusBorder:l,store:a,types:t,menuState:(0,b.iH)(!1),label:"grass",color:"green-8",textcolor:"white",backgroundImage:"background-image: url(./tiles/grass_tile.webp);"}},emits:["update:typeValue"],updated(){},methods:{setType(e){this.$emit("update:typeValue",e)}}};var W=a(4858),g=a(7011),k=a(3414),q=a(2035),V=a(5096),M=a(2350),Y=a(8870),C=a(677),S=a(7518),Z=a.n(S);v.render=x;const Q=v;Z()(v,"components",{QBtnDropdown:W.Z,QList:g.Z,QItem:k.Z,QItemSection:q.Z,QAvatar:V.Z,QItemLabel:M.Z,QTooltip:Y.Z}),Z()(v,"directives",{ClosePopup:C.Z});const X=(0,s.aZ)({setup(){const e=(0,s.f3)("store");var t=(0,b.iH)("");const a=function(){e.methods.loadMap(JSON.parse(t.value))},l=function(){e.methods.generateMap()},o=function(){e.methods.generateRandomMap()};return{mapString:t,store:e,createMap:l,createRandomMap:o,loadMapData:a}},methods:{},components:{Tile:Q}});var D=a(151),I=a(5589),U=a(4554),z=a(2064),B=a(2165),T=a(4196);X.render=y;const R=X;Z()(X,"components",{QCard:D.Z,QCardSection:I.Z,QItem:k.Z,QItemSection:q.Z,QIcon:U.Z,QSlider:z.Z,QBtn:B.Z,QTooltip:Y.Z,QInput:T.Z})}}]);
\ No newline at end of file
(()=>{"use strict";var e={3201:(e,t,a)=>{var i=a(8880),r=(a(71),a(9592)),n=a(3673);function o(e,t,a,i,r,o){const l=(0,n.up)("router-view");return(0,n.wg)(),(0,n.j4)(l)}var l=a(4584);const s=(0,n.aZ)({name:"App",setup(){(0,n.JJ)("store",l["default"])}});s.render=o;const m=s;var u=a(7083),c=a(9582);const p=[{path:"/",component:()=>Promise.all([a.e(736),a.e(242)]).then(a.bind(a,1242)),children:[{path:"",component:()=>Promise.all([a.e(736),a.e(467)]).then(a.bind(a,5467))}]},{path:"/:catchAll(.*)*",component:()=>Promise.all([a.e(736),a.e(242)]).then(a.bind(a,1242)),children:[{path:"",component:()=>Promise.all([a.e(736),a.e(193)]).then(a.bind(a,2193))}]}],g=p,d=(0,u.BC)((function(){const e=c.r5,t=(0,c.p7)({scrollBehavior:()=>({left:0,top:0}),routes:g,history:e("")});return t}));async function h(e,t){const i="function"===typeof l["default"]?await(0,l["default"])({}):l["default"],{storeKey:n}=await Promise.resolve().then(a.bind(a,4584)),o="function"===typeof d?await d({store:i}):d;i.$router=o;const s=e(m);return s.use(r.Z,t),{app:s,store:i,storeKey:n,router:o}}var f=a(2426),S=a(7760),y=a(4434),v=a(6249),b=a(8416);const M={config:{brand:{primary:"#325358",secondary:"#54a896",accent:"#6a1a78",dark:"#1d1d1d",positive:"#21BA45",negative:"#C10015",info:"#31CCEC",warning:"#cea32b"}},lang:f.Z,iconSet:S.Z,plugins:{Notify:y.Z,Loading:v.Z,AppFullscreen:b.Z}};async function C({app:e,router:t,store:a,storeKey:i}){e.use(t),e.use(a,i),e.mount("#q-app")}h(i.ri,M).then(C)},4584:(e,t,a)=>{a.r(t),a.d(t,{default:()=>p});a(9377),a(7098);var i=a(1959),r=a(7482),n=a.n(r),o=a(7996),l=a.n(o);const s=new(l()),m=(0,i.qj)({maxX:0,minX:0,maxY:0,minY:0,mapSizeX:50,mapSizeY:30,centerX:0,centerY:0,radiusY:5,radiusX:5,mapID:"e1-m.lttmm",mapName:"",lttMap:null,seed:(0,i.iH)(s.random_int31())}),u=["Adding","Hidden","Agendas","Adjusting","Bell","Curves","Aesthesizing","Industrial","Areas","Aligning","Covariance","Matrices","Applying","Feng","Shui","Shaders","Applying","Theatre","Soda","Layer","Asserting","Packed","Exemplars","Attempting","to","Lock","Back-Buffer","Binding","Sapling","Root","System","Breeding","Fauna","Building","Data","Trees","Bureacritizing","Bureaucracies","Calculating","Inverse","Probability","Matrices","Calculating","Llama","Expectoration","Trajectory","Calibrating","Blue","Skies","Charging","Ozone","Layer","Coalescing","Cloud","Formations","Cohorting","Exemplars","Collecting","Meteor","Particles","Compounding","Inert","Tessellations","Compressing","Fish","Files","Computing","Optimal","Bin","Packing","Concatenating","Sub-Contractors","Containing","Existential","Buffer","Debarking","Ark","Ramp","Debunching","Unionized","Commercial","Services","Deciding","What","Message","to","Display","Next","Decomposing","Singular","Values","Decrementing","Tectonic","Plates","Deleting","Ferry","Routes","Depixelating","Inner","Mountain","Surface","Back","Faces","Depositing","Slush","Funds","Destabilizing","Economic","Indicators","Determining","Width","of","Blast","Fronts","Deunionizing","Bulldozers","Dicing","Models","Diluting","Livestock","Nutrition","Variables","Downloading","Satellite","Terrain","Data","Exposing","Flash","Variables","to","Streak","System","Extracting","Resources","Factoring","Pay","Scale","Fixing","Election","Outcome","Matrix","Flood-Filling","Ground","Water","Flushing","Pipe","Network","Gathering","Particle","Sources","Generating","Jobs","Gesticulating","Mimes","Graphing","Whale","Migration","Hiding","Willio","Webnet","Mask","Implementing","Impeachment","Routine","Increasing","Accuracy","of","RCI","Simulators","Increasing","Magmafacation","Initializing","My","Sim","Tracking","Mechanism","Initializing","Rhinoceros","Breeding","Timetable","Initializing","Robotic","Click-Path","AI","Inserting","Sublimated","Messages","Integrating","Curves","Integrating","Illumination","Form","Factors","Integrating","Population","Graphs","Iterating","Cellular","Automata","Lecturing","Errant","Subsystems","Mixing","Genetic","Pool","Modeling","Object","Components","Mopping","Occupant","Leaks","Normalizing","Power","Obfuscating","Quigley","Matrix","Overconstraining","Dirty","Industry","Calculations","Partitioning","City","Grid","Singularities","Perturbing","Matrices","Pixalating","Nude","Patch","Polishing","Water","Highlights","Populating","Lot","Templates","Preparing","Sprites","for","Random","Walks","Prioritizing","Landmarks","Projecting","Law","Enforcement","Pastry","Intake","Realigning","Alternate","Time","Frames","Reconfiguring","User","Mental","Processes","Relaxing","Splines","Removing","Road","Network","Speed","Bumps","Removing","Texture","Gradients","Removing","Vehicle","Avoidance","Behavior","Resolving","GUID","Conflict","Retracting","Phong","Shader","Retrieving","from","Back","Store","Reverse","Engineering","Image","Consultant","Routing","Neural","Network","Infanstructure","Scattering","Rhino","Food","Sources","Scrubbing","Terrain","Searching","for","Llamas","Seeding","Architecture","Simulation","Parameters","Sequencing","Particles","Setting","Advisor","Moods","Setting","Inner","Deity","Indicators","Setting","Universal","Physical","Constants","Sonically","Enhancing","Occupant-Free","Timber","Speculating","Stock","Market","Indices","Splatting","Transforms","Stratifying","Ground","Layers","Sub-Sampling","Water","Data","Synthesizing","Gravity","Synthesizing","Wavelets","Time-Compressing","Simulator","Clock","Unable","to","Reveal","Current","Activity","Weathering","Buildings","Zeroing","Crime","Network","Reticulating","Splines"],c={reset(){m.mapSizeX=50,m.mapSizeY=30,m.centerX=0,m.centerY=0,m.radiusY=5,m.radiusX=5,m.mapID="e1-m.lttmm",m.mapName="",m.lttMap=null,m.seed=(0,i.iH)(s.random_int31())},exportMap(){return{mapID:m.mapID,mapName:m.mapName,initialViewRadiusX:m.centerX,initialViewRadiusY:m.centerY,initialVieCenterX:m.radiusX,initialViewCenterY:m.radiusY,tileSet:m.lttMap.flat()}},loadMap(e){let t=this.getMultDimArrayFromFlattendArray(e.tileSet);m.mapID=e.mapID,m.mapName=e.mapName,m.mapSizeX=t.mapSizeX,m.mapSizeY=t.mapSizeY,m.lttMap=t.map,m.maxX=t.maxX,m.minX=t.minX,m.maxY=t.maxY,m.minY=t.minY,m.radiusX=e.initialViewRadiusX,m.radiusY=e.initialViewRadiusY,m.centerX=e.initialViewCenterX,m.centerY=e.initialViewCenterY},getMultDimArrayFromFlattendArray(e){let t,a,i,r,n,o,l=e.sort(((e,t)=>e.y==t.y?e.x-t.x:t.y-e.y)),s=l.length;a=l[0].x,i=l[0].y,r=l[s-1].y,t=l[s-1].x,n=Math.abs(a)+Math.abs(t)+1,o=Math.abs(r)+Math.abs(i)+1;let m=[];for(let u=0;u<o;u++){let e=[];for(let t=0;t<n;t++)e.push(l[u*n+t]);m.push(e)}return{mapSizeX:n,mapSizeY:o,maxX:t,minX:a,maxY:i,minY:r,map:m}},getMapName(){return u[Math.floor(Math.random()*u.length)-1]+" "+u[Math.floor(Math.random()*u.length)-1]+" "+u[Math.floor(Math.random()*u.length)-1]},getMapId(){return"e1-m.lttmm"},generateMap(){let e="grass",t=[];m.minX=-Math.floor(m.mapSizeX/2),m.mapSizeX%2?m.maxX=Math.floor(m.mapSizeX/2):m.maxX=Math.floor(m.mapSizeX/2)+1,m.minY=-Math.floor(m.mapSizeY/2),m.mapSizeY%2?m.maxY=Math.floor(m.mapSizeY/2):m.maxY=Math.floor(m.mapSizeY/2)+1;for(let a=m.maxY;a>=m.minY;a--){let i=[];for(let t=m.minX;t<=m.maxX;t++)i.push({x:t,y:a,z:0,typeId:e});t.push(i)}m.lttMap=t,m.mapName=this.getMapName()},generateRandomMap(){let e=[];const t=new(n().MapGenerator)(m.seed);m.minX=-Math.floor(m.mapSizeX/2),m.mapSizeX%2?m.maxX=Math.floor(m.mapSizeX/2):m.maxX=Math.floor(m.mapSizeX/2)+1,m.minY=-Math.floor(m.mapSizeY/2),m.mapSizeY%2?m.maxY=Math.floor(m.mapSizeY/2):m.maxY=Math.floor(m.mapSizeY/2)+1;const a=t.createMap(m.mapSizeX+2,m.mapSizeY+2,{type:"perlit"});a.stepValues(5);for(let i=m.maxY;i>=m.minY;i--){let t=[];for(let e=m.minX;e<=m.maxX;e++)t.push({x:e,y:i,z:0,typeId:this.getTileTypeFromHeightmap(a,e+m.mapSizeX/2,i+m.mapSizeY/2)});e.push(t)}m.lttMap=e,m.mapName=this.getMapName()},getTileTypeFromHeightmap(e,t,a){let i=Math.floor(100*e.get(t,a));switch(i){case 100:return"mountain";case 80:return"ice";case 60:return"barren";case 40:return"desert";case 20:return"grass";case 0:return"water";default:return"grass"}}},p={state:m,methods:c,seedGenerator:s}}},t={};function a(i){var r=t[i];if(void 0!==r)return r.exports;var n=t[i]={exports:{}};return e[i].call(n.exports,n,n.exports,a),n.exports}a.m=e,(()=>{var e=[];a.O=(t,i,r,n)=>{if(!i){var o=1/0;for(u=0;u<e.length;u++){for(var[i,r,n]=e[u],l=!0,s=0;s<i.length;s++)(!1&n||o>=n)&&Object.keys(a.O).every((e=>a.O[e](i[s])))?i.splice(s--,1):(l=!1,n<o&&(o=n));if(l){e.splice(u--,1);var m=r();void 0!==m&&(t=m)}}return t}n=n||0;for(var u=e.length;u>0&&e[u-1][2]>n;u--)e[u]=e[u-1];e[u]=[i,r,n]}})(),(()=>{a.n=e=>{var t=e&&e.__esModule?()=>e["default"]:()=>e;return a.d(t,{a:t}),t}})(),(()=>{a.d=(e,t)=>{for(var i in t)a.o(t,i)&&!a.o(e,i)&&Object.defineProperty(e,i,{enumerable:!0,get:t[i]})}})(),(()=>{a.f={},a.e=e=>Promise.all(Object.keys(a.f).reduce(((t,i)=>(a.f[i](e,t),t)),[]))})(),(()=>{a.u=e=>"js/"+e+"."+{193:"d137f76d",242:"92981874",467:"90ad987c"}[e]+".js"})(),(()=>{a.miniCssF=e=>"css/"+({143:"app",736:"vendor"}[e]||e)+"."+{143:"31d6cfe0",242:"ae1374a5",467:"201f2e5f",736:"e1411231"}[e]+".css"})(),(()=>{a.g=function(){if("object"===typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"===typeof window)return window}}()})(),(()=>{a.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t)})(),(()=>{var e={},t="ltt-mapmaker:";a.l=(i,r,n,o)=>{if(e[i])e[i].push(r);else{var l,s;if(void 0!==n)for(var m=document.getElementsByTagName("script"),u=0;u<m.length;u++){var c=m[u];if(c.getAttribute("src")==i||c.getAttribute("data-webpack")==t+n){l=c;break}}l||(s=!0,l=document.createElement("script"),l.charset="utf-8",l.timeout=120,a.nc&&l.setAttribute("nonce",a.nc),l.setAttribute("data-webpack",t+n),l.src=i),e[i]=[r];var p=(t,a)=>{l.onerror=l.onload=null,clearTimeout(g);var r=e[i];if(delete e[i],l.parentNode&&l.parentNode.removeChild(l),r&&r.forEach((e=>e(a))),t)return t(a)},g=setTimeout(p.bind(null,void 0,{type:"timeout",target:l}),12e4);l.onerror=p.bind(null,l.onerror),l.onload=p.bind(null,l.onload),s&&document.head.appendChild(l)}}})(),(()=>{a.r=e=>{"undefined"!==typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})}})(),(()=>{a.p=""})(),(()=>{var e=(e,t,a,i)=>{var r=document.createElement("link");r.rel="stylesheet",r.type="text/css";var n=n=>{if(r.onerror=r.onload=null,"load"===n.type)a();else{var o=n&&("load"===n.type?"missing":n.type),l=n&&n.target&&n.target.href||t,s=new Error("Loading CSS chunk "+e+" failed.\n("+l+")");s.code="CSS_CHUNK_LOAD_FAILED",s.type=o,s.request=l,r.parentNode.removeChild(r),i(s)}};return r.onerror=r.onload=n,r.href=t,document.head.appendChild(r),r},t=(e,t)=>{for(var a=document.getElementsByTagName("link"),i=0;i<a.length;i++){var r=a[i],n=r.getAttribute("data-href")||r.getAttribute("href");if("stylesheet"===r.rel&&(n===e||n===t))return r}var o=document.getElementsByTagName("style");for(i=0;i<o.length;i++){r=o[i],n=r.getAttribute("data-href");if(n===e||n===t)return r}},i=i=>new Promise(((r,n)=>{var o=a.miniCssF(i),l=a.p+o;if(t(o,l))return r();e(i,l,r,n)})),r={143:0};a.f.miniCss=(e,t)=>{var a={242:1,467:1};r[e]?t.push(r[e]):0!==r[e]&&a[e]&&t.push(r[e]=i(e).then((()=>{r[e]=0}),(t=>{throw delete r[e],t})))}})(),(()=>{var e={143:0};a.f.j=(t,i)=>{var r=a.o(e,t)?e[t]:void 0;if(0!==r)if(r)i.push(r[2]);else{var n=new Promise(((a,i)=>r=e[t]=[a,i]));i.push(r[2]=n);var o=a.p+a.u(t),l=new Error,s=i=>{if(a.o(e,t)&&(r=e[t],0!==r&&(e[t]=void 0),r)){var n=i&&("load"===i.type?"missing":i.type),o=i&&i.target&&i.target.src;l.message="Loading chunk "+t+" failed.\n("+n+": "+o+")",l.name="ChunkLoadError",l.type=n,l.request=o,r[1](l)}};a.l(o,s,"chunk-"+t,t)}},a.O.j=t=>0===e[t];var t=(t,i)=>{var r,n,[o,l,s]=i,m=0;if(o.some((t=>0!==e[t]))){for(r in l)a.o(l,r)&&(a.m[r]=l[r]);if(s)var u=s(a)}for(t&&t(i);m<o.length;m++)n=o[m],a.o(e,n)&&e[n]&&e[n][0](),e[o[m]]=0;return a.O(u)},i=self["webpackChunkltt_mapmaker"]=self["webpackChunkltt_mapmaker"]||[];i.forEach(t.bind(null,0)),i.push=t.bind(null,i.push.bind(i))})();var i=a.O(void 0,[736],(()=>a(3201)));i=a.O(i)})();
\ No newline at end of file
(()=>{"use strict";var e={3201:(e,t,a)=>{var i=a(8880),r=(a(71),a(9592)),n=a(3673);function o(e,t,a,i,r,o){const l=(0,n.up)("router-view");return(0,n.wg)(),(0,n.j4)(l)}var l=a(4584);const s=(0,n.aZ)({name:"App",setup(){(0,n.JJ)("store",l["default"])}});s.render=o;const m=s;var u=a(7083),c=a(9582);const p=[{path:"/",component:()=>Promise.all([a.e(736),a.e(242)]).then(a.bind(a,1242)),children:[{path:"",component:()=>Promise.all([a.e(736),a.e(302)]).then(a.bind(a,6302))}]},{path:"/:catchAll(.*)*",component:()=>Promise.all([a.e(736),a.e(242)]).then(a.bind(a,1242)),children:[{path:"",component:()=>Promise.all([a.e(736),a.e(193)]).then(a.bind(a,2193))}]}],g=p,d=(0,u.BC)((function(){const e=c.r5,t=(0,c.p7)({scrollBehavior:()=>({left:0,top:0}),routes:g,history:e("")});return t}));async function h(e,t){const i="function"===typeof l["default"]?await(0,l["default"])({}):l["default"],{storeKey:n}=await Promise.resolve().then(a.bind(a,4584)),o="function"===typeof d?await d({store:i}):d;i.$router=o;const s=e(m);return s.use(r.Z,t),{app:s,store:i,storeKey:n,router:o}}var f=a(2426),S=a(7760),y=a(4434),v=a(6249),b=a(8416);const M={config:{brand:{primary:"#325358",secondary:"#54a896",accent:"#6a1a78",dark:"#1d1d1d",positive:"#21BA45",negative:"#C10015",info:"#31CCEC",warning:"#cea32b"}},lang:f.Z,iconSet:S.Z,plugins:{Notify:y.Z,Loading:v.Z,AppFullscreen:b.Z}};async function C({app:e,router:t,store:a,storeKey:i}){e.use(t),e.use(a,i),e.mount("#q-app")}h(i.ri,M).then(C)},4584:(e,t,a)=>{a.r(t),a.d(t,{default:()=>p});a(9377),a(7098);var i=a(1959),r=a(7482),n=a.n(r),o=a(7996),l=a.n(o);const s=new(l()),m=(0,i.qj)({maxX:0,minX:0,maxY:0,minY:0,mapSizeX:50,mapSizeY:30,centerX:0,centerY:0,radiusY:5,radiusX:5,mapID:"e1-m.lttmm",mapName:"",lttMap:null,seed:(0,i.iH)(s.random_int31())}),u=["Adding","Hidden","Agendas","Adjusting","Bell","Curves","Aesthesizing","Industrial","Areas","Aligning","Covariance","Matrices","Applying","Feng","Shui","Shaders","Applying","Theatre","Soda","Layer","Asserting","Packed","Exemplars","Attempting","to","Lock","Back-Buffer","Binding","Sapling","Root","System","Breeding","Fauna","Building","Data","Trees","Bureacritizing","Bureaucracies","Calculating","Inverse","Probability","Matrices","Calculating","Llama","Expectoration","Trajectory","Calibrating","Blue","Skies","Charging","Ozone","Layer","Coalescing","Cloud","Formations","Cohorting","Exemplars","Collecting","Meteor","Particles","Compounding","Inert","Tessellations","Compressing","Fish","Files","Computing","Optimal","Bin","Packing","Concatenating","Sub-Contractors","Containing","Existential","Buffer","Debarking","Ark","Ramp","Debunching","Unionized","Commercial","Services","Deciding","What","Message","to","Display","Next","Decomposing","Singular","Values","Decrementing","Tectonic","Plates","Deleting","Ferry","Routes","Depixelating","Inner","Mountain","Surface","Back","Faces","Depositing","Slush","Funds","Destabilizing","Economic","Indicators","Determining","Width","of","Blast","Fronts","Deunionizing","Bulldozers","Dicing","Models","Diluting","Livestock","Nutrition","Variables","Downloading","Satellite","Terrain","Data","Exposing","Flash","Variables","to","Streak","System","Extracting","Resources","Factoring","Pay","Scale","Fixing","Election","Outcome","Matrix","Flood-Filling","Ground","Water","Flushing","Pipe","Network","Gathering","Particle","Sources","Generating","Jobs","Gesticulating","Mimes","Graphing","Whale","Migration","Hiding","Willio","Webnet","Mask","Implementing","Impeachment","Routine","Increasing","Accuracy","of","RCI","Simulators","Increasing","Magmafacation","Initializing","My","Sim","Tracking","Mechanism","Initializing","Rhinoceros","Breeding","Timetable","Initializing","Robotic","Click-Path","AI","Inserting","Sublimated","Messages","Integrating","Curves","Integrating","Illumination","Form","Factors","Integrating","Population","Graphs","Iterating","Cellular","Automata","Lecturing","Errant","Subsystems","Mixing","Genetic","Pool","Modeling","Object","Components","Mopping","Occupant","Leaks","Normalizing","Power","Obfuscating","Quigley","Matrix","Overconstraining","Dirty","Industry","Calculations","Partitioning","City","Grid","Singularities","Perturbing","Matrices","Pixalating","Nude","Patch","Polishing","Water","Highlights","Populating","Lot","Templates","Preparing","Sprites","for","Random","Walks","Prioritizing","Landmarks","Projecting","Law","Enforcement","Pastry","Intake","Realigning","Alternate","Time","Frames","Reconfiguring","User","Mental","Processes","Relaxing","Splines","Removing","Road","Network","Speed","Bumps","Removing","Texture","Gradients","Removing","Vehicle","Avoidance","Behavior","Resolving","GUID","Conflict","Retracting","Phong","Shader","Retrieving","from","Back","Store","Reverse","Engineering","Image","Consultant","Routing","Neural","Network","Infanstructure","Scattering","Rhino","Food","Sources","Scrubbing","Terrain","Searching","for","Llamas","Seeding","Architecture","Simulation","Parameters","Sequencing","Particles","Setting","Advisor","Moods","Setting","Inner","Deity","Indicators","Setting","Universal","Physical","Constants","Sonically","Enhancing","Occupant-Free","Timber","Speculating","Stock","Market","Indices","Splatting","Transforms","Stratifying","Ground","Layers","Sub-Sampling","Water","Data","Synthesizing","Gravity","Synthesizing","Wavelets","Time-Compressing","Simulator","Clock","Unable","to","Reveal","Current","Activity","Weathering","Buildings","Zeroing","Crime","Network","Reticulating","Splines"],c={reset(){m.mapSizeX=50,m.mapSizeY=30,m.centerX=0,m.centerY=0,m.radiusY=5,m.radiusX=5,m.mapID="e1-m.lttmm",m.mapName="",m.lttMap=null,m.seed=(0,i.iH)(s.random_int31())},exportMap(){return{mapID:m.mapID,mapName:m.mapName,initialViewRadiusX:m.centerX,initialViewRadiusY:m.centerY,initialVieCenterX:m.radiusX,initialViewCenterY:m.radiusY,tileSet:m.lttMap.flat()}},loadMap(e){let t=this.getMultDimArrayFromFlattendArray(e.tileSet);m.mapID=e.mapID,m.mapName=e.mapName,m.mapSizeX=t.mapSizeX,m.mapSizeY=t.mapSizeY,m.lttMap=t.map,m.maxX=t.maxX,m.minX=t.minX,m.maxY=t.maxY,m.minY=t.minY,m.radiusX=e.initialViewRadiusX,m.radiusY=e.initialViewRadiusY,m.centerX=e.initialViewCenterX,m.centerY=e.initialViewCenterY},getMultDimArrayFromFlattendArray(e){let t,a,i,r,n,o,l=e.sort(((e,t)=>e.y==t.y?e.x-t.x:t.y-e.y)),s=l.length;a=l[0].x,i=l[0].y,r=l[s-1].y,t=l[s-1].x,n=Math.abs(a)+Math.abs(t)+1,o=Math.abs(r)+Math.abs(i)+1;let m=[];for(let u=0;u<o;u++){let e=[];for(let t=0;t<n;t++)e.push(l[u*n+t]);m.push(e)}return{mapSizeX:n,mapSizeY:o,maxX:t,minX:a,maxY:i,minY:r,map:m}},getMapName(){return u[Math.floor(Math.random()*u.length)-1]+" "+u[Math.floor(Math.random()*u.length)-1]+" "+u[Math.floor(Math.random()*u.length)-1]},getMapId(){return"e1-m.lttmm"},generateMap(){let e="grass",t=[];m.minX=-Math.floor(m.mapSizeX/2),m.mapSizeX%2?m.maxX=Math.floor(m.mapSizeX/2):m.maxX=Math.floor(m.mapSizeX/2)+1,m.minY=-Math.floor(m.mapSizeY/2),m.mapSizeY%2?m.maxY=Math.floor(m.mapSizeY/2):m.maxY=Math.floor(m.mapSizeY/2)+1;for(let a=m.maxY;a>=m.minY;a--){let i=[];for(let t=m.minX;t<=m.maxX;t++)i.push({x:t,y:a,z:0,typeId:e});t.push(i)}m.lttMap=t,m.mapName=this.getMapName()},generateRandomMap(){let e=[];const t=new(n().MapGenerator)(m.seed);m.minX=-Math.floor(m.mapSizeX/2),m.mapSizeX%2?m.maxX=Math.floor(m.mapSizeX/2):m.maxX=Math.floor(m.mapSizeX/2)+1,m.minY=-Math.floor(m.mapSizeY/2),m.mapSizeY%2?m.maxY=Math.floor(m.mapSizeY/2):m.maxY=Math.floor(m.mapSizeY/2)+1;const a=t.createMap(m.mapSizeX+2,m.mapSizeY+2,{type:"perlit"});a.stepValues(5);for(let i=m.maxY;i>=m.minY;i--){let t=[];for(let e=m.minX;e<=m.maxX;e++)t.push({x:e,y:i,z:0,typeId:this.getTileTypeFromHeightmap(a,e+m.mapSizeX/2,i+m.mapSizeY/2)});e.push(t)}m.lttMap=e,m.mapName=this.getMapName()},getTileTypeFromHeightmap(e,t,a){let i=Math.floor(100*e.get(t,a));switch(i){case 100:return"mountain";case 80:return"ice";case 60:return"barren";case 40:return"desert";case 20:return"grass";case 0:return"water";default:return"grass"}}},p={state:m,methods:c,seedGenerator:s}}},t={};function a(i){var r=t[i];if(void 0!==r)return r.exports;var n=t[i]={exports:{}};return e[i].call(n.exports,n,n.exports,a),n.exports}a.m=e,(()=>{var e=[];a.O=(t,i,r,n)=>{if(!i){var o=1/0;for(u=0;u<e.length;u++){for(var[i,r,n]=e[u],l=!0,s=0;s<i.length;s++)(!1&n||o>=n)&&Object.keys(a.O).every((e=>a.O[e](i[s])))?i.splice(s--,1):(l=!1,n<o&&(o=n));if(l){e.splice(u--,1);var m=r();void 0!==m&&(t=m)}}return t}n=n||0;for(var u=e.length;u>0&&e[u-1][2]>n;u--)e[u]=e[u-1];e[u]=[i,r,n]}})(),(()=>{a.n=e=>{var t=e&&e.__esModule?()=>e["default"]:()=>e;return a.d(t,{a:t}),t}})(),(()=>{a.d=(e,t)=>{for(var i in t)a.o(t,i)&&!a.o(e,i)&&Object.defineProperty(e,i,{enumerable:!0,get:t[i]})}})(),(()=>{a.f={},a.e=e=>Promise.all(Object.keys(a.f).reduce(((t,i)=>(a.f[i](e,t),t)),[]))})(),(()=>{a.u=e=>"js/"+e+"."+{193:"d137f76d",242:"92981874",302:"84bd7cfb"}[e]+".js"})(),(()=>{a.miniCssF=e=>"css/"+({143:"app",736:"vendor"}[e]||e)+"."+{143:"31d6cfe0",242:"ae1374a5",302:"201f2e5f",736:"e1411231"}[e]+".css"})(),(()=>{a.g=function(){if("object"===typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"===typeof window)return window}}()})(),(()=>{a.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t)})(),(()=>{var e={},t="ltt-mapmaker:";a.l=(i,r,n,o)=>{if(e[i])e[i].push(r);else{var l,s;if(void 0!==n)for(var m=document.getElementsByTagName("script"),u=0;u<m.length;u++){var c=m[u];if(c.getAttribute("src")==i||c.getAttribute("data-webpack")==t+n){l=c;break}}l||(s=!0,l=document.createElement("script"),l.charset="utf-8",l.timeout=120,a.nc&&l.setAttribute("nonce",a.nc),l.setAttribute("data-webpack",t+n),l.src=i),e[i]=[r];var p=(t,a)=>{l.onerror=l.onload=null,clearTimeout(g);var r=e[i];if(delete e[i],l.parentNode&&l.parentNode.removeChild(l),r&&r.forEach((e=>e(a))),t)return t(a)},g=setTimeout(p.bind(null,void 0,{type:"timeout",target:l}),12e4);l.onerror=p.bind(null,l.onerror),l.onload=p.bind(null,l.onload),s&&document.head.appendChild(l)}}})(),(()=>{a.r=e=>{"undefined"!==typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})}})(),(()=>{a.p=""})(),(()=>{var e=(e,t,a,i)=>{var r=document.createElement("link");r.rel="stylesheet",r.type="text/css";var n=n=>{if(r.onerror=r.onload=null,"load"===n.type)a();else{var o=n&&("load"===n.type?"missing":n.type),l=n&&n.target&&n.target.href||t,s=new Error("Loading CSS chunk "+e+" failed.\n("+l+")");s.code="CSS_CHUNK_LOAD_FAILED",s.type=o,s.request=l,r.parentNode.removeChild(r),i(s)}};return r.onerror=r.onload=n,r.href=t,document.head.appendChild(r),r},t=(e,t)=>{for(var a=document.getElementsByTagName("link"),i=0;i<a.length;i++){var r=a[i],n=r.getAttribute("data-href")||r.getAttribute("href");if("stylesheet"===r.rel&&(n===e||n===t))return r}var o=document.getElementsByTagName("style");for(i=0;i<o.length;i++){r=o[i],n=r.getAttribute("data-href");if(n===e||n===t)return r}},i=i=>new Promise(((r,n)=>{var o=a.miniCssF(i),l=a.p+o;if(t(o,l))return r();e(i,l,r,n)})),r={143:0};a.f.miniCss=(e,t)=>{var a={242:1,302:1};r[e]?t.push(r[e]):0!==r[e]&&a[e]&&t.push(r[e]=i(e).then((()=>{r[e]=0}),(t=>{throw delete r[e],t})))}})(),(()=>{var e={143:0};a.f.j=(t,i)=>{var r=a.o(e,t)?e[t]:void 0;if(0!==r)if(r)i.push(r[2]);else{var n=new Promise(((a,i)=>r=e[t]=[a,i]));i.push(r[2]=n);var o=a.p+a.u(t),l=new Error,s=i=>{if(a.o(e,t)&&(r=e[t],0!==r&&(e[t]=void 0),r)){var n=i&&("load"===i.type?"missing":i.type),o=i&&i.target&&i.target.src;l.message="Loading chunk "+t+" failed.\n("+n+": "+o+")",l.name="ChunkLoadError",l.type=n,l.request=o,r[1](l)}};a.l(o,s,"chunk-"+t,t)}},a.O.j=t=>0===e[t];var t=(t,i)=>{var r,n,[o,l,s]=i,m=0;if(o.some((t=>0!==e[t]))){for(r in l)a.o(l,r)&&(a.m[r]=l[r]);if(s)var u=s(a)}for(t&&t(i);m<o.length;m++)n=o[m],a.o(e,n)&&e[n]&&e[n][0](),e[o[m]]=0;return a.O(u)},i=self["webpackChunkltt_mapmaker"]=self["webpackChunkltt_mapmaker"]||[];i.forEach(t.bind(null,0)),i.push=t.bind(null,i.push.bind(i))})();var i=a.O(void 0,[736],(()=>a(3201)));i=a.O(i)})();
\ No newline at end of file
Source diff could not be displayed: it is too large. Options to address this: view the blob.
Source diff could not be displayed: it is too large. Options to address this: view the blob.
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment