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

[script][combat-trainer] cleanup to include removing symb prep #7088

Merged
merged 2 commits into from
Feb 9, 2025

Conversation

mdr55
Copy link
Contributor

@mdr55 mdr55 commented Feb 1, 2025

For some reason cleanup process was not getting rid of an in-progress spell's symb prep; this is a fix for that. Also removed an orphan condition.

I've tested this ok on my char but I don't have access to !chaos symbs, which I understand has slightly different behaviour and possibly different messaging.

The main idea is of course to not accidentally wipe out your researched symb when CT ends its run.

Can someone test, verify and confirm with a comment here please?

@mdr55
Copy link
Contributor Author

mdr55 commented Feb 2, 2025

The existing behaviour (before PR) is a random crap shoot between different states when clean-up sequence finishes:

  1. no spell is being interrupted- no issues, no spell cleanup needed. prep symb goes away when the spell was successfully cast. Have not checked behaviour if yaml is set for a symb cast that's too high for char.
  2. non-symbiosis spell in prep interrupted - no issues, release magic and release mana takes care of it
  3. symbiosis spell in prep interrupted <-- this is it. Release magic and release mana will still leave the prep symb hanging.
    Frequency/likelihood of landing on 3. depends on spells in spell lists and other configuration factors.

@MahtraDR
Copy link
Collaborator

MahtraDR commented Feb 2, 2025

My only concern is for folks using researched symbiosis losing those. That said, I think the way you've changed this brings it in line with other usages of this idea.

@mdr55
Copy link
Contributor Author

mdr55 commented Feb 2, 2025

The "if @Symbiosis" SHOULD prevent losing the research symbiosis? Or is that not how it works with researched symbs - once you turn it on, you can't turn off without losing the research time investment?
If the latter, I'll close the PR :p

@mdr55
Copy link
Contributor Author

mdr55 commented Feb 2, 2025

The code tracks the @Symbiosis state pretty tightly. I think if @Symbiosis == true, then there's a very very good chance prep symb was performed just before prep spell.

@MahtraDR
Copy link
Collaborator

MahtraDR commented Feb 2, 2025

The "if @Symbiosis" SHOULD prevent losing the research symbiosis? Or is that not how it works with researched symbs - once you turn it on, you can't turn off without losing the research time investment?

If the latter, I'll close the PR :p

No it's not the latter. If you have a researched symbiosis and you used prep symb you can then release symb. If you release symb twice in quick succession, you will forget your researched symbiosis though. Which was the concern. Your point is good though and I think we'll be fine here.

combat-trainer.lic Outdated Show resolved Hide resolved
@MahtraDR MahtraDR merged commit 083b856 into elanthia-online:main Feb 9, 2025
2 checks passed
@mdr55 mdr55 deleted the CT-fix-cleanup branch February 9, 2025 11:43
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