1
0
mirror of https://github.com/ComfyFactory/ComfyFactorio.git synced 2025-11-29 22:47:52 +02:00

RPG - fix level issue

This commit is contained in:
Gerkiz
2022-08-14 21:56:11 +02:00
parent e3875bee28
commit 02f0cda608
6 changed files with 135 additions and 50 deletions

View File

@@ -851,7 +851,6 @@ local function on_player_used_capsule(event)
return
end
local conjure_items = Public.all_spells
local projectile_types = Public.get_projectiles
local player = game.get_player(event.player_index)
@@ -894,7 +893,7 @@ local function on_player_used_capsule(event)
local mana = rpg_t.mana
local surface = player.surface
local spell = conjure_items[rpg_t.dropdown_select_index]
local spell = Public.get_spell_by_name(rpg_t, rpg_t.dropdown_select_name)
if not spell then
return
end