Skip to content

[script][smith] Add private forge support with auto-renewal#7371

Merged
MahtraDR merged 1 commit intoelanthia-online:mainfrom
MahtraDR:feat/smith-private-forge
Mar 30, 2026
Merged

[script][smith] Add private forge support with auto-renewal#7371
MahtraDR merged 1 commit intoelanthia-online:mainfrom
MahtraDR:feat/smith-private-forge

Conversation

@MahtraDR
Copy link
Copy Markdown
Collaborator

Summary

  • Adds use_private_forge YAML setting for private forge rental workflows
  • Walks to the town's private_forge room instead of finding a public anvil
  • Reads the rental notice, parses ET timestamp (handles EST/EDT), and auto-renews if under 15 minutes remaining
  • Ensures 50k copper on hand for rental costs
  • Validates that the town has a private_forge entry in crafting data; if not, lists towns that do and exits with a helpful message
  • Compatible with here flag (skips walk and rental check)

Example YAML

use_private_forge: true

Requirements

  • Town crafting data must include a private_forge room ID in blacksmithing section
  • Character needs sufficient funds for rental (50k copper)

Test plan

  • use_private_forge: false (default): script behaves identically to before
  • use_private_forge: true in a town with private forge: walks to forge, checks rental, auto-renews if needed
  • use_private_forge: true in a town without private forge: exits with helpful error listing valid towns
  • use_private_forge: true with here flag: skips walk and rental check
  • Rental with > 15 min remaining: reports status, no renewal
  • Rental with < 15 min remaining: auto-renews
  • Insufficient funds for renewal: reports error

🤖 Generated with Claude Code

Add use_private_forge YAML setting for private forge rental workflows:
- Walks to private forge room instead of public anvil
- Reads rental notice and parses ET expiration timestamp
- Auto-renews if less than 15 minutes remaining
- Ensures 50k copper on hand for rental costs
- Validates town has a private_forge entry in crafting data
- Compatible with 'here' flag (skips walk and rental check)

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
@MahtraDR MahtraDR merged commit f6954e4 into elanthia-online:main Mar 30, 2026
3 checks passed
@MahtraDR MahtraDR deleted the feat/smith-private-forge branch March 30, 2026 06:52
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