Skip to content

Commit

Permalink
Fix spells without spawn_level breaking mod
Browse files Browse the repository at this point in the history
  • Loading branch information
TheHorscht committed Aug 14, 2021
1 parent 866c81f commit eae3fa3
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 2 deletions.
3 changes: 3 additions & 0 deletions changelog.txt
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
v1.15.5:
- FIX: Some mods with custom spells would break the anvil

v1.15.4:
- Added recipes for Sima and Juhannussima, which uses the same bonus as Whiskey
- Added recipe for Lively Concoction, which uses the same bonus as Healthium
Expand Down
2 changes: 1 addition & 1 deletion init.lua
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ function build_spell_level_lookup_table()
for i,v in ipairs(actions) do
s = s .. " [\"_" .. v.id .. "\"] = " .. "{"
-- split spell levels by comma
for spell_level in v.spawn_level:gmatch("([^,]+)") do
for spell_level in (v.spawn_level and v.spawn_level or "10"):gmatch("([^,]+)") do
s = s .. spell_level .. ","
end
s = s .. "},\n"
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "anvil_of_destiny",
"version": "1.15.4",
"version": "1.15.5",
"description": "A mod for Noita (https://noitagame.com/) which adds an anvil into the default biomes, which lets you forge two wands into a new one!",
"main": "",
"scripts": {
Expand Down

0 comments on commit eae3fa3

Please sign in to comment.