Equipment, Alchemicae

Issue #30 resolved
Marino Sergo created an issue

How to set cost for alchemicae? They have cost per level.

Comments (2)

  1. Bernhard Jung repo owner

    I think the solution would be to enter every potion 6 times, one entry for very QL.

  2. Bernhard Jung repo owner

    I solved this. The application automatically creates the entries for the different QLs when loading the data. To make this happen the entry in the JSON file will need the property "explode": 6. This will create 6 entries according to the following rules:

    • A number is added to the end of the id of every entry, so if the id in the JSON file is "healingpotion" the resulting ids will be "healingpotion1", "healingpotion2"....
    • The name and abbreviation of the potion are processed by the string format function and the number as argument. So a %1 in the text will be replaced by the number. If the name is "Healing potion QL %1" this will result in the names "Healing potion QL 1", "Healing potion QL 2"....
    • The cost of the item is multiplied by the number.
  3. Log in to comment