From 388b9b0e50981bfc418e7a78724429b888e668f6 Mon Sep 17 00:00:00 2001 From: Sveinung Kvilhaugsvik Date: Sun, 21 Feb 2021 15:18:21 +0100 Subject: [PATCH] autohelp for action sub results. Document the action sub results for hut entry and hut frightening in the auto help for the action in the help for the unit type. See osdn #41623 --- client/helpdata.c | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/client/helpdata.c b/client/helpdata.c index 4e34d9acfe..aaa7ff423b 100644 --- a/client/helpdata.c +++ b/client/helpdata.c @@ -2868,6 +2868,22 @@ char *helptext_unit(char *buf, size_t bufsz, struct player *pplayer, break; } + /* Custom action sub result specific information. */ + if (BV_ISSET(paction->sub_results, ACT_SUB_RES_HUT_ENTER)) { + /* TRANS: indented unit action property, preserve + * leading spaces. */ + cat_snprintf(buf, bufsz, + _(" * if a suitable hut is at the targetet tile it" + " will be entered.\n")); + } + if (BV_ISSET(paction->sub_results, ACT_SUB_RES_HUT_FRIGHTEN)) { + /* TRANS: indented unit action property, preserve + * leading spaces. */ + cat_snprintf(buf, bufsz, + _(" * if a suitable hut is at the targetet tile it" + " will be frightened.\n")); + } + i = 0; action_iterate(blocker_id) { const struct action *blocker = action_by_number(blocker_id); -- 2.20.1