Skip to content

Commit efbc310

Browse files
committed
рефакторинг
синхронизация с чн
1 parent 463599b commit efbc310

File tree

2 files changed

+19
-6
lines changed

2 files changed

+19
-6
lines changed

gamedata/scripts/ixray_system/global.lua

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -653,12 +653,7 @@ function has_cmd_arg(arg_name)
653653
end
654654

655655
function run_gui(gui, close_inv)
656-
if close_inv then
657-
game_hide_menu()
658-
level.show_weapon(false)
659-
end
660-
661-
gui:ShowDialog(true)
656+
ffx_gui_utils.run_gui(gui, close_inv)
662657
end
663658

664659
function add_art(zone_name, art_section)

gamedata_cs/scripts/ixray_system/global.lua

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -650,4 +650,22 @@ end
650650

651651
function has_cmd_arg(arg_name)
652652
return string.find(get_cmd_args(), arg_name) or string.find(get_cmd_args(), "-"..arg_name)
653+
end
654+
655+
function run_gui(gui, close_inv)
656+
ffx_gui_utils.run_gui(gui, close_inv)
657+
end
658+
659+
function add_art(zone_name, art_section)
660+
if zone_name == nil then
661+
return
662+
end
663+
664+
local binder = db.anomaly_by_name[zone_name] or false
665+
if binder then
666+
if art_section then
667+
binder:set_forced_override(art_section)
668+
end
669+
binder:spawn_artefact_randomly()
670+
end
653671
end

0 commit comments

Comments
 (0)