![]() ![]() If you generated no perks, the gizmo shell and the materials are not consumed.If either one of the perks generated was a two-slot perk (Enhanced Devoted or Enhanced Efficient), set the second perk generated to nothing.Once you have generated 2 perks, or ran out of perks to check, we are done.Subtract the rank cost from invent budget and continue to the next perk with the new invent budget. If invent budget is strictly greater than the rank cost, this perk-rank combination is generated.If the current invent budget is less than or equal to the rank cost, move on to the next perk.For each perk in the sorted perk values, in reverse order:.Sort the perks in ascending order of rank cost (lowest value first) using a modified quicksort algorithm (see below).These perks cannot be generated, however must still be included at this point as it affects the operation of the following sorting algorithm. If the perk value is less than the lowest rank threshold for a given perk, then set the rank to 0 with a cost of 0. Calculate the rank generated by finding the largest rank threshold that the corresponding perk value is greater than or equal to.This is done by calculating base + random(0, roll) for each material and each perk, summing the values if multiple materials use the same perk. ![]() Keep track of perks available in an array add this to the array in order of the materials, iterating the slots in order middle, top, left, right, bottom (along with top-left, top-right, bottom-left, and bottom-right if using an ancient gizmo). ![]() Calculate the perk values for each perk that can be generated by the input materials.If invent budget is below your Invention level, set it to your Invention level.If using an ancient gizmo, an additional roll (a total of 6) is performed. This is calculated by summing 5 rolls of random(0, floor(invention level / 2) + 20) (that means 5 separate random rolls includes boosts to Invention level). For example, the Precise perk has thresholds 50, 80, 130, 170, 210, and values 35, 65, 120, 160, 195, corresponding to each of the 5 ranks. Using air wave will give you full weapon damage unless you have a weapon. Air wave is a level 59 magic spell, and the next air spell you unlock is air surge at level 81. Additionally, each perk has a number of ranks, and each rank has two associated numbers - a rank threshold ( threshold), and a rank value ( cost). Spell damage scales up to the next spell tier of the same type, or until it hits the maximum damage of your magic weapon (based on weapon level.) For example, look at air wave. ![]()
0 Comments
Leave a Reply. |