Source achievementBonuses
Achievement ID → percentage; highest completed tier wins, while the source must still be active.
- 值的格式
- table
- 作用范围
- xp-bonus-source
技术说明保留英文原文。字段名称和 Lua 示例保持不变。
示例
源文件示例。请根据你的路线替换 ID 和数值;本网站不会执行 Lua。
Lua · 01
achievementBonuses = {
[19470] = 5,
[19460] = 10,
[19475] = 15,
[19476] = 20,
[19477] = 25,
},行为与详情
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.
Configurable Level Profiles
| Definition / field | Meaning |
|---|---|
APR.LevelBonusSources | Reusable XP-bonus sources referenced by name in profiles. |
Source auras / isActive | Any listed active aura OR a true predicate activates the source once. Item ownership alone never activates a bonus. |
Source bonus | Percentage contributed while active. |
Source achievementBonuses | Achievement ID → percentage; highest completed tier wins, while the source must still be active. |
Source auraBonuses | Aura ID → percentage or stack-count tiers. Selects the highest active variant and highest matched stack tier; missing/restricted counts use one application. |
Source minLevel / maxLevelExclusive | Inclusive minimum and exclusive maximum; sources outside their range contribute nothing. |
Source items | Usable item IDs offered as optional reminders when the source's aura is absent. |
APR.LevelRequirementProfiles | Named 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/profile | Raises an error rather than silently dropping the threshold. |
| Refresh and progression | Bonuses refresh as auras, achievements, levels and world state change. Updates do not rewind skipped steps or remove inserted parallel groups. |