Module:AchievementSystem: Difference between revisions
// via Wikitext Extension for VSCode |
// via Wikitext Extension for VSCode Tag: Reverted |
||
| Line 69: | Line 69: | ||
-- This array maps legacy achievement IDs to standardized ones | -- This array maps legacy achievement IDs to standardized ones | ||
local ACHIEVEMENT_TYPE_MAPPING = { | local ACHIEVEMENT_TYPE_MAPPING = { | ||
["title-test"] = "dev-role", | ["title-test"] = "dev-role", -- dev-role is used for title achievements only | ||
["jedi"] = "ach1", | ["jedi"] = "ach1", -- ach1, ach2, ach3 are used for badge achievements | ||
["champion"] = "ach2", | ["champion"] = "ach2", | ||
["sponsor"] = "ach3" | ["sponsor"] = "ach3" | ||
| Line 80: | Line 80: | ||
-- If it's already a standard type, return it directly | -- If it's already a standard type, return it directly | ||
if achievementType == "dev-role" or | if achievementType == "dev-role" or -- Title-only achievement | ||
achievementType == "ach1" or | achievementType == "ach1" or -- Badge achievements | ||
achievementType == "ach2" or | achievementType == "ach2" or | ||
achievementType == "ach3" then | achievementType == "ach3" then | ||