curiousdannii / parchment

The Interactive Fiction web app
https://iplayif.com
MIT License
421 stars 60 forks source link

Violet prompt changes color after the first ASIDE asterisk #100

Closed dfabulich closed 2 years ago

dfabulich commented 2 years ago

https://iplayif.com/?story=http%3A%2F%2Fwww.ifarchive.org%2Fif-archive%2Fgames%2Fzcode%2FViolet.zblorb

sit. open word processor. write. open drawer. get key. unlock cabinet. open it. drink bottle

Actual: Now everything you type shows up in a red color Expected: Your typed commands should remain black

image

curiousdannii commented 2 years ago

I think in this commit I neglected to handle the situation of character styles returning to normal. It probably just needs to initially clear them before seeing if colours should be applied. But I don't know if that should be inside or outside the if (win.lastrdesc) 😆

https://github.com/curiousdannii/glkote/commit/40e9b8767b99ae57e3e986b7ecb8be4a6000d85d

curiousdannii commented 2 years ago

Fixed in AsyncGlk/testing branch