Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[scripts][t2] QOL before start up section created #6751

Merged
merged 7 commits into from
Jan 2, 2024
Merged
Show file tree
Hide file tree
Changes from 4 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Caledric marked this conversation as resolved.
Show resolved Hide resolved
# 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 [email protected] && @settings.t2_startup_delay.to_i > 0
pause until Time.now - DRSkill.start_time > @settings.t2_startup_delay
end

if [email protected]_before_startup.empty?
Caledric marked this conversation as resolved.
Show resolved Hide resolved
echo "***STATUS*** Performing Pre-startup activities."
execute_actions(@settings.t2_before_startup)
end
end

def run
Expand Down