17,101
edits
(Implement getPrayers()) |
(_getPrayerEffect: Support listing enemy modifiers) |
||
Line 98: | Line 98: | ||
local bonusLines = {} | local bonusLines = {} | ||
for bonusKey, bonusVal in Shared.skpairs(prayer.modifiers) do | if type(prayer.modifiers) == 'table' then | ||
table.insert(bonusLines, chr..Constants._getModifierText(bonusKey, bonusVal, false)) | for bonusKey, bonusVal in Shared.skpairs(prayer.modifiers) do | ||
table.insert(bonusLines, chr .. Constants._getModifierText(bonusKey, bonusVal, false)) | |||
end | |||
end | |||
if type(prayer.enemyModifiers) == 'table' then | |||
for bonusKey, bonusVal in Shared.skpairs(prayer.enemyModifiers) do | |||
table.insert(bonusLines, chr .. 'Gives the enemy: ' .. Constants._getModifierText(bonusKey, bonusVal, false)) | |||
end | |||
end | end | ||