Skip to content

Add rarity points #24

Description

@erwan-joly

Add rarity points
Add rarity rates

        public int RarityPoint(short rarity, short lvl)
        {
            var p = rarity switch
            {
                0 => 0,
                1 => 1,
                2 => 2,
                3 => 3,
                4 => 4,
                5 => 5,
                6 => 7,
                7 => 10,
                8 => 15,
                _ => rarity * 2,
            };
            return p * (lvl / 5 + 1);
        }

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions