Skip to content

Commit

Permalink
Add new spells
Browse files Browse the repository at this point in the history
  • Loading branch information
dextercd committed Jun 2, 2023
1 parent 3fbfd37 commit c6d2d11
Showing 1 changed file with 22 additions and 0 deletions.
22 changes: 22 additions & 0 deletions component-explorer/utils/wiki_spell_names.lua
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,16 @@
-- Can't use `GameTextGetTranslatedOrNot` because it won't work if someone is
-- playing Noita configured to a different language.

--[[
wiki_spell_names = dofile("mods/component-explorer/utils/wiki_spell_names.lua")
dofile("data/scripts/gun/gun_actions.lua")
for k, v in ipairs(actions) do
if wiki_spell_names.by_action_id[v.id] == nil then
print(v.id .. " = " .. '"' .. GameTextGetTranslatedOrNot(v.name) .. '",')
end
end
]]

local wiki_spell_names = {}
wiki_spell_names.by_action_id = {
BOMB = "Bomb",
Expand Down Expand Up @@ -397,6 +407,18 @@ wiki_spell_names.by_action_id = {
COLOUR_RAINBOW = "Rainbow Glimmer",
COLOUR_INVIS = "Invisible Spell",
RAINBOW_TRAIL = "Rainbow trail",
HOOK = "Hookbolt",
WHITE_HOLE_BIG = "Giga white hole",
FISH = "Summon fish",
CASTER_CAST = "Inner spell",
TRUE_ORBIT = "True Orbit",
ANTI_HOMING = "Anti Homing",
HOMING_WAND = "Wand Homing",
ZERO_DAMAGE = "Null shot",
SEA_SWAMP = "Summon Swamp",
BOUNCE_SMALL_EXPLOSION = "Sparkly bounce",
BOUNCE_LIGHTNING = "Lightning bounce",
BOUNCE_HOLE = "Vacuum bounce",
}

local to_action_id = {}
Expand Down

0 comments on commit c6d2d11

Please sign in to comment.