Author: sveinung
Date: Fri May  5 12:45:47 2017
New Revision: 35409

URL: http://svn.gna.org/viewcvs/freeciv?rev=35409&view=rev
Log:
Auto help for action actor consumption.

The help texts of unit types auto documents what actions the utype can
perform. It also lists some additional auto generated information about each
action. Add a warning to the help text of an action when
utype_is_consumed_by_action() detects that it always will consume the actor
unit.

See hrm Feature #657372

Modified:
    branches/S3_0/client/helpdata.c

Modified: branches/S3_0/client/helpdata.c
URL: 
http://svn.gna.org/viewcvs/freeciv/branches/S3_0/client/helpdata.c?rev=35409&r1=35408&r2=35409&view=diff
==============================================================================
--- branches/S3_0/client/helpdata.c     (original)
+++ branches/S3_0/client/helpdata.c     Fri May  5 12:45:47 2017
@@ -2260,6 +2260,14 @@
                          action_id_get_target_kind(act))));
       }
 
+      if (utype_is_consumed_by_action(paction, utype)) {
+        cat_snprintf(buf, bufsz,
+                     /* TRANS: said about an action. %s is a unit type
+                      * name. */
+                     _("  * uses up the %s.\n"),
+                     utype_name_translation(utype));
+      }
+
       if (action_id_get_target_kind(act) != ATK_SELF) {
         /* Distance to target is relevant. */
 


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

Reply via email to