LlemonDuck / tombs-of-amascut

BSD 2-Clause "Simplified" License
9 stars 13 forks source link

Clear Het Solution When Puzzle Is Solved #79

Closed rdutta closed 4 months ago

rdutta commented 5 months ago

The solution is re-solved after all the mirrors despawn which looks weird for the overlay to still be drawn.

Possible fix but idk if it will break anything:

    @Subscribe
    public void onChatMessage(final ChatMessage e)
    {
        if  (e.getMessage().endsWith("violently!"))
        {
            clearSolve(); // "The room shakes violently" message is sent when the seal is broken
        }
    }

    @Subscribe
    public void onGameObjectSpawned(final GameObjectSpawned e)
    {
        if (solution == null && e.getGameObject().getId() == NullObjectID.NULL_29733)
        {
            return; // Prevent resolving when solution is null and the "empty" objects are spawned
        }
    }

p.s. i think the triangles could look less jarring with a bit of transparency