Commit 617a04a53ac2721f9f8b969d0466bbdb4065ea54

Authored by Lisa Greene
1 parent 041958c6

Tune numbers and ensure comment accuracy

... ... @@ -2096,8 +2096,6 @@ function _M:applyRandomClass(b, data, instant)
2096 2096 end
2097 2097 if data.autolevel ~= false then b.autolevel = data.autolevel or "random_boss" end
2098 2098
2099   - local tt_unlocked = {} -- unlocked categories by base
2100   - local tt_locked = {} -- locked categories by base
2101 2099 -- Class talent categories
2102 2100 local ttypes = {}
2103 2101 for tt, d in pairs(mclass.talents_types or {}) do b:learnTalentType(tt, true) b:setTalentTypeMastery(tt, (b:getTalentTypeMastery(tt) or 1) + d[2]) ttypes[tt] = table.clone(d) end
... ... @@ -2176,11 +2174,11 @@ function _M:applyRandomClass(b, data, instant)
2176 2174 nb_focus = math.floor(0.2 + rng.float(0.25, 0.35)*(math.max(0,data.level))^0.55) -- first around 8-10, second around 25-35, third around 50-70
2177 2175 nb_shallow = 2 + math.floor(0.25 + rng.float(0.1, 0.2)*(math.max(0,data.level))^0.6) -- third around 12-30, fourth 40-80
2178 2176 elseif rank >= 4 then --boss/elite boss
2179   - nb_focus = 1 + math.floor(0.25 + rng.float(0.12, 0.33)*(math.max(0,data.level-4))^0.5) -- second around 10-16, third around 30-50, fourth around 60-85 uncommonly
2180   - nb_shallow = 1 + math.floor(0.33 + rng.float(0.1, 0.18)*(math.max(0,data.level-3))^0.6) -- second around 12-20, third 40-80
  2177 + nb_focus = 1 + math.floor(0.25 + rng.float(0.18, 0.33)*(math.max(0,data.level-4))^0.5) -- second around 11-23, third around 35-75, fourth around 80-90 rarely
  2178 + nb_shallow = 1 + math.floor(0.33 + rng.float(0.125, 0.2)*(math.max(0,data.level-3))^0.6) -- second around 12-20, third 40-80
2181 2179 else --unique
2182   - nb_focus = 1 + math.floor(0.2 + rng.float(0.1, 0.3)*(math.max(0,data.level-10))^0.5) -- second around 17-30, third around 40-80
2183   - nb_shallow = 1 + math.floor(0.7 + rng.float(0.1, 0.2)*(math.max(0,data.level-8))^0.6) -- second around 12-14, third around 30-70, fourth around 70-90 rarely
  2180 + nb_focus = 1 + math.floor(0.2 + rng.float(0.15, 0.3)*(math.max(0,data.level-10))^0.5) -- second around 20-40, third around 50-90
  2181 + nb_shallow = 1 + math.floor(0.7 + rng.float(0.125, 0.2)*(math.max(0,data.level-8))^0.6) -- second around 11-14, third around 30-60, fourth around 70-90 rarely
2184 2182 end
2185 2183 print("Adding "..nb_focus.." primary trees to boss")
2186 2184 print("Adding "..nb_shallow.." secondary trees to boss")
... ...