Skip to content

Highlight current perk level in wiki #1562

@abitrolly

Description

@abitrolly

Perks page gives only green or red status to indicate is the perk is obtained. But many perks have several levels, which are shown together as green.

Image

While the actual perk level may be lower.

Image

The proposal is to highlight achieved level in green, and leave the rest in red.

The code that renders achievements in wiki is here.

Evolve/src/achieve.js

Lines 1054 to 1059 in f316821

blackhole: {
name: loc(`achieve_blackhole_name`),
desc(wiki){
let bonus = wiki ? "5/10/15/20/25" : global.stats.achieve['blackhole'] ? global.stats.achieve.blackhole.l * 5 : 5;
return loc("achieve_perks_blackhole",[bonus]);
},

Just need to figure out how to replace the static string with highlighted - find where the style is applied, and how to split the string.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions