Skip to content

refactor(autostart): remove legacy guards, require lich 5.17.2+#1

Closed
MahtraDR wants to merge 2 commits into
mainfrom
refactor/autostart-remove-legacy-guards
Closed

refactor(autostart): remove legacy guards, require lich 5.17.2+#1
MahtraDR wants to merge 2 commits into
mainfrom
refactor/autostart-remove-legacy-guards

Conversation

@MahtraDR
Copy link
Copy Markdown
Owner

Summary

  • Remove legacy DR dependency install path (first-run detection, old lich fallback)
  • Remove respond_to?(:get_settings) and Map.respond_to?(:apply_wayto_overrides) guards -- always true on 5.17.2+
  • Remove Gem::Version lich5-update version check -- always true on 5.17.2+
  • Consolidate lich5-update into the static skip list
  • Update comment: dependency loads for runtime helpers, not the parse_args bridge
  • Bump version to 0.72, require Lich >= 5.17.2
  • Update spec helpers to match simplified code

Net: -79 lines (+30 / -109)

Companion PR

dependency.lic strip (dr-scripts): MahtraDR/dr-scripts#3 -- removes all gated dead code, bumps to v4.0.0.

Test plan

  • bundle exec rspec spec/autostart/autostart_spec.rb -- 49 examples, 0 failures
  • Verify autostart runs dependency and starts DR scripts in-game
  • Verify GS autostart loop still works (YAML + Settings/CharSettings)
  • Verify map wayto overrides apply on login

🤖 Generated with Claude Code

MahtraDR and others added 2 commits May 27, 2026 14:11
Core lich 5.17.2+ provides get_settings, start_scripts_if_available,
and Map.apply_wayto_overrides natively. Remove the respond_to? guards
and the entire legacy DR dependency install path that predated these.

Changes:
- Remove legacy DR dependency path (first-run install, old lich fallback)
- Remove respond_to?(:get_settings) guard (always true on 5.17.2+)
- Remove Map.respond_to?(:apply_wayto_overrides) guard (always true)
- Remove Gem::Version lich5-update check (5.17.2 > 5.6.2 always)
- Consolidate lich5-update into the skip list
- Update comment: dependency loads for runtime helpers, not parse_args
- Bump version to 0.72, required to Lich >= 5.17.2
- Update spec helpers to match simplified code

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
autostart.lic is game-agnostic (game: any). GS players on older lich
may not have get_settings, Map.apply_wayto_overrides, or
Lich::Util::Update. Restore respond_to? guards for these while
keeping the DR legacy path removal (dependency.lic enforces 5.17.2).

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
@MahtraDR
Copy link
Copy Markdown
Owner Author

Retargeting to upstream elanthia-online/scripts

@MahtraDR MahtraDR closed this May 29, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant