dofile("data/example_gui/cheat_mod.lua")
dofile( "mods/Cheat Menu by Everfades/files/utils.lua" )

saved_locations = {
	{ west={ name="Mines Entrance",x=-35590,y=-100}, 						main={ name="Mines Entrance",x=250,y=-100},        							east={ name="Mines Entrance",x=36090,y=-100}},
	{ west={ name="Coal Pits Holy Mountain",x=-36040 ,y=1330},							main={ name="Coal Pits Holy Mountain",x=-200 ,y=1330},  							east={ name="Coal Pits Holy Mountain",x=35640 ,y=1330}},
    { west={ name="Snowy Depths Holy Mountain",x=-36040 ,y=2870},						main={ name="Snowy Depths Holy Mountain",x=-200 ,y=2870},  						east={ name="Snowy Depths Holy Mountain",x=35640 ,y=2870}},
    { west={ name="Hiisi Base Holy Mountain",x=-36040 ,y=4910},						main={ name="Hiisi Base Holy Mountain",x=-200 ,y=4910},  						east={ name="Hiisi Base Holy Mountain",x=35640 ,y=4910}},
    { west={ name="Underground Jungle Holy Mountain",x=-36040 ,y=6450},						main={ name="Underground Jungle Holy Mountain",x=-200 ,y=6450},  						east={ name="Underground Jungle Holy Mountain",x=35640 ,y=6450}},
    { west={ name="The Vault Holy Mountain",x=-36040 ,y=8500},							main={ name="The Vault Holy Mountain",x=-200 ,y=8500},  							east={ name="The Vault Holy Mountain",x=35640 ,y=8500}},
    { west={ name="Temple of The Art Holy Mountain",x=-36040 ,y=10550},					main={ name="Temple of The Art Holy Mountain",x=-200 ,y=10550},  					east={ name="Temple of The Art Holy Mountain",x=35640 ,y=10550}},
    { west={ name="Doesn't exist",x=-35590,y=-100},						main={ name="Laboratory Holy Mountain",x=2300 ,y=13110},  						east={ name="Doesn't exist",x=36090,y=-100}},
	{ west={ name="Doesn't exist",x=-35590,y=-100}, 						main={ name="Music Machine 1",x=14648,y=-50},        				east={ name="Doesn't exist",x=36090,y=-100}},
	{ west={ name="Doesn't exist",x=-35590,y=-100}, 					main={ name="Music Machine 2 + Tree Pillars",x=-1955,y=-1350},      east={ name="Doesn't exist",x=36090,y=-100}},
	{ west={ name="Doesn't exist",x=-35590,y=-100}, 						main={ name="Music Machine 3 + Wicker Man",x=-14250,y=185},        	east={ name="Doesn't exist",x=36090,y=-100}},
	{ west={ name="Doesn't exist",x=-35590,y=-100}, 						main={ name="Music Machine 4 + Fish Pond",x=2750,y=250},        	east={ name="Doesn't exist",x=36090,y=-100}},
    { west={ name="Doesn't exist",x=-35590,y=-100},				main={ name="Instrument Kantele",x=-1643 ,y=-741},  				east={ name="Doesn't exist",x=36090,y=-100}},
    { west={ name="Instrument Huilu",x=-45824 ,y=-6457},					main={ name="Instrument Huilu",x=-9984 ,y=-6457},  					east={ name="Instrument Huilu",x=25856 ,y=-6457}},
	{ west={ name="Pyramid Entrance",x=-26949 ,y=-250},					main={ name="Pyramid Entrance",x=8890,y=-250},  					east={ name="Pyramid Entrance",x=44731 ,y=-250}},
    { west={ name="Doesn't exist",x=-35590,y=-100},						main={ name="Desert Skull",x=7420 ,y=-62},  						east={ name="Doesn't exist",x=36090,y=-100}},
    { west={ name="Doesn't exist",x=-35590,y=-100},						main={ name="Curse of Greed",x=-1370 ,y=-418},  					east={ name="Doesn't exist",x=36090,y=-100}},
    { west={ name="Doesn't exist",x=-35590,y=-100},					main={ name="Gourd Cave",x=-15932,y=-6395},  						east={ name="Doesn't exist",x=36090,y=-100}},
    { west={ name="Dark Cave",x=-37430 ,y=609},							main={ name="Dark Cave",x=-1590 ,y=609},  							east={ name="Dark Cave",x=34250 ,y=609}},
    { west={ name="Doesn't exist",x=-35590,y=-100},						main={ name="Hiisi Base Anvil",x=1540 ,y=6062},  							east={ name="Doesn't exist",x=36090,y=-100}},
    { west={ name="The Cube",x=-40164 ,y=2388},							main={ name="The Cube",x=-4324 ,y=2388},  							east={ name="The Cube",x=31516 ,y=2388}},
    { west={ name="The Eye",x=-39682 ,y=5456},							main={ name="The Eye",x=-3842 ,y=5456},  							east={ name="The Eye",x=31998 ,y=5456}},
    { west={ name="Snowy Ruins",x=-31948  ,y=4413},						main={ name="Snowy Ruins",x=3892 ,y=4413},  						east={ name="Snowy Ruins",x=39732 ,y=4413}},
    { west={ name="Robotic Egg",x=-40811,y=15216},						main={ name="Robotic Egg",x=-4971 ,y=15216},  						east={ name="Robotic Egg",x=30869 ,y=15216}},
    { west={ name="Portal to The Tower - Port to Mainworld!",x=-40191 ,y=10850},				main={ name="Portal to The Tower",x=-4351 ,y=10850},  				east={ name="Portal to The Tower - Port to Mainworld!",x=31489 ,y=10850}},
    { west={ name="The Tower",x=-26101 ,y=9210},							main={ name="The Tower",x=9739 ,y=9194},  							east={ name="The Tower",x=45579 ,y=9210}},
    { west={ name="The Tower Wands",x=-25857 ,y=4351},					main={ name="The Tower Wands",x=9983 ,y=4351},  					east={ name="The Tower Wands",x=45823 ,y=4351}},
    { west={ name="Doesn't exist",x=-35590,y=-100},					main={ name="The Tower Brickwork Diamond",x=9470 ,y=4239},  					east={ name="Doesn't exist",x=36090,y=-100}},
    { west={ name="Doesn't exist",x=-35590,y=-100},							main={ name="Secretorum Hermetis - Tree",x=-1333 ,y=-160},  							east={ name="Doesn't exist",x=36090,y=-100}},
    { west={ name="Emerald Tablet of Thoth - Pyramid",x=-25859 ,y=-1167},							main={ name="Emerald Tablet of Thoth - Pyramid",x=9981 ,y=-1167},  							east={ name="Emerald Tablet of Thoth - Pyramid",x=45821 ,y=-1167}},
    { west={ name="Doesn't exist",x=-35590,y=-100},							main={ name="Tabula Smaragdina - Lava Lake",x=2392 ,y=836},  							east={ name="Doesn't exist",x=36090,y=-100}},
    { west={ name="Emerald Tablet - volume I - Sky Altar",x=-35058 ,y=-1073},							main={ name="Emerald Tablet - volume I - Sky Altar",x=782 ,y=-1073},  							east={ name="Emerald Tablet - volume I - Sky Altar",x=36622 ,y=-1073}},
    { west={ name="Emerald Tablet - volume II - Frozen Fault",x=-45820 ,y=2944},							main={ name="Emerald Tablet - volume II - Frozen Fault",x=-9980 ,y=2944},  							east={ name="Emerald Tablet - volume II - Frozen Fault",x=25860 ,y=2944}},
    { west={ name="Doesn't exist",x=-35590,y=-100},							main={ name="Emerald Tablet - volume III - Below Lava Lake",x=3473 ,y=1908},  							east={ name="Doesn't exist",x=36090,y=-100}},
    { west={ name="Emerald Tablet - volume IV - Sandcave below Pyramid",x=-25858 ,y=2945},							main={ name="Emerald Tablet - volume IV - Sandcave below Pyramid",x=9982 ,y=2945},  							east={ name="Emerald Tablet - volume IV - Sandcave below Pyramid",x=45822 ,y=2945}},
    { west={ name="Emerald Tablet - volume V - Magical Temple",x=-40192 ,y=3969},							main={ name="Emerald Tablet - volume V - Magical Temple",x=-4352 ,y=3969},  							east={ name="Emerald Tablet - volume V - Magical Temple",x=31488 ,y=3969}},
    { west={ name="Emerald Tablet - volume VI - Fungal Caverns",x=-40705 ,y=9089},							main={ name="Emerald Tablet - volume VI - Fungal Caverns",x=-4865,y=9089},  							east={ name="Emerald Tablet - volume VI - Fungal Caverns",x=30975 ,y=9089}},
    { west={ name="Emerald Tablet - volume VII - Right of Connoisseur of Wands",x=-31490 ,y=897},							main={ name="Emerald Tablet - volume VII - Right of Connoisseur of Wands",x=4350,y=897},  							east={ name="Emerald Tablet - volume VII - Right of Connoisseur of Wands",x=40190 ,y=897}},
    { west={ name="Emerald Tablet - volume VIII - The Work (Hell)",x=-36098 ,y=16257},							main={ name="Emerald Tablet - volume VIII - The Work (Hell)",x=-258 ,y=16257},  							east={ name="Emerald Tablet - volume VIII - The Work (Hell)",x=35582 ,y=16257}},
    { west={ name="Emerald Tablet - volume IX - Snow Chasm",x=-44802 ,y=14721},							main={ name="Emerald Tablet - volume IX - Snow Chasm",x=-8962 ,y=14721},  							east={ name="Emerald Tablet - volume IX - Snow Chasm",x=26878 ,y=14721}},
    { west={ name="Emerald Tablet - volume X - Desert Chasm",x=-25344  ,y=16257},							main={ name="Emerald Tablet - volume X - Desert Chasm",x=10496 ,y=16257},  							east={ name="Emerald Tablet - volume X - Desert Chasm",x=46336 ,y=16257}},
    { west={ name="Hyper Alchemist",x=-40700 ,y=897},							main={ name="Hyper Alchemist",x=-4860  ,y=897},  							east={ name="Hyper Alchemist",x=30980 ,y=897}},
    { west={ name="Doesn't exist",x=-35590,y=-100},							main={ name="Three-Eyed Leg",x=9981 ,y=-782},  							east={ name="Doesn't exist",x=36090,y=-100}},
    { west={ name="Dragon",x=-33499 ,y=7389},							main={ name="Dragon",x=2341 ,y=7389},  							east={ name="Dragon",x=38181 ,y=7389}},
    { west={ name="Doesn't exist",x=-35590,y=-100},							main={ name="Three-Eye",x=3548 ,y=13111},  							east={ name="Doesn't exist",x=36090,y=-100}},
    { west={ name="Doesn't exist",x=-35590,y=-100},							main={ name="Fire Essence",x=-14060 ,y=370},  							east={ name="Doesn't exist",x=36090,y=-100}},
    { west={ name="Earth Essence",x=-19712  ,y=-1793},							main={ name="Earth Essence",x=16128  ,y=-1793},  							east={ name="Earth Essence",x=51968  ,y=-1793}},
    { west={ name="Water Essence",x=-41214  ,y=16639},							main={ name="Water Essence",x=-5374  ,y=16639},  							east={ name="Water Essence",x=30466  ,y=16639}},
    { west={ name="Air Essence",x=-48897  ,y=-5377},							main={ name="Air Essence",x=-13057  ,y=-5377},  							east={ name="Air Essence",x=22783  ,y=-5377}},
    { west={ name="Spirits Essence",x=-49921 ,y=13567},							main={ name="Spirits Essence",x=-14081 ,y=13567},  							east={ name="Spirits Essence",x=21759 ,y=13567}},
    { west={ name="Doesn't exist",x=-35590,y=-100},					main={ name="Moon",x=264,y=-26107},  								east={ name="Doesn't exist",x=36090,y=-100}},
    { west={ name="Doesn't exist",x=-35590,y=-100},							main={ name="The Work",x=6398 ,y=15163},  							east={ name="Doesn't exist",x=36090,y=-100}},
    { west={ name="Coral Chest",x=-25344 ,y=-4864},							main={ name="Coral Chest",x=10496 ,y=-4864},  							east={ name="Coral Chest",x=46336 ,y=-4864}},
    { west={ name="Dark Chest",x=-32000 ,y=15616},							main={ name="Dark Chest",x=3840 ,y=15616},  							east={ name="Dark Chest",x=39680 ,y=15616}},
}
saved_custom_locations = {
}

function get_locations(name)
    local out = {}
    for i,x in ipairs(saved_locations)
    do
        local var = x[name]
        if var == nil then var = x.main end
        out[#out+1] = var
    end
    return out
end
