Bug fixing and refactoring for how flavor text gets parsed before sending to FE.
Don't worry, all these functions will be moved into appropriate locations in the future, I just didn't want to touch the file structure in this PR lest it get confusion.
-- "You can't do that" message marked correctly as flavor text now, previously was incorrectly marked as chat
-- Flavor text was only rendered for first action taken, so if "I look at the door and I look at the weight" was entered, flavor text for the door only would be shown
-- Use a safer way to get the "destination" attribute on move: if for some reason, results isn't an array, or comes back empty, accessing the first element of results won't crash the game
Bug fixing and refactoring for how flavor text gets parsed before sending to FE. Don't worry, all these functions will be moved into appropriate locations in the future, I just didn't want to touch the file structure in this PR lest it get confusion.
-- "You can't do that" message marked correctly as flavor text now, previously was incorrectly marked as chat -- Flavor text was only rendered for first action taken, so if "I look at the door and I look at the weight" was entered, flavor text for the door only would be shown -- Use a safer way to get the "destination" attribute on move: if for some reason, results isn't an array, or comes back empty, accessing the first element of results won't crash the game