Skip to content

Configs

SSKirillSS edited this page Feb 16, 2024 · 7 revisions

Configuration files are located in the directory ../configs/%modid%/%itemid%.json. Each relic has its unique configuration, which is built according to one common template and is divided into several categories:


Abilities

ability block includes a list of abilities that are inherent to each specific relic. Each ability guaranteedly contains a list of several parameters:

  • requiredPoints - the number of upgrade points required to increase the ability level.
  • requiredLevel - the relic level from which the ability is unlocked.
  • maxLevel - the maximum level to which the ability can be raised.
  • stats - a block element containing a list of characteristics of each specific ability. It has a number of parameters:
    • minInitialValue/maxInitialValue - the minimum and maximum base value of the stat. It is randomly chosen within a given range when the relic is first created.
    • minThresholdValue/maxThresholdValue - the minimum and maximum threshold value of the characteristic. It defines a hard limit that cannot be exceeded through ability level upgrades or other means.
    • upgradeOperation - the type of mathematical expression executed when calculating the characteristic's value depending on the ability level. Supports the following values: MULTIPLY_BASE, MULTIPLY_TOTAL, and ADD.
      x - Base stat value | y - Value of upgradeModifier | z - Current relic level
      ADD: x + (y * z) | MULTIPLY_BASE: x + ((x * y) * z) | MULTIPLY_TOTAL: x * (y - 1)^z
    • upgradeModifier - the modifier of the mathematical expression applied to the base value of the characteristic depending on the upgradeOperation parameter.

Leveling

leveling block includes a set of characteristics responsible for leveling up the relic:

  • initialCost - the amount of experience required to level up to relic level 1
  • maxLevel - the maximum level of the relic
  • step - the amount of experience by which the amount of experience required for each level of the relic increases

Loot

loot block is responsible for generating items in chests and includes the following:

  • entries - a list of key-value pairs, where the key is a textual identifier of the loot table (supports regular expressions), and the value is the probability of generating the relic within its bounds.

Clone this wiki locally