see tolocal() tile descs in chat
This commit is contained in:
parent
9fb791039f
commit
e22261d012
3 changed files with 22 additions and 7 deletions
|
|
@ -2,7 +2,7 @@ pub const NAME_OVERMAP: &str = "the travel map";
|
||||||
pub const SHORTNAME_OVERMAP: &str = "Travel";
|
pub const SHORTNAME_OVERMAP: &str = "Travel";
|
||||||
pub const NAME_DUNGEON_RANDOM: &str = "the dungeon";
|
pub const NAME_DUNGEON_RANDOM: &str = "the dungeon";
|
||||||
pub const SHORTNAME_DUNGEON_RANDOM: &str = "D";
|
pub const SHORTNAME_DUNGEON_RANDOM: &str = "D";
|
||||||
pub const NAME_STARTER_TOWN: &str = "the town of Saff";
|
pub const NAME_STARTER_TOWN: &str = "the port town of Saff";
|
||||||
pub const SHORTNAME_STARTER_TOWN: &str = "Saff";
|
pub const SHORTNAME_STARTER_TOWN: &str = "Saff";
|
||||||
pub const NAME_FOREST_BUILDER: &str = "the woods outside of town";
|
pub const NAME_FOREST_BUILDER: &str = "the woods outside of town";
|
||||||
pub const SHORTNAME_FOREST_BUILDER: &str = "Woods";
|
pub const SHORTNAME_FOREST_BUILDER: &str = "Woods";
|
||||||
|
|
|
||||||
|
|
@ -91,11 +91,11 @@ const OVERMAP_TEMPLATE: &str =
|
||||||
^^^^^^^..............................≈≈≈≈≈≈≈≈≈≈≈≈≈...≈≈..........≈..≈
|
^^^^^^^..............................≈≈≈≈≈≈≈≈≈≈≈≈≈...≈≈..........≈..≈
|
||||||
^^^^^^^..........................≈≈.≈≈≈≈≈≈≈≈≈≈≈≈≈≈≈≈≈≈≈≈≈≈≈≈≈....≈≈≈≈
|
^^^^^^^..........................≈≈.≈≈≈≈≈≈≈≈≈≈≈≈≈≈≈≈≈≈≈≈≈≈≈≈≈....≈≈≈≈
|
||||||
^^^^^^^........................≈≈≈≈≈≈≈≈≈≈≈≈≈≈≈≈≈≈≈≈≈≈≈≈≈≈≈≈≈≈≈≈.....≈
|
^^^^^^^........................≈≈≈≈≈≈≈≈≈≈≈≈≈≈≈≈≈≈≈≈≈≈≈≈≈≈≈≈≈≈≈≈.....≈
|
||||||
^^^^^^^^........@..............≈≈≈≈≈≈≈≈≈≈≈≈≈≈≈≈≈≈≈≈≈≈≈≈≈≈≈≈≈≈≈≈≈....≈
|
^^^^^^^^.......................≈≈≈≈≈≈≈≈≈≈≈≈≈≈≈≈≈≈≈≈≈≈≈≈≈≈≈≈≈≈≈≈≈....≈
|
||||||
^^^^^^^^..................≈...≈≈≈≈≈≈≈≈≈≈≈≈≈≈≈≈≈≈≈...≈≈≈...≈≈≈≈≈≈≈≈.≈≈
|
^^^^^^^^......@...........≈...≈≈≈≈≈≈≈≈≈≈≈≈≈≈≈≈≈≈≈...≈≈≈...≈≈≈≈≈≈≈≈.≈≈
|
||||||
^^^^^^^^^.................≈≈1...≈≈≈≈≈≈≈≈≈≈≈≈≈≈≈≈....≈≈......≈≈≈≈≈≈≈≈≈
|
^^^^^^^^^.................≈≈....≈≈≈≈≈≈≈≈≈≈≈≈≈≈≈≈....≈≈......≈≈≈≈≈≈≈≈≈
|
||||||
^^^^^^^^^........≈≈≈≈...≈≈≈≈....≈≈≈≈≈≈≈≈≈≈≈≈≈≈≈≈≈..≈≈≈......≈≈≈≈≈≈≈≈≈
|
^^^^^^^^^........≈≈≈≈1..≈≈≈≈....≈≈≈≈≈≈≈≈≈≈≈≈≈≈≈≈≈..≈≈≈......≈≈≈≈≈≈≈≈≈
|
||||||
^^^^^^^^^^......≈≈≈≈≈≈≈≈≈≈≈≈≈..≈≈≈≈≈≈≈≈≈≈≈≈≈≈≈≈≈≈≈≈≈≈........≈≈≈≈≈≈≈≈
|
^^^^^^^^^^......≈≈≈≈≈..≈≈≈≈≈≈..≈≈≈≈≈≈≈≈≈≈≈≈≈≈≈≈≈≈≈≈≈≈........≈≈≈≈≈≈≈≈
|
||||||
^^^^^^^^^^.....≈≈≈≈≈≈≈≈≈≈≈≈≈≈≈≈≈≈≈≈≈≈≈≈≈≈≈≈≈≈≈≈≈≈≈≈≈........≈≈≈≈≈≈≈≈≈
|
^^^^^^^^^^.....≈≈≈≈≈≈≈≈≈≈≈≈≈≈≈≈≈≈≈≈≈≈≈≈≈≈≈≈≈≈≈≈≈≈≈≈≈........≈≈≈≈≈≈≈≈≈
|
||||||
^^^^^^^^^^....≈≈≈≈≈≈≈≈≈≈≈≈≈≈≈≈≈≈≈≈≈≈≈≈≈≈≈≈≈≈≈≈≈≈≈≈≈≈≈≈≈....≈≈≈≈≈≈≈≈≈≈
|
^^^^^^^^^^....≈≈≈≈≈≈≈≈≈≈≈≈≈≈≈≈≈≈≈≈≈≈≈≈≈≈≈≈≈≈≈≈≈≈≈≈≈≈≈≈≈....≈≈≈≈≈≈≈≈≈≈
|
||||||
^^^^^^^^^^^^.≈≈≈≈≈≈≈≈≈≈≈≈≈≈≈≈≈≈≈≈≈≈≈≈≈≈≈≈≈≈≈≈≈≈≈≈≈≈≈≈≈≈≈≈≈≈≈≈≈≈≈≈≈≈≈≈";
|
^^^^^^^^^^^^.≈≈≈≈≈≈≈≈≈≈≈≈≈≈≈≈≈≈≈≈≈≈≈≈≈≈≈≈≈≈≈≈≈≈≈≈≈≈≈≈≈≈≈≈≈≈≈≈≈≈≈≈≈≈≈≈";
|
||||||
|
|
|
||||||
|
|
@ -483,12 +483,27 @@ pub fn try_move_player(delta_x: i32, delta_y: i32, ecs: &mut World) -> RunState
|
||||||
some = true;
|
some = true;
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
match map.tiles[destination_idx] {
|
||||||
|
TileType::ToLocal(id) => {
|
||||||
|
let name = get_local_desc(id);
|
||||||
|
let colour = rgb_to_u8(get_local_col(id));
|
||||||
|
gamelog::Logger
|
||||||
|
::new()
|
||||||
|
.append("You see")
|
||||||
|
.colour(colour)
|
||||||
|
.append_n(&name)
|
||||||
|
.colour(WHITE)
|
||||||
|
.period()
|
||||||
|
.log();
|
||||||
|
}
|
||||||
|
_ => {}
|
||||||
|
}
|
||||||
// If some names were found, append. Logger = logger is necessary
|
// If some names were found, append. Logger = logger is necessary
|
||||||
// makes logger called a mutable self. It's not the most efficient
|
// makes logger called a mutable self. It's not the most efficient
|
||||||
// but it happens infrequently enough (once per player turn at most)
|
// but it happens infrequently enough (once per player turn at most)
|
||||||
// that it shouldn't matter.
|
// that it shouldn't matter.
|
||||||
if some {
|
if some {
|
||||||
let mut logger = gamelog::Logger::new().append("You see a");
|
let mut logger = gamelog::Logger::new().append("You see");
|
||||||
for i in 0..seen_items.len() {
|
for i in 0..seen_items.len() {
|
||||||
if i > 0 && i < seen_items.len() {
|
if i > 0 && i < seen_items.len() {
|
||||||
logger = logger.append(", a");
|
logger = logger.append(", a");
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue