Module:ErraCalendar: Difference between revisions

From Errapedia
Jump to navigation Jump to search
No edit summary
No edit summary
Line 5: Line 5:


function h.GetMonthFromInt( inInt )
function h.GetMonthFromInt( inInt )
   return MonthTable[inInt]
  if MonthTable[inInt] == nil then
      return nil
  end
   return MonthTable[inInt]["name"]
end
end

Revision as of 23:32, 8 February 2023

Documentation for this module may be created at Module:ErraCalendar/doc

local p = {}
local h = {}

MonthTable = {{name="Een", season="Rise"}, {name="Kar", season="Rise"}, {name="Mir", season="Rise"}, {name="Rort", season="Life"}, {name="Kir", season="Life"}, {name="Sur", season="Life"}, {name="Ith", season="Low"}, {name="Trint", season="Low"}, {name="Sorth", season="Low"}}

function h.GetMonthFromInt( inInt )
   if MonthTable[inInt] == nil then
      return nil
   end
   return MonthTable[inInt]["name"]
end