APR.LevelBonusSources

Reusable XP-bonus sources referenced by name in profiles.

值的格式
table
作用范围
xp-configuration

技术说明保留英文原文。字段名称和 Lua 示例保持不变。

示例

示例来自源文件。请根据你的路线替换 ID 和数值;本网站不会执行 Lua。

Lua · 01
APR.LevelBonusSources = {
    ForeverFood = {
        gameVersion = "forever",
        -- Herb Baked Egg grants 5% kill XP for 15 minutes after eating for 10 seconds.
        -- The shared XP aura also suppresses the reminder when another buff food is active.
        -- Keep this kill-only bonus out of quest XP requirement profiles.
        auras = { 1243969 }, -- Well Fed XP Boost -- 1243969: Well Fed XP Boost
        bonus = 5,
        items = { 6888 }, -- Herb Baked Egg -- 6888: 草药烘蛋
    },
    MysteriousWisdom = {
        auras = { 1221184 }, -- 1221184: 神秘智慧之涌
        bonus = 10,
        items = { 239142 }, -- 239142: 神秘智慧之瓶
    },
    Darkmoon = {
        -- WHEE! and the hat provide the same non-stacking bonus.
        auras = { 136583, 46668 }, -- 136583: 暗月大礼帽 ; 46668: 耶!
        bonus = 10,
        items = { 93730, 171364 }, -- 93730: 暗月大礼帽 ; 171364: 暗月大礼帽
    },
    TenLands = {
        auras = { 289982 }, -- 289982: 十地饮剂
        bonus = 10,
        items = { 166750, 166751 }, -- 166750: 十地饮剂 ; 166751: 十地饮剂
        maxLevelExclusive = 50,
    },
    Timeways = {
        -- Take the highest active variant; Knowledge and Mastery never add together.
        auraBonuses = {
            [1269517] = { [1] = 5, [2] = 10, [3] = 15, [4] = 30 }, -- 1269517: 时间流学识
            [423860] = { [1] = 5, [2] = 10, [3] = 15, [4] = 30 }, -- 423860: 时间流学识
            [1269518] = 30, -- 1269518: 时间流精通
            [1229050] = 30, -- 1229050: 时间流精通
            [1258528] = 30, -- 1258528: 时间流精通
            [471544] = 30, -- 471544: 时间流精通
            [423861] = 30, -- 423861: 时间流精通
        },
    },
    WarMode = {
        isActive = function() return C_PvP and C_PvP.IsWarModeActive and C_PvP.IsWarModeActive() or false end,
        bonus = 15,
    },
    Below80Mentorship = {
        auras = { 430191 }, -- 430191: 战团升级指导
        maxLevelExclusive = 80,
        achievementBonuses = {
            [19470] = 5, -- 19470: 一位战团导师:地心之战
            [19460] = 10, -- 19460: 两位战团导师:地心之战
            [19475] = 15, -- 19475: 三位战团导师:地心之战
            [19476] = 20, -- 19476: 四位战团导师:地心之战
            [19477] = 25, -- 19477: 五位战团导师:地心之战
        },
    },
    WindsOfMysteriousFortune = {
        auras = { 1287282, 1214848 }, -- 1287282: 神秘运势之风 ; 1214848: 神秘运势之风
        bonus = 20,
    },
    MidnightMentorship = {
        auras = { 430191 }, -- 430191: 战团升级指导
        minLevel = 80,
        maxLevelExclusive = 90,
        achievementBonuses = {
            [42328] = 5, -- 42328: 一位战团导师:至暗之夜
            [42329] = 10, -- 42329: 两位战团导师:至暗之夜
            [42330] = 15, -- 42330: 三位战团导师:至暗之夜
            [42331] = 20, -- 42331: 四位战团导师:至暗之夜
            [42332] = 25, -- 42332: 五位战团导师:至暗之夜
        },
    },
}

Available bonus sources

  • Food (Forever) · ForeverFood · 5%

    Forever; kill XP only; excluded from quest XP profiles.

    Well Fed XP Boost (1243969) · 草药烘蛋 (6888)

  • Mysterious Wisdom · MysteriousWisdom · 10%

    神秘智慧之涌 (1221184) · 神秘智慧之瓶 (239142)

  • Darkmoon Faire · Darkmoon · 10%

    Aura variants do not stack.

    暗月大礼帽 (136583) · 耶! (46668) · 暗月大礼帽 (93730) · 暗月大礼帽 (171364)

  • Ten Lands · TenLands · 10%

    Below level 50.

    十地饮剂 (289982) · 十地饮剂 (166750) · 十地饮剂 (166751)

  • Timeways · Timeways · 5 / 10 / 15 / 30%

    Only the highest active variant counts.

    时间流学识 (1269517) · 时间流学识 (423860) · 时间流精通 (1269518) · 时间流精通 (1229050) · 时间流精通 (1258528) · 时间流精通 (471544) · 时间流精通 (423861)

  • War Mode · WarMode · 15%

    Requires active War Mode; no entity ID.

  • Mentorship (below level 80) · Below80Mentorship · 5 / 10 / 15 / 20 / 25%

    Below level 80; the highest completed achievement tier counts.

    战团升级指导 (430191) · 一位战团导师:地心之战 (19470) · 两位战团导师:地心之战 (19460) · 三位战团导师:地心之战 (19475) · 四位战团导师:地心之战 (19476) · 五位战团导师:地心之战 (19477)

  • Winds of Mysterious Fortune · WindsOfMysteriousFortune · 20%

    Requires an active event aura.

    神秘运势之风 (1287282) · 神秘运势之风 (1214848)

  • Midnight Mentorship · MidnightMentorship · 5 / 10 / 15 / 20 / 25%

    Levels 80–89; the highest completed achievement tier counts.

    战团升级指导 (430191) · 一位战团导师:至暗之夜 (42328) · 两位战团导师:至暗之夜 (42329) · 三位战团导师:至暗之夜 (42330) · 四位战团导师:至暗之夜 (42331) · 五位战团导师:至暗之夜 (42332)

Referenced game data

All supported game data referenced by this option and its documented bonus sources. Each link opens the corresponding Wowhead entry.

TypeIDNameBonus source
Spell / aura1243969Well Fed XP Boost ↗Name from APR configuration; aura absent from Wowhead Retail tooltips. The link opens an ID lookup.ForeverFood
Spell / aura1221184神秘智慧之涌 ↗MysteriousWisdom
Spell / aura136583暗月大礼帽 ↗Darkmoon
Spell / aura46668耶! ↗Darkmoon
Spell / aura289982十地饮剂 ↗TenLands
Spell / aura1269517时间流学识 ↗Timeways
Spell / aura423860时间流学识 ↗Timeways
Spell / aura1269518时间流精通 ↗Timeways
Spell / aura1229050时间流精通 ↗Timeways
Spell / aura1258528时间流精通 ↗Timeways
Spell / aura471544时间流精通 ↗Timeways
Spell / aura423861时间流精通 ↗Timeways
Spell / aura430191战团升级指导 ↗Below80Mentorship, MidnightMentorship
Spell / aura1287282神秘运势之风 ↗WindsOfMysteriousFortune
Spell / aura1214848神秘运势之风 ↗WindsOfMysteriousFortune
Item6888草药烘蛋 ↗ForeverFood
Item239142神秘智慧之瓶 ↗MysteriousWisdom
Item93730暗月大礼帽 ↗Darkmoon
Item171364暗月大礼帽 ↗Darkmoon
Item166750十地饮剂 ↗TenLands
Item166751十地饮剂 ↗TenLands
Achievement19470一位战团导师:地心之战 ↗Below80Mentorship
Achievement19460两位战团导师:地心之战 ↗Below80Mentorship
Achievement19475三位战团导师:地心之战 ↗Below80Mentorship
Achievement19476四位战团导师:地心之战 ↗Below80Mentorship
Achievement19477五位战团导师:地心之战 ↗Below80Mentorship
Achievement42328一位战团导师:至暗之夜 ↗MidnightMentorship
Achievement42329两位战团导师:至暗之夜 ↗MidnightMentorship
Achievement42330三位战团导师:至暗之夜 ↗MidnightMentorship
Achievement42331四位战团导师:至暗之夜 ↗MidnightMentorship
Achievement42332五位战团导师:至暗之夜 ↗MidnightMentorship

The catalog lists the entries configured by APR. Adding another item or spell requires a supported source configuration; its ID alone does not enable a new bonus.

运行方式与详细说明

Type demonstrated by the cited existing configuration declaration; not an exhaustive schema or a required-field inference.

Configurable Level Profiles

Definitions live in APR-Core/config/LevelProfiles.lua. Reload after editing.

Definition / fieldMeaning
APR.LevelBonusSourcesReusable XP-bonus sources referenced by name in profiles.
Source auras / isActiveAny listed active aura OR a true predicate activates the source once. Item ownership alone never activates a bonus.
Source bonusPercentage contributed while active.
Source achievementBonusesAchievement ID → percentage; highest completed tier wins, while the source must still be active.
Source auraBonusesAura ID → percentage or stack-count tiers. Selects the highest active variant and highest matched stack tier; missing/restricted counts use one application.
Source minLevel / maxLevelExclusiveInclusive minimum and exclusive maximum; sources outside their range contribute nothing.
Source itemsUsable item IDs offered as optional reminders when the source's aura is absent.
APR.LevelRequirementProfilesNamed profiles with bonuses = { "SourceName", ... } and levels = { [0] = 88, [20] = 87.25 }.
Profile levels[0] required. Greatest bonus breakpoint not exceeding the active total wins; no interpolation (12% uses 10%, if the next row is 20%).
Unknown source/profileRaises an error rather than silently dropping the threshold.
Refresh and progressionBonuses refresh as auras, achievements, levels and world state change. Updates do not rewind skipped steps or remove inserted parallel groups.

已从 GitHub 同步 · 6d80020 · 已保存的数据快照

搜索百科

12 条结果

浏览百科