Skip to content

Commit

Permalink
Round spell costs for Lua 5.3
Browse files Browse the repository at this point in the history
  • Loading branch information
IllyaMoskvin committed Dec 26, 2019
1 parent 8d5b088 commit 9626873
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion generate.lua
Original file line number Diff line number Diff line change
Expand Up @@ -145,7 +145,7 @@ for i, file in pairs(config['files']) do
for _, spell in pairs(espParser.files[file].spells) do
-- type: 0 = Spell, see https://en.uesp.net/morrow/tech/mw_esm.txt
if spell.data.type == 0 then
spells[spell.refId] = spell.data.cost
spells[spell.refId] = math.floor(spell.data.cost+0.5)
end
end
end
Expand Down

0 comments on commit 9626873

Please sign in to comment.