Complete.Org: Mailing Lists: Archives: freeciv-dev: July 2000:
[Freeciv-Dev] [PATCH] More explicit message when a unit is killed by bar
Home

[Freeciv-Dev] [PATCH] More explicit message when a unit is killed by bar

[Top] [All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index] [Thread Index]
To: freeciv-dev@xxxxxxxxxxx
Subject: [Freeciv-Dev] [PATCH] More explicit message when a unit is killed by barbarians upon entering a hut.
From: Big Gaute <gs234@xxxxxxxxx>
Date: 03 Jul 2000 04:41:52 +0200

Currently, whenever a unit enters a hut and is killed by barbarians
the message "Your unit has been killed by barbarians." is sent to the
player.  I changed this to explicitly tell what sort of unit was
killed.

I ran into a problem while doing this: since some unit names are
plurals (e.g. "Settlers") it is not enough to simply use unit_name()
as a drop-in replacement for "unit", since you would also have to
change "has" to "have" as appropriate.  In the end I rewrote the
sentence to avoid the problem, but I am not sure which way is better.

Also, unit_name() returns a capitalised name.  I'm not sure if it's
worth the bother to compensate for this.

Attachment: verbose_barbarians.diff
Description: Patch to give more explicit message when a unit is killed by barbarians from a hut.

-- 
Big Gaute (not to be confused with LG)
"There was a time when a guy who died at forty was revered as the toughest
and most doggedly ancient son of a bitch in Cow Ass Clearing, Shitoleshire,
Engalond, back in the year dot." - Spider Jerusalem, Transmetropolitan #25

[Prev in Thread] Current Thread [Next in Thread]