Module:Param Parse: Difference between revisions

Jump to navigation Jump to search
Content added Content deleted
(correctly label quest use)
(revert last 2 changes, I confused myself)
Tag: Manual revert
Line 655: Line 655:
}
}


-- Quest
-- Quest - for use by quest inventory items that are linked to a quest
function parse.quest_smw(quest)
if quest == 'No' then
return nil
end
return parse.has_content(quest)
end

parse.quest = {
parse.quest = {
name = 'quest_use',
name = 'quest',
func = parse.has_content,
func = parse.has_content,
smw_property = 'Quest use',
smw_property = 'Quest',
smw_func = parse.has_content,
smw_func = parse.quest_smw,
category_incomplete = 'Needs quest'
category_incomplete = 'Needs quest'
}

-- Quest_use, for use by backpack items that involved in quests
parse.quest_use = {
name = 'quest_use',
func = parse.has_content,
smw_property = 'Quest use',
smw_func = parse.has_content,
}
}