From 72e64fc4610acff1fd7a1ec2bb5ef4b91718d711 Mon Sep 17 00:00:00 2001 From: wrk Date: Thu, 1 Jun 2023 20:38:27 +0200 Subject: [PATCH] showing damage taken --- src/main.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main.rs b/src/main.rs index 7bba735..d4ae32f 100644 --- a/src/main.rs +++ b/src/main.rs @@ -368,7 +368,7 @@ fn fight( .color(fucking_victim.color) .text(&fucking_victim.nick) .reset() - .text(&format!("'s {}!", body_part)), + .text(&format!("'s {}! (-{:.2} hp)", body_part, damage)), ); if fucking_victim.health <= 0. {