extends log builder, swaps away from textblocks

line wrapping no longer works, but in return the message log can easily be swapped between ascending/descending, and spaces/no spaces between entries.

realistically nobody wants to read a huge wrapped line anyway so those can just be avoided
This commit is contained in:
Llywelwyn 2023-07-11 02:41:01 +01:00
parent b562e093ea
commit 42901b984e
9 changed files with 89 additions and 30 deletions

View file

@ -57,7 +57,8 @@ impl<'a> System<'a> for MeleeCombatSystem {
.npc_name(&name.name)
.colour(rltk::WHITE)
.append("hits the")
.npc_name(format!("{}.", &target_name.name))
.npc_name_n(format!("{}", &target_name.name))
.period()
.log();
SufferDamage::new_damage(&mut inflict_damage, wants_melee.target, damage);
}