tChanged fight arrival message for cops, to more closely match the original - vaccinewars - be a doctor and try to vaccinate the world (HTM) git clone git://src.adamsgaard.dk/vaccinewars (DIR) Log (DIR) Files (DIR) Refs (DIR) README (DIR) LICENSE --- (DIR) commit 465a428ba85ded0d990b43f54e12df35c4e44971 (DIR) parent c31fa3d09f2d3758cb7f5544bdb3fb3f92534ce3 (HTM) Author: Ben Webb <ben@salilab.org> Date: Sun, 7 Jan 2001 16:02:47 +0000 Changed fight arrival message for cops, to more closely match the original Diffstat: M src/message.c | 17 ++++++++++++++--- 1 file changed, 14 insertions(+), 3 deletions(-) --- (DIR) diff --git a/src/message.c b/src/message.c t@@ -1153,8 +1153,19 @@ void FormatFightMessage(Player *To,GString *text,Player *Attacker, ArmPercent<80 ? _("heavily armed") : _("armed to the teeth"); if (DefendName[0]) { - dpg_string_sprintfa(text,_("%s arrives with %d %tde, %s!"), - DefendName,Bitches,BitchesName,Armament); + if (IsCop(Defender)) { + if (Bitches==0) { + dpg_string_sprintfa(text,_("%s, %s, is chasing you, man!"), + DefendName,Armament); + } else { + dpg_string_sprintfa(text, + _("%s and %d %tde, %s, are chasing you, man!"), + DefendName,Bitches,BitchesName,Armament); + } + } else { + dpg_string_sprintfa(text,_("%s arrives with %d %tde, %s!"), + DefendName,Bitches,BitchesName,Armament); + } } break; case F_STAND: t@@ -1225,7 +1236,7 @@ void FormatFightMessage(Player *To,GString *text,Player *Attacker, g_string_append(text,_(" You loot the body!")); } } - if (Health>0) g_string_sprintfa(text,_(" (Health: %d)"),Health); +/* if (Health>0) g_string_sprintfa(text,_(" (Health: %d)"),Health);*/ break; } }