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

sort-scrolls - Added unleash option #7044

Merged
merged 2 commits into from
Jan 7, 2025
Merged

Conversation

BinuDR
Copy link
Contributor

@BinuDR BinuDR commented Jan 7, 2025

Added option to specify a scroll to pull out, cast unleash on it, and then cast the spell if it was successful.

A waggle set for unleash is needed for this. It needs to be set as follows, but you can edit how much mana you want to cast unleash at:

waggle_sets:
  unleash:
    Unleash:
      mana: 15
      cast: cast scroll

For this functionality I added 2 new yaml settings, unleash_mana and unleash_harnesses. They are both integers and unleash_mana is the total mana you want to cast the unleased spell at and unleash_harnesses is how many times you want to harness to hold that much mana for the cast.

For example, if you set unleash_mana to 100 and then cast unleash on a scroll, it will perceive to see how much mana the spell is prepped at, take 100 - that, and then harness the rest by harnessing unleash_harnesses times.

I also added the option to specify the spell by abbreviation so instead of this:
;sort-scrolls find "whispers of the muse"
You can now do this:
;sort-scrolls find wotm

BinuDR added 2 commits January 7, 2025 08:06
Added option to specify a scroll to pull out, cast unleash on it, and then cast the spell if it was successful.

A waggle set for unleash is needed for this.  It needs to be set as follows, but you can edit how much mana you want to cast unleash at:

```
waggle_sets:
  unleash:
    Unleash:
      mana: 15
      cast: cast scroll
```
For this functionality I added 2 new yaml settings, `unleash_mana` and `unleash_harnesses`.  They are both integers and `unleash_mana` is the total mana you want to cast the unleased spell at and `unleash_harnesses` is how many times you want to harness to hold that much mana for the cast.

For example, if you set `unleash_mana` to 100 and then cast unleash on a scroll, it will perceive to see how much mana the spell is prepped at, take 100 - that, and then harness the rest by harnessing `unleash_harnesses` times.

I also added the option to specify the  spell by abbreviation so instead of this:
`;sort-scrolls find "whispers of the muse"'
You can now do this:
`;sort-scrolls find wotm`
Fixed rubocop issues and also added a default value of 1 for `unleash_harnesses` to prevent errors.
@MahtraDR MahtraDR merged commit 66c209e into elanthia-online:main Jan 7, 2025
2 checks passed
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.

2 participants