Module:GameData: Difference between revisionsGive feedback
Jump to navigation
Jump to search
Add public entity_matches() and refactor get_entities to reuse it, so ability-list membership can share one matching implementation (with help from vergir-bot LLM) |
add comment about subabilities |
||
| Line 18: | Line 18: | ||
-- - Name must not be nil | -- - Name must not be nil | ||
-- - IsSelectable, if present, must not be false | -- - IsSelectable, if present, must not be false | ||
-- Specifically for hero abilities, some of them are split into two entities, eg. Vexing Bolt has a sub-ability: Redirect Bolt. | |||
-- The secondary sub-abilities most often have nil name and get filtered out by this function | |||
local function is_active(record) | local function is_active(record) | ||
if record["IsDisabled"] == true then return false end | if record["IsDisabled"] == true then return false end | ||