Release 1.3.21

- Overhauled buff/debuff and curse handling
- Added support for Punishment, Generosity and Block Chance Reduction
- Minor corrections to unique stat wording
This commit is contained in:
Openarl
2017-03-20 21:06:47 +10:00
parent 946f042501
commit c9a5e7fc9a
16 changed files with 390 additions and 88 deletions

View File

@@ -113,6 +113,10 @@ function modLib.formatValue(value)
return "{"..ret.."}"
end
function modLib.formatMod(mod)
return string.format("%s = %s|%s|%s|%s|%s", modLib.formatValue(mod.value), mod.name, mod.type, modLib.formatFlags(mod.flags, ModFlag), modLib.formatFlags(mod.keywordFlags, KeywordFlag), modLib.formatTags(mod.tagList))
function modLib.formatModParams(mod)
return string.format("%s|%s|%s|%s|%s", mod.name, mod.type, modLib.formatFlags(mod.flags, ModFlag), modLib.formatFlags(mod.keywordFlags, KeywordFlag), modLib.formatTags(mod.tagList))
end
function modLib.formatMod(mod)
return modLib.formatValue(mod.value) .. " = " .. modLib.formatModParams(mod)
end