From 22676c97da692930c7bae12747bd52043d0bfcd0 Mon Sep 17 00:00:00 2001 From: Marko Lindqvist Date: Sat, 10 Apr 2021 18:54:01 +0300 Subject: [PATCH 41/41] Tell in help if nukes can destroy cities completely or not See osdn #41967 Signed-off-by: Marko Lindqvist --- client/helpdata.c | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/client/helpdata.c b/client/helpdata.c index c1ce1e47fa..76f34389d7 100644 --- a/client/helpdata.c +++ b/client/helpdata.c @@ -2709,6 +2709,17 @@ char *helptext_unit(char *buf, size_t bufsz, struct player *pplayer, _(" * %d%% of the population of each city inside" " the nuclear blast dies.\n"), game.info.nuke_pop_loss_pct); + if (game.info.nuke_pop_loss_pct < 50) { + cat_snprintf(buf, bufsz, + _(" * can never destroy city completely " + "(%d%% of size 1 rounds down to 0).\n"), + game.info.nuke_pop_loss_pct); + } else { + cat_snprintf(buf, bufsz, + _(" * can even destroy city completely " + "(%d%% of size 1 rounds up to 1).\n"), + game.info.nuke_pop_loss_pct); + } } if (game.info.nuke_defender_survival_chance_pct > 0) { cat_snprintf(buf, bufsz, -- 2.30.2