Author: jtn Date: Tue Nov 8 23:05:56 2016 New Revision: 34446 URL: http://svn.gna.org/viewcvs/freeciv?rev=34446&view=rev Log: Fully document Retire_Pct behaviour.
See bug #25265. Modified: trunk/doc/README.effects trunk/server/unittools.c Modified: trunk/doc/README.effects URL: http://svn.gna.org/viewcvs/freeciv/trunk/doc/README.effects?rev=34446&r1=34445&r2=34446&view=diff ============================================================================== --- trunk/doc/README.effects (original) +++ trunk/doc/README.effects Tue Nov 8 23:05:56 2016 @@ -483,7 +483,9 @@ for units upgraded in certain city. Retire_Pct - The chance that unit gets retired when turn changes + The chance that unit gets retired (removed) when turn changes. + Retirement only happens if there are no enemy units or cities within + a few tiles. (This exists mainly to implement barbarian behavior.) Visible_Wall Instruct client to show specific buildings version of the city graphics. Modified: trunk/server/unittools.c URL: http://svn.gna.org/viewcvs/freeciv/trunk/server/unittools.c?rev=34446&r1=34445&r2=34446&view=diff ============================================================================== --- trunk/server/unittools.c (original) +++ trunk/server/unittools.c Tue Nov 8 23:05:56 2016 @@ -4528,10 +4528,9 @@ } /************************************************************************** - Barbarian units may disband spontaneously if their age is more than - BARBARIAN_MIN_LIFESPAN, they are not in cities, and they are far from - any enemy units. It is to remove barbarians that do not engage into any - activity for a long time. + Units (usually barbarian units) may disband spontaneously if they are + far from any enemy units or cities. It is to remove barbarians that do + not engage into any activity for a long time. **************************************************************************/ bool unit_can_be_retired(struct unit *punit) { _______________________________________________ Freeciv-commits mailing list Freeciv-commits@gna.org https://mail.gna.org/listinfo/freeciv-commits