NUVIE: Fix Ultima 6 spawned NPC weapon loadout

Fixes #13530
This commit is contained in:
PushmePullyu 2023-03-23 03:53:22 +01:00 committed by Paul Gilbert
parent fe9df60c73
commit f10023f2c4

View File

@ -587,6 +587,7 @@ function actor_init(actor, alignment)
--actor weapon
chance = 2
for i,v in ipairs(actor_base[23]) do
if math.random(1,chance) == 1 then
if v >= 36 and v <= 38 then --spear, throwing axe, dagger
qty = math.random(6, 12)
else
@ -615,6 +616,7 @@ function actor_init(actor, alignment)
Actor.inv_add_obj(actor, obj)
end
end
end
chance = chance * 2
end