Author: jtn
Date: Tue Nov  8 23:08:31 2016
New Revision: 34447

URL: http://svn.gna.org/viewcvs/freeciv?rev=34447&view=rev
Log:
Fully document Retire_Pct behaviour.

See bug #25265.

Modified:
    branches/S2_6/doc/README.effects
    branches/S2_6/server/unittools.c

Modified: branches/S2_6/doc/README.effects
URL: 
http://svn.gna.org/viewcvs/freeciv/branches/S2_6/doc/README.effects?rev=34447&r1=34446&r2=34447&view=diff
==============================================================================
--- branches/S2_6/doc/README.effects    (original)
+++ branches/S2_6/doc/README.effects    Tue Nov  8 23:08:31 2016
@@ -420,7 +420,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: branches/S2_6/server/unittools.c
URL: 
http://svn.gna.org/viewcvs/freeciv/branches/S2_6/server/unittools.c?rev=34447&r1=34446&r2=34447&view=diff
==============================================================================
--- branches/S2_6/server/unittools.c    (original)
+++ branches/S2_6/server/unittools.c    Tue Nov  8 23:08:31 2016
@@ -4386,10 +4386,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

Reply via email to