Minor tweaks to compiling item data

This commit is contained in:
Maruno17
2022-02-15 19:16:55 +00:00
parent f322b234c6
commit dd78075657
2 changed files with 4 additions and 5 deletions

View File

@@ -478,6 +478,7 @@ module Compiler
end
consumable = !([3, 4, 5].include?(line[7]) || line[8] >= 6)
line[7] = 1 if line[7] == 5
line[7] = 5 if line[7] == 6
line[8] -= 5 if line[8] > 5
flags = []
flags.push(line[9]) if !nil_or_empty?(line[9])