Skip to content

Implement a battle turn number counter #107

@SilverDeoxys563

Description

@SilverDeoxys563

If the end of the 10th turn is reached in a battle, currently the program will be surprised that it's wiped out with non-zero lives and throw out a warning and keep going. While the current operation doesn't break anything, it could be optimized to avoid throwing this warning if a simple for loop were added that increments a counter the turn counter every time the Fight symbol gets detected. That way, it can be prepared for no "Catch / Don't Catch" menu popping up on Turn 10, and the program can safely switch to the next mode without a warning in conjunction with the detection of the black screen.

I do think it's important to leave the current black screen detection in to end the run, because if for some freak reason if the Fight symbol gets detected an eleventh time (which won't happen), this setup should handle a case like that to keep fighting anyway since no black screen would have been detected at that point.

Metadata

Metadata

Assignees

No one assigned

    Labels

    feature requestWhen you have a request for features that could be added

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions