mirror of
https://github.com/ComfyFactory/ComfyFactorio.git
synced 2025-02-01 13:08:05 +02:00
Rpg - fix weird spell gui
This commit is contained in:
parent
2f413c3c17
commit
e3875bee28
@ -1258,7 +1258,8 @@ function Public.get_all_spells_filtered(rpg_t)
|
|||||||
local spell_names = {}
|
local spell_names = {}
|
||||||
|
|
||||||
for i = 1, #spells do
|
for i = 1, #spells do
|
||||||
if spells[i].enabled and rpg_t and rpg_t.level >= spells[i].level then
|
-- if spells[i].enabled and rpg_t and rpg_t.level >= spells[i].level then -- this needs fixing.
|
||||||
|
if spells[i].enabled then
|
||||||
new_spells[#new_spells + 1] = spells[i]
|
new_spells[#new_spells + 1] = spells[i]
|
||||||
spell_names[#spell_names + 1] = spells[i].name
|
spell_names[#spell_names + 1] = spells[i].name
|
||||||
end
|
end
|
||||||
|
Loading…
x
Reference in New Issue
Block a user