跳到内容

Module:Arcaea Data:修订间差异

添加3,194字节 、​ 2024年8月12日 (星期一)
添加bg读取系列
(添加参数etrDate/etrVersion)
(添加bg读取系列)
第213行: 第213行:
        if info["difficulties"] and difficulties[3] then
        if info["difficulties"] and difficulties[3] then
          return difficulties[3]['audioOverride']
          return difficulties[3]['audioOverride']
       end
     end,
     ["bydBg"] = function()
       if info["difficulties"] and difficulties[3] then
         return difficulties[3]['bg']
        end
        end
      end,
      end,
第253行: 第248行:
        if info["difficulties"] and difficulties[4] then
        if info["difficulties"] and difficulties[4] then
          return difficulties[4].version
          return difficulties[4].version
       end
     end,
     ["pstBg"] = function()
       if info["difficulties"] and difficulties[0] and difficulties[0]['bg'] then
         return difficulties[0]['bg']
       else
         if info["bg"] ~= "" then
           return info["bg"]
         else
           if info["side"] == 0 then
             return 'base_light'
           else
             if info['side'] ==1 then
               return 'base_conflict'
             else
               return 'undefined'
             end
           end
         end
       end
     end,
     ["prsBg"] = function()
       if info["difficulties"] and difficulties[1] and difficulties[1]['bg'] then
         return difficulties[1]['bg']
       else
         if info["bg"] ~= "" then
           return info["bg"]
         else
           if info["side"] == 0 then
             return 'base_light'
           else
             if info['side'] ==1 then
               return 'base_conflict'
             else
               return 'undefined'
             end
           end
         end
       end
     end,
     ["ftrBg"] = function()
       if info["difficulties"] and difficulties[2] and difficulties[2]['bg'] then
         return difficulties[2]['bg']
       else
         if info["bg"] ~= "" then
           return info["bg"]
         else
           if info["side"] == 0 then
             return 'base_light'
           else
             if info['side'] ==1 then
               return 'base_conflict'
             else
               return 'undefined'
             end
           end
         end
       end
     end,
     ["bydBg"] = function()
       if info["difficulties"] and difficulties[3] and difficulties[3]['bg'] then
         return difficulties[3]['bg']
       else
         if info["bg"] ~= "" then
           return info["bg"]
         else
           if info["side"] == 0 then
             return 'base_light'
           else
             if info['side'] ==1 then
               return 'base_conflict'
             else
               return 'undefined'
             end
           end
         end
       end
     end,
     ["etrBg"] = function()
       if info["difficulties"] and difficulties[4] and difficulties[4]['bg'] then
         return difficulties[4]['bg']
       else
         if info["bg"] ~= "" then
           return info["bg"]
         else
           if info["side"] == 0 then
             return 'base_light'
           else
             if info['side'] ==1 then
               return 'base_conflict'
             else
               return 'undefined'
             end
           end
         end
        end
        end
      end
      end