Author: sveinung
Date: Sat Aug 15 22:57:04 2015
New Revision: 29534

URL: http://svn.gna.org/viewcvs/freeciv?rev=29534&view=rev
Log:
Improve current DiplRel semantic documentation

Explain what happens when there is no player to evaluate a DiplRel
requirement against.

See patch #6232

Modified:
    trunk/doc/README.effects

Modified: trunk/doc/README.effects
URL: 
http://svn.gna.org/viewcvs/freeciv/trunk/doc/README.effects?rev=29534&r1=29533&r2=29534&view=diff
==============================================================================
--- trunk/doc/README.effects    (original)
+++ trunk/doc/README.effects    Sat Aug 15 22:57:04 2015
@@ -544,6 +544,20 @@
 Only the exact relationship required fulfills it. Example: An alliance or
 an armistice agreement won't fulfill a "Peace" requirement.
 
+It is possible to create a requirement that in some situations won't have a
+player to check. In those cases the requirement will always be considered
+unfulfilled. This applies to both present and not present requirements. The
+ranges Alliance, Team, Player and Local needs a player. The Local range also
+needs the player the first player's relationship is to.
+
+Example: The requirements below are about the relationship to the owner of a
+tile. The table shows in what situations a requirement is fulfilled.
+
+Requirement is                            fulfilled when the tile is
+                                        | domestic | unclaimed | foreign
+"DiplRel", "Is foreign", "Local", TRUE  | no       | no        | yes
+"DiplRel", "Is foreign", "Local", FALSE | yes      | no        | no
+
 The MaxUnitsOnTile requirement type
 ----------------------------
 Check the number of units present on a tile. Is true if no more than the


_______________________________________________
Freeciv-commits mailing list
Freeciv-commits@gna.org
https://mail.gna.org/listinfo/freeciv-commits

Reply via email to