Added an extra helper function and removed instant text control code from ITEM_OBTAINED

This commit is contained in:
Christopher Leggett 2022-07-14 11:17:43 -04:00
parent 9c57ed6642
commit 46df17e29f
No known key found for this signature in database
GPG Key ID: 7093AE5FF7037D79
2 changed files with 7 additions and 2 deletions

View File

@ -28,7 +28,7 @@ std::string MESSAGE_END() {
} }
std::string ITEM_OBTAINED(uint8_t x) { std::string ITEM_OBTAINED(uint8_t x) {
return "\x08\x13"s + char(x); return "\x13"s + char(x);
} }
std::string NEWLINE() { std::string NEWLINE() {
@ -38,3 +38,7 @@ std::string NEWLINE() {
std::string COLOR(uint8_t x) { std::string COLOR(uint8_t x) {
return "\x05"s + char(x); return "\x05"s + char(x);
} }
std::string WAIT_FOR_INPUT() {
return "\x04"s;
}

View File

@ -16,3 +16,4 @@ std::string MESSAGE_END();
std::string ITEM_OBTAINED(uint8_t x); std::string ITEM_OBTAINED(uint8_t x);
std::string NEWLINE(); std::string NEWLINE();
std::string COLOR(uint8_t x); std::string COLOR(uint8_t x);
std::string WAIT_FOR_INPUT();