import { reactive } from "vue"

export const globalStore = reactive({
  completed_games_today: [],
  current_game_log_id: '',
  game_id: '',
  first_share_today:false,
  globalAudio: null,
  userMutedMusic: false, // 用户是否手动静音了音乐
  isFirstVisitHomePage: true, // 是否首次访问首页
  select_template: '',
  people_count: 0,
  draw_chances: 0,
  game_chances: 0,
  lotteryCount: 0,
  result_url: '',
  mergeId: 61,
  generateStatus: false,
  generateImgTemplates: [],
  chartsBattle: false,
  followed_official: false,
  cap_scan: 0,
  game_chances_view_recipes: 0,
  POINT_1_ICESIP: 100,
  POINT_1_ICON: 100,
  MAX_CAP_SCAN: 5,
  CONSUME_POINT_1_PER_DRAW: 1000,
  MAX_INVITE_DAILY: 5,
  MAX_VIEW_RECIPES_DAILY: 3,
  reducerDrawChances () {
    this.draw_chances--
  },
  reducerGameChances () {
    this.game_chances--
  },
  lotteryCut () {
    this.lotteryCount--
  },
  lotteryAdd () {
    this.lotteryCount++
  },
})