           level: body.api_level
           nickname: body.api_nickname
           rank: body.api_rank
+          nextExp:totalExp[body.api_level] - body.api_experience
           maxChara: body.api_max_chara
           maxSlotitem: body.api_max_slotitem
       when '/kcsapi/api_req_sortie/battleresult'
         @setState
           level: window._teitokuLv
+          nextExp: totalExp[body.api_member_lv] - body.api_member_exp
+      when '/kcsapi/api_req_practice/battle_result'
+        @setState
+          level: window._teitokuLv
+          nextExp: totalExp[window._teitokuLv] - body.api_member_exp
+      when '/kcsapi/api_req_mission/result'
+        @setState
+          nextExp: totalExp[window._teitokuLv] - body.api_member_exp
       when '/kcsapi/api_port/port'
         {material} = @state
         for e in body.api_material


rankName = ['', '元帥', '大将', '中将', '少将', '大佐', '中佐', '新米中佐', '少佐', '中堅少佐', '新米少佐']

getHeader = (state) ->
  if state.nickname?
    return "Lv. #{state.level} #{state.nickname} [#{rankName[state.rank]}]"
  else
    return '提督 [尚未登录]'


    level: 0
    nickname: null
    rank: 0
    nextExp:'?'
    material: ['??', '??', '??', '??', '??', '??', '??', '??', '??']
    shipCount: '??'
    maxChara: '??'
