diff --git a/profiles/base-empty.yaml b/profiles/base-empty.yaml index 842e1a344a..c1746a6385 100644 --- a/profiles/base-empty.yaml +++ b/profiles/base-empty.yaml @@ -101,6 +101,7 @@ empty_values: stealing_towns: [] storage_containers: [] summoned_weapons: [] + t2_before_startup: [] t2_after_shutdown: [] t2_avoids: [] tarantula_no_use_rooms: [] diff --git a/profiles/base.yaml b/profiles/base.yaml index 60bcbf9889..ba361ce21e 100644 --- a/profiles/base.yaml +++ b/profiles/base.yaml @@ -29,6 +29,10 @@ t2_avoids: - type: drag state: true +# scripts to rune before the starup of T2 +t2_before_starup: +# - multi 1, move door +# - gosafe # Scripts to run after *controlled* shutdown of T2 t2_after_shutdown: - gosafe diff --git a/t2.lic b/t2.lic index 243a8e08dd..42a0e19179 100644 --- a/t2.lic +++ b/t2.lic @@ -37,6 +37,11 @@ class T2 if !@args.nodelay && @settings.t2_startup_delay.to_i > 0 pause until Time.now - DRSkill.start_time > @settings.t2_startup_delay end + + unless @settings.t2_before_startup.empty? + echo "***STATUS*** Performing Pre-startup activities." + execute_actions(@settings.t2_before_startup) + end end def run