diff options
author | Griffin Smith <root@gws.fyi> | 2019-07-29T01·32-0400 |
---|---|---|
committer | Griffin Smith <root@gws.fyi> | 2019-07-29T01·32-0400 |
commit | ba7bec9a3e36eaf2af65677b02884172241d1b24 (patch) | |
tree | 4bdd067a2e3ba95564a9d84b409b6c3190afa4a0 /src/entities | |
parent | 10fb09eca27991e878bee4a4c63d0ecd6b4a44b3 (diff) |
Re-draw entities when you walk over them
This also required making the noodles character not actually the emoji, since the emoji being double-width means it still gets overwritten when you walk to the right of it (D:)
Diffstat (limited to 'src/entities')
-rw-r--r-- | src/entities/character.rs | 2 | ||||
-rw-r--r-- | src/entities/raws/noodles.json | 3 |
2 files changed, 3 insertions, 2 deletions
diff --git a/src/entities/character.rs b/src/entities/character.rs index b917f140e635..b2da47609670 100644 --- a/src/entities/character.rs +++ b/src/entities/character.rs @@ -50,6 +50,6 @@ entity!(Character); impl display::Draw for Character { fn do_draw(&self, out: &mut Write) -> io::Result<()> { - write!(out, "@{}", cursor::Left(1),) + write!(out, "@") } } diff --git a/src/entities/raws/noodles.json b/src/entities/raws/noodles.json index d4b773cac533..6e2ecded7513 100644 --- a/src/entities/raws/noodles.json +++ b/src/entities/raws/noodles.json @@ -2,7 +2,8 @@ "Item": { "name": "noodles", "char": { - "char": "🍜" + "char": "n", + "color": "yellow" }, "description": "You know exactly what kind of noodles", "edible_item": { |