Skip to content
Snippets Groups Projects
Commit e0ec011f authored by Otowa Kotori's avatar Otowa Kotori
Browse files

Make random sentient staff can really spawn

rng.percent will only accept integer, so I raised the chance for 10x
parent 4c380272
No related branches found
No related tags found
1 merge request!681Misc 1.73 fixes
......@@ -1382,8 +1382,11 @@ function resolvers.calc.staff_element(t, e)
if command_flavor or command_element then e:commandStaff(command_element, command_flavor) end
-- hee hee
if not e.unique and rng.percent(0.1 * (e.material_level or 1) - 0.3) then
e.combat.sentient = rng.table{"default", "aggressive", "fawning"}
if not e.unique then
local chance = math.max((e.material_level or 1) - 3, 0)
if rng.percent(chance) then
e.combat.sentient = rng.table{"default", "aggressive", "fawning"}
end
end
end
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment