Skip to content

Commit

Permalink
Merge pull request #6751 from Caledric/master
Browse files Browse the repository at this point in the history
[scripts][t2] QOL before start up section created
  • Loading branch information
MahtraDR authored Jan 2, 2024
2 parents 480cbdb + 7ca83e8 commit 7ad1573
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 0 deletions.
1 change: 1 addition & 0 deletions profiles/base-empty.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -101,6 +101,7 @@ empty_values:
stealing_towns: []
storage_containers: []
summoned_weapons: []
t2_before_startup: []
t2_after_shutdown: []
t2_avoids: []
tarantula_no_use_rooms: []
Expand Down
4 changes: 4 additions & 0 deletions profiles/base.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
5 changes: 5 additions & 0 deletions t2.lic
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 7ad1573

Please sign in to comment.