From 35ddd5cab3b615bc0344558f1d6622fcabbbf723 Mon Sep 17 00:00:00 2001 From: Aleksander Mistewicz Date: Sun, 2 Feb 2020 17:14:51 +0100 Subject: [PATCH] Use simpler message format for discord --- maps/biter_battles_v2/feeding.lua | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/maps/biter_battles_v2/feeding.lua b/maps/biter_battles_v2/feeding.lua index 5a3a54ba..107c7274 100644 --- a/maps/biter_battles_v2/feeding.lua +++ b/maps/biter_battles_v2/feeding.lua @@ -57,9 +57,9 @@ local function print_feeding_msg(player, food, flask_amount) local formatted_amount = table.concat({"[font=heading-1][color=255,255,255]" .. flask_amount .. "[/color][/font]"}) if flask_amount >= 20 then - local msg = table.concat({colored_player_name, " fed ", formatted_amount, " flasks of ", formatted_food, " to team ", team_strings[get_enemy_team_of(player.force.name)], " biters!"}) - game.print(msg, {r = 0.9, g = 0.9, b = 0.9}) - Server.to_discord_bold(msg) + local enemy = get_enemy_team_of(player.force.name) + game.print(table.concat({colored_player_name, " fed ", formatted_amount, " flasks of ", formatted_food, " to team ", team_strings[enemy], " biters!"}), {r = 0.9, g = 0.9, b = 0.9}) + Server.to_discord_bold(table.concat({player.name, " fed ", flask_amount, " flasks of ", food_values[food].name, " to team ", enemy, " biters!"})) else local target_team_text = "the enemy" if global.training_mode then