Skip to main content

experience_rank

Function experience_rank 

Source
pub fn experience_rank(
    tables: &StartposTables,
    index: &CampaignIndex,
    agent: &str,
    experience: i64,
) -> Result<(u32, u32)>
Expand description

Returns the rank and skill points of a character with some experience: how many of its agent type’s character_experience_skill_tiers thresholds the experience reaches, and their skill points. Verified on Thrones’ campaign: 512 of 512 characters.

§Errors

Returns an error if a table or column is missing.