Skip to content

Armor name weirdness #19

@wwylele

Description

@wwylele

at

.get(armor_series.armor_series.0 as usize); // ?!
and
let name = msg
.entries
.get(id)
.with_context(|| format!("Cannot find name for armor {:?}", armor.pl_armor_id))?; // ?!
let explain = explain_msg
.entries
.get(id)
.with_context(|| format!("Cannot find name for armor {:?}", armor.pl_armor_id))?; // ?!

where we look up the armor name from msg, unlike other names, we uses armor ID to match against msg entry index, instead of the msg entry name. This appears to be the correct matching, but why is it? Is this the actually correct method, or there is a hidden armor ID -> msg entry name mapping somewhere? Could we also be wrong about using msg entry name anywhere else?

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