Complete.Org: Mailing Lists: Archives: freeciv-dev: July 2006:
[Freeciv-Dev] (PR#18507) [Patch] Help about unit class flags
Home

[Freeciv-Dev] (PR#18507) [Patch] Help about unit class flags

[Top] [All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index] [Thread Index]
Subject: [Freeciv-Dev] (PR#18507) [Patch] Help about unit class flags
From: "Marko Lindqvist" <cazfi74@xxxxxxxxx>
Date: Tue, 11 Jul 2006 07:43:59 -0700
Reply-to: bugs@xxxxxxxxxxx

<URL: http://bugs.freeciv.org/Ticket/Display.html?id=18507 >


  Display help about unit class flags unit has.

  This means a lot of units have identical list of attributes visible, 
making it harder to notice important ones. Maybe we should display unit 
class information separately. That would require translatable unit class 
names.


  - ML

diff -Nurd -X.diff_ignore freeciv/client/helpdata.c freeciv/client/helpdata.c
--- freeciv/client/helpdata.c   2006-07-11 13:54:26.546875000 +0300
+++ freeciv/client/helpdata.c   2006-07-11 17:35:04.390625000 +0300
@@ -772,6 +772,16 @@
     sprintf(buf + strlen(buf),
            _("* Each player may only have one of this type of unit.\n"));
   }
+  if (unit_class_flag(get_unit_class(utype), UCF_CAN_OCCUPY)
+      && !unit_type_flag(utype, F_NONMIL)) {
+    sprintf(buf + strlen(buf), _("* Can occupy empty enemy cities.\n"));
+  }
+  if (!unit_class_flag(get_unit_class(utype), UCF_TERRAIN_SPEED)) {
+    sprintf(buf + strlen(buf), _("* Speed is not affected by terrain.\n"));
+  }
+  if (unit_class_flag(get_unit_class(utype), UCF_DAMAGE_SLOWS)) {
+    sprintf(buf + strlen(buf), _("* Slowed down while damaged\n"));
+  }
   if (utype->pop_cost > 0) {
     sprintf(buf + strlen(buf), _("* Requires %d population to build.\n"),
            utype->pop_cost);

[Prev in Thread] Current Thread [Next in Thread]
  • [Freeciv-Dev] (PR#18507) [Patch] Help about unit class flags, Marko Lindqvist <=