SharkGame.Gate={tabId:"gate",tabDiscovered:!1,tabName:"Strange Gate",tabBg:"img/bg/bg-gate.png",discoverReq:{upgrade:["gateDiscovery"]},message:"A foreboding circular structure, closed shut.
There are many slots, and a sign you know to mean 'insert items here'.",messageOneSlot:"A foreboding circular structure, closed shut.
One slot remains.",messageOpened:"A foreboding circular structure, wide open.
The water glows and shimmers within it. A gentle tug pulls at you.",messagePaid:"The slot accepts your donation and ceases to be.",messageCantPay:"The slot spits everything back out. You get the sense it wants more at once.",messageAllPaid:"The last slot closes. The structure opens. The water glows and shimmers within it.
A gentle tug pulls at you.",messageEnter:"You swim through the gate...",sceneClosedImage:"img/events/misc/scene-gate-closed.png",sceneAlmostOpenImage:"img/events/misc/scene-gate-one-slot.png",sceneOpenImage:"img/events/misc/scene-gate-open.png",costsMet:null,costs:null,init:function(){var e=SharkGame.Gate;SharkGame.Tabs[e.tabId]={id:e.tabId,name:e.tabName,discovered:e.tabDiscovered,discoverReq:e.discoverReq,code:e},e.opened=!1},createSlots:function(e,t,a){var s=SharkGame.Gate;s.costs={},$.each(e,(function(e,n){s.costs[e]=Math.floor(n*t*a)})),s.costsMet={},$.each(s.costs,(function(e,t){s.costsMet[e]=!1}))},switchTo:function(){var e=SharkGame.Gate,t=$("#content");if(t.append($("