Skip to content

Commit 314cb48

Browse files
committed
fix heal text colors
1 parent 0b7a2f8 commit 314cb48

1 file changed

Lines changed: 3 additions & 2 deletions

File tree

src/log.rs

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -167,6 +167,7 @@ fn run_away(player: &Character, success: bool) {
167167
}
168168
}
169169

170+
// TODO reduce duplication between heal and heal_item
170171
fn heal(
171172
player: &Character,
172173
location: &Location,
@@ -195,7 +196,7 @@ fn heal(
195196
"{}{}{}",
196197
recovered_text.green(),
197198
mp_text.purple(),
198-
healed_text.purple()
199+
healed_text.green()
199200
),
200201
);
201202
}
@@ -215,7 +216,7 @@ fn heal_item(player: &Character, item: &str, recovered_hp: i32, recovered_mp: i3
215216
);
216217
}
217218
if healed {
218-
battle_log(player, &format!("+healed {}", item).green());
219+
battle_log(player, &format!("+healed {}", item).green().to_string());
219220
}
220221
}
221222

0 commit comments

Comments
 (0)