local LD = require("design.LevelDesignLibrary")
local playedIdleBtr = false
local banterplayed_BigLake = false
function OnScriptLoaded(level, obj)
  game.SubObject.Sleep(obj)
end
function DisableExploreALittle()
  GameObjects.BtrComp_ExploreALittle.LuaObjectScript.Disable()
  GameObjects.Btr_ExploreALittle_Disable:Hide()
  GameObjects.BtrComp_ExploreALittle_Disable.LuaObjectScript.Disable()
end
function Btr_BigLake()
  if game.Level.GetVariable("CompletedCineNumber") < 180 and banterplayed_BigLake == false then
    game.Audio.PlayBanter("010_BigLake", BigLakeEmitter_Disable)
    LD.CallFunctionAfterDelay(BigLakeEmitter_Disable, 8)
    banterplayed_BigLake = true
  end
end
function BigLakeEmitter_Disable()
  GameObjects.AwarenessZone_Thor_Level_0.LuaObjectScript.DisableEventEmitter()
end
function DisableMural1()
  GameObjects.Btr_TempleMural1:Hide()
end
function DisableMural2()
  GameObjects.Btr_TempleMural2:Hide()
end
function DuringSonSick()
  local LD = require("design.LevelDesignLibrary")
  local cineNum = LD.GetEntityVariable("CompletedCineNumber")
  return 365 <= cineNum and cineNum < 390
end
function CanThorStatue_w02_01Play()
  local LD = require("design.LevelDesignLibrary")
  local cineNum = LD.GetEntityVariable("CompletedCineNumber")
  return 340 <= cineNum and not DuringSonSick()
end
function OnSaveCheckpoint(level, obj)
  return {banterplayed_BigLake = banterplayed_BigLake}
end
function OnRestoreCheckpoint(level, obj, savedInfo)
  if savedInfo.banterplayed_BigLake ~= nil then
    banterplayed_BigLake = savedInfo.banterplayed_BigLake
  end
end
