Module:Monsters: Difference between revisions

Slight change to formatting
(Prepped Monster data for a statblock)
 
(Slight change to formatting)
Line 15: Line 15:


function p.getMonsterStat(frame)
function p.getMonsterStat(frame)
   local MonsterName = frame.args[1]
   local MonsterName = frame.args ~= nil and frame.args[1] or frame[1]
   local StatName = frame.args[2]
   local StatName = frame.args ~= nil and frame.args[2] or frame[2]
   local monster = p.getMonster(MonsterName)
   local monster = p.getMonster(MonsterName)
   if monster ~= nil then
   if monster ~= nil then