Project

Profile

Help

HostedRedmine.com has moved to the Planio platform. All logins and passwords remained the same. All users will be able to login and use Redmine just as before. *Read more...*

Feature #877163 ยป 0016-helpdata-converts-terrain-in-action-help.patch

Sveinung Kvilhaugsvik, 2020-06-09 03:08 PM

View differences:

client/helpdata.c
}
}
if (utype_has_flag(utype, UTYF_SETTLERS)) {
struct universal for_utype = { .kind = VUT_UTYPE, .value = { .utype = utype }};
struct astring extras_and = ASTRING_INIT;
struct strvec *extras_vec = strvec_new();
......
strvec_clear(extras_vec);
}
}
if (univs_have_action_enabler(ACTION_PLANT, &for_utype, NULL)) {
CATLSTR(buf, bufsz, _("* Can convert terrain to another type by "
"planting.\n"));
}
if (utype_can_do_action(utype, ACTION_IRRIGATE)) {
extra_type_by_cause_iterate(EC_IRRIGATION, pextra) {
......
strvec_clear(extras_vec);
}
}
if (univs_have_action_enabler(ACTION_CULTIVATE, &for_utype, NULL)) {
CATLSTR(buf, bufsz, _("* Can convert terrain to another type by "
"cultivating.\n"));
}
if (univs_have_action_enabler(ACTION_TRANSFORM_TERRAIN, &for_utype, NULL)) {
CATLSTR(buf, bufsz, _("* Can transform terrain to another type.\n"));
}
extra_type_by_cause_iterate(EC_BASE, pextra) {
if (help_is_extra_buildable(pextra, utype)) {
......
}
break;
case ACTRES_PLANT:
case ACTRES_CULTIVATE:
case ACTRES_TRANSFORM_TERRAIN:
cat_snprintf(buf, bufsz,
_(" * converts target tile terrain to another"
" type.\n"));
break;
default:
/* No action specific details. */
break;
    (1-1/1)