17,105
edits
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' |