File tree Expand file tree Collapse file tree 2 files changed +19
-6
lines changed
gamedata_cs/scripts/ixray_system
gamedata/scripts/ixray_system Expand file tree Collapse file tree 2 files changed +19
-6
lines changed Original file line number Diff line number Diff line change @@ -653,12 +653,7 @@ function has_cmd_arg(arg_name)
653653end
654654
655655function 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 )
662657end
663658
664659function add_art (zone_name , art_section )
Original file line number Diff line number Diff line change 650650
651651function 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
653671end
You can’t perform that action at this time.
0 commit comments