Last active
December 6, 2016 21:49
-
-
Save BrokenWits/de63d39bca67949846d5e14698f4e02e to your computer and use it in GitHub Desktop.
KingdomSettings
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var s = '{"greenBeltMapManager.campaign":"Explored and Claimed","greenBeltMapManager.campaignList":"Explored and Claimed","greenbeltMap.Explored_and_Claimed.explored":"-1_-1|1_-1|0_0|2_0|3_-1|4_0|5_-1|6_0|7_-1|8_0|9_-1|10_0|11_-1|12_0|13_-1|14_0|-1_1|1_1|3_1|5_1|7_1|9_1|11_1|13_1|14_2|12_2|10_2|8_2|6_2|4_2|2_2|0_2|-1_3|0_4|1_3|2_4|3_3|4_4|5_3|7_3|6_4|8_4|9_3|10_4|11_3|12_4|13_3|14_4|-1_5|1_5|3_5|5_5|7_5|9_5|11_5|13_5|14_6|12_6|10_6|4_6|2_6|0_6|7_7|5_7|3_7|1_7|9_7|11_7|13_7|-1_7|8_6|6_8|8_8|10_8|12_8|14_8|6_6|7_9|9_9|5_9|4_8|3_9|2_8|0_8|-1_9|1_9|11_9|15_-1|16_0|15_1|17_1|19_1|20_0|21_1|21_-1|17_-1|23_-1|20_2|25_-1|27_-1|21_3|19_-1|20_4|18_4|17_3|19_3|18_2|21_5|19_5|22_4|23_1|25_1|24_2|22_2|23_3|25_3|27_1|26_2|28_2|24_4|23_5|22_6|24_6|25_5|26_4|27_3|28_4|27_5|26_6|20_6|21_7|23_7|25_7|27_7|28_6|24_8|16_4|22_8","greenbeltMap.Explored_and_Claimed.halfHex":"false","greenbeltMap.Explored_and_Claimed.hexHeight":"164.76666666666665","greenbeltMap.Explored_and_Claimed.hexWidth":"182.92857142857142","greenbeltMap.Explored_and_Claimed.iconImages":"icon_pin.png|icon_building.png|icon_POI.png|icon_camp.png|icon_monster.png|tick.png|crown.png|icon_city.png|icon_farm.png|icon_resource.png|icon_ruin.png|icon_temple.png|icon_tower.png|icon_town.png|icon_grave.png","greenbeltMap.Explored_and_Claimed.iconZoom":"{\\"crown.png\\":1.3923999999999999}","greenbeltMap.Explored_and_Claimed.mapMaxStraight":"28","greenbeltMap.Explored_and_Claimed.mapMaxZigzag":"10","greenbeltMap.Explored_and_Claimed.mapOffsetX":"-3","greenbeltMap.Explored_and_Claimed.mapOffsetY":"-32","greenbeltMap.Explored_and_Claimed.mapSrc":"Greenbelt_NomenHeights.jpg","greenbeltMap.Explored_and_Claimed.markers":"782,776,0,icon_city.png,above,Capital|890,176,0,icon_building.png,above,Olegs|628,810,0,icon_POI.png,above,Stuck Gnomes|433,1068,0,icon_POI.png,above,N. Lizard Island: Danger|898,1199,0,icon_POI.png,above,U. Ferry (boat) station|353,1191,0,icon_POI.png,above,S. Forest King|719,1200,0,icon_POI.png,above,T. Depressed Giant|168,1196,0,icon_POI.png,above,R.|1081,1197,0,icon_POI.png,above,Stupid Owl Bears|716,951,0,icon_POI.png,above,J. Witch|350,600,0,icon_building.png,below,Tazleford (town)|96,1056,0,icon_POI.png,above,M. Mossy Mountain in Mini|1979,178,0,icon_POI.png,right,|1637,202,0,icon_POI.png,above,Empty Fort|1972,174,0,icon_building.png,above,Nivkesta|1904,304,0,icon_POI.png,above,Noble Caravan|1990,418,0,icon_POI.png,above,Bridge|1868,541,0,icon_city.png,above,Varnhold|1712,502,0,icon_POI.png,below,Varnhold Pass|2180,193,0,icon_camp.png,right,|2093,312,0,icon_camp.png,right,|2183,428,0,icon_camp.png,right,|2264,254,0,icon_POI.png,below,Dunceward (the big light area, not this hex)|2159,650,0,icon_camp.png,right,|2320,406,0,icon_camp.png,right,|2412,522,0,icon_camp.png,right,|2366,641,0,icon_POI.png,below,Nomen Camp|2266,976,0,icon_POI.png,below,W. Mountain Giant Stones|1909,758,0,icon_camp.png,right,|2521,890,0,icon_camp.png,right,|2448,752,0,icon_camp.png,right,|2504,627,0,icon_camp.png,right,|2256,762,0,icon_POI.png,below,Giant Snake Skeleton|1983,648,0,icon_POI.png,below,Cave of Tears|1992,862,0,icon_POI.png,below,Christmas and the Zills","greenbeltMap.Explored_and_Claimed.party":"2069,998","greenbeltMap.Explored_and_Claimed.version":"2","greenbeltMap.Explored_and_Claimed.verticalHexes":"false","greenbeltMap._Click_to_Change_.explored":"4_0|5_1|4_2|5_3|6_4|5_5|4_6|3_5|2_4|3_3|4_4|0_4|-1_3|-1_5|0_6|2_6|1_5|1_3|0_2|2_2|3_1","greenbeltMap._Click_to_Change_.halfHex":"false","greenbeltMap._Click_to_Change_.hexHeight":"164.63333333333333","greenbeltMap._Click_to_Change_.hexWidth":"183.14285714285714","greenbeltMap._Click_to_Change_.iconImages":"icon_pin.png|icon_building.png|icon_POI.png|icon_camp.png|icon_monster.png|tick.png|crown.png|tick.png","greenbeltMap._Click_to_Change_.iconZoom":"{}","greenbeltMap._Click_to_Change_.mapMaxStraight":"14","greenbeltMap._Click_to_Change_.mapMaxZigzag":"10","greenbeltMap._Click_to_Change_.mapOffsetX":"2","greenbeltMap._Click_to_Change_.mapOffsetY":"-31","greenbeltMap._Click_to_Change_.mapSrc":"The_Greenbelt_sq.jpg","greenbeltMap._Click_to_Change_.markers":"","greenbeltMap._Click_to_Change_.party":"822,385","greenbeltMap._Click_to_Change_.version":"2","greenbeltMap._Click_to_Change_.verticalHexes":"false"}'; | |
function writeLocalStorage(data) { | |
var o = JSON.parse(data); | |
for (var property in o) { | |
if (o.hasOwnProperty(property)) { | |
localStorage.setItem(property, o[property]); | |
} | |
} | |
} | |
writeLocalStorage(s); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment