4,951
edits
Falterfire (talk | contribs) (Change to fit new format for getting spells by id) |
Falterfire (talk | contribs) (Now uses Module:CombatAreas instead of directly pulling from Module:CombatAreas/data) |
||
Line 3: | Line 3: | ||
local Constants = mw.loadData('Module:Constants/data') | local Constants = mw.loadData('Module:Constants/data') | ||
local MonsterData = mw.loadData('Module:Monsters/data') | local MonsterData = mw.loadData('Module:Monsters/data') | ||
local Areas = require('Module:CombatAreas') | |||
local Magic = require('Module:Magic') | local Magic = require('Module:Magic') | ||
local Shared = require('Module:Shared') | local Shared = require('Module:Shared') | ||
Line 200: | Line 200: | ||
local result = '' | local result = '' | ||
local areaList = Areas.getMonsterAreas(monster.id) | |||
for i, area in pairs(areaList) do | |||
if i > 1 then result = result..'<br/>' end | |||
result = result..Icons.Icon({area.name, type = area.type}) | |||
for i, area in pairs( | |||
if | |||
end | end | ||
return result | return result |