FANDOM


-- This module needs to be updated every Thursday when a new chapter is released.
 
local p = {}
 
function p.getNumber(frame)
    --Just update this every week
    local LATEST_CHAPTER = 44 -- Update this on Thursday to the most recent chapter number
    local args = frame:getParent().args
    local chapter = args[1]
    if chapter == "Prologue" then
        return 0
    elseif chapter == "None" then
        return LATEST_CHAPTER + 1
    elseif chapter == "Bonus Episode" then
        return 36
    else
        local num = string.find(chapter, "%a+%s*(%d+)")
        local chapter_num = tonumber(num)
        if(LATEST_CHAPTER > 36) then
            return LATEST_CHAPTER + 2 --The Bonus Episode takes up one episode
        else
            return LATEST_CHAPTER + 1 --Prologue is episode 0, so Chapter 1 is episode 2, Chapter 2 is episode 3 and so on
        end    
    end
 
end
return p

Ad blocker interference detected!


Wikia is a free-to-use site that makes money from advertising. We have a modified experience for viewers using ad blockers

Wikia is not accessible if you’ve made further modifications. Remove the custom ad blocker rule(s) and the page will load as expected.