Data:Dervish skills

From Caves of Qud Wiki
Revision as of 21:38, 23 November 2020 by Egocarib (talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

The dervish of the Sightless Way, high dervish of the Sightless Way, and arch dervish of the Sightless Way have their skills chosen randomly from one of the following tables.[1][2]

Each dervish has an equal chance of having any of the following four skills (25% chance each).

Dervishes then have a pre-determined chance to obtain several randomly-selected subskills within the associated skill table listed below. Each subskill has an equal chance of being selected.

Skill Tables

Technical Details: Generation Algorithm

  • The game selects a random skill type for the dervish (25% chance to get any particular skill)
  • The game selects a number based on the tier of dervish (dervish = 2, high dervish = 4, arch dervish = 6).
  • The game randomly selects up to number subskills from the chosen skill tree.
    • The selection is done by a code loop that will iterate up to 20 times at maximum, choosing a random subskill with each iteration. If the dervish does not have the subskill already, and they have not yet reached total number of subskills, the game adds that subskill to the dervish. Due to this limited looping mechanism, it is possible for a dervish to have fewer than 2, 4, or 6 subskills (respectively) if the game's selection loop continuously picks the same subskills that were already chosen in previous iterations, and hits the 20 iteration limit before fully populating the maximum number of subskills.

References

This information is reliable as of patch 2.0.201.50.
  1. XRL.World.Parts.PsionicDervish
  2. PopulationTables.xml