Summary: Suppress "Can build mines on tiles" etc in help
based on Mining_Possible, etc
                 Project: Freeciv
            Submitted by: jtn
            Submitted on: Fri 01 Aug 2014 12:52:30 BST
                Category: docs
                Priority: 5 - Normal
                  Status: None
                 Privacy: Public
             Assigned to: None
        Originator Email: 
             Open/Closed: Open
         Discussion Lock: Any
         Planned Release: 2.5.0, 2.6.0



Currently, units with the "settlers" flag get a load of hardcoded help of the
form "Can build mines/irrigation on tiles", " etc, regardless of whether this
is actually possible in practice.

Now that rulesets have fine control over much of this stuff via effects like
Mining_Possible, this can be inappropriate:
* A ruleset could disallow any kind of e.g. mining globally, but the help
would still claim it's possible.
* Certain units can be restricted from activities (as proposed for civ2civ3
Transports under bug #22417).

The help system could check to see if a given unit type can ever perform the
requested action. It won't be perfect but looking for simple things like nreqs
for unit properties, or global effect values (maybe similar to bug #20521?)
will give ruleset authors the tools they need to suppress this text.

There's also text "Can build roads and railroads", which is problematic now we
have gen-roads. This falls into the same category as bases for which there's
already a FIXME comment (maybe the above approaches will make this fixable?)

(Not sure how applicable this will be to trunk with generalised extras; maybe
a different approach is needed there.)


Reply to this item at:


  Message sent via/by Gna!

Freeciv-dev mailing list

Reply via email to