From 982d92176a445e8a451f3186a1c04501cd108923 Mon Sep 17 00:00:00 2001 From: Bunny <glisa825@gmail.com> Date: Thu, 6 Aug 2020 18:27:44 -0400 Subject: [PATCH] Expand randomization range for amount of talent trees --- game/modules/tome/class/GameState.lua | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/game/modules/tome/class/GameState.lua b/game/modules/tome/class/GameState.lua index bd0e1c7e4e..fa6ce75b1c 100644 --- a/game/modules/tome/class/GameState.lua +++ b/game/modules/tome/class/GameState.lua @@ -2176,14 +2176,14 @@ function _M:applyRandomClass(b, data, instant) local nb_focus, nb_shallow = 0, 0 local rank = b.rank if rank <= 3.2 then --rare - nb_focus = math.floor(0.2 + rng.float(0.25, 0.35)*(math.max(0,data.level-3))^0.5) - nb_shallow = 2 + math.floor(0.25 + rng.float(0.1, 0.2)*(math.max(0,data.level-6))^0.5) + nb_focus = math.floor(0.2 + rng.float(0.22, 0.35)*(math.max(0,data.level-3))^0.5) + nb_shallow = 2 + math.floor(0.25 + rng.float(0.08, 0.2)*(math.max(0,data.level-6))^0.5) elseif rank >= 4 then --boss/elite boss - nb_focus = 1 + math.floor(0.25 + rng.float(0.18, 0.33)*(math.max(0,data.level-6))^0.5) - nb_shallow = 1 + math.floor(0.3 + rng.float(0.125, 0.2)*(math.max(0,data.level-4))^0.5) + nb_focus = 1 + math.floor(0.25 + rng.float(0.15, 0.35)*(math.max(0,data.level-6))^0.5) + nb_shallow = 1 + math.floor(0.3 + rng.float(0.1, 0.2)*(math.max(0,data.level-4))^0.5) else --unique nb_focus = 1 + math.floor(0.2 + rng.float(0.15, 0.3)*(math.max(0,data.level-10))^0.5) - nb_shallow = 1 + math.floor(0.55 + rng.float(0.125, 0.2)*(math.max(0,data.level-8))^0.5) + nb_shallow = 1 + math.floor(0.55 + rng.float(0.1, 0.2)*(math.max(0,data.level-8))^0.5) end print("Adding "..nb_focus.." primary trees to boss") print("Adding "..nb_shallow.." secondary trees to boss") -- GitLab