refactor: code review suggestions
This commit is contained in:
@@ -139,6 +139,7 @@ function ModListClass:ListInternal(context, result, cfg, flags, keywordFlags, so
|
||||
for i = 1, #self do
|
||||
local mod = self[i]
|
||||
if mod.name == modName and mod.type == "LIST" and band(flags, mod.flags) == mod.flags and MatchKeywordFlags(keywordFlags, mod.keywordFlags) and (not source or mod.source:match("[^:]+") == source) then
|
||||
local value
|
||||
if mod[1] then
|
||||
local value = context:EvalMod(mod, cfg) or nullValue
|
||||
if value then
|
||||
|
||||
@@ -1517,5 +1517,5 @@ return {
|
||||
["kill_enemy_on_hit_if_under_10%_life"] = {
|
||||
mod("CullPercent", "MAX", nil),
|
||||
value = 10
|
||||
}
|
||||
},
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user