Anonymous

Module:CombatAreas: Difference between revisions

From Melvor Idle
_getAreaStat: Readd effect value into area effect descriptions
m (Remove console logging)
(_getAreaStat: Readd effect value into area effect descriptions)
Line 137: Line 137:
   elseif statName == 'areaEffectDesc' then
   elseif statName == 'areaEffectDesc' then
     if area.areaEffect ~= nil and area.areaEffect then
     if area.areaEffect ~= nil and area.areaEffect then
       return area.areaEffectDescription
       return string.gsub(area.areaEffectDescription, '${effectValue}', area.areaEffectValue or 0)
     else
     else
       return 'None'
       return 'None'