From b6adf20a55c1d1acf217d898c898cf333b52fc8c Mon Sep 17 00:00:00 2001 From: Marko Lindqvist Date: Sat, 10 Apr 2021 18:49:28 +0300 Subject: [PATCH 49/49] 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 77d9d49885..0d25db74df 100644 --- a/client/helpdata.c +++ b/client/helpdata.c @@ -2757,6 +2757,17 @@ char *helptext_unit(char *buf, size_t bufsz, struct player *pplayer, _(" %s %d%% of the population of each city inside" " the nuclear blast dies.\n"), BULLET, game.info.nuke_pop_loss_pct); + if (game.info.nuke_pop_loss_pct < 50) { + cat_snprintf(buf, bufsz, + _(" %s can never destroy city completely " + "(%d%% of size 1 rounds down to 0).\n"), BULLET, + game.info.nuke_pop_loss_pct); + } else { + cat_snprintf(buf, bufsz, + _(" %s can even destroy city completely " + "(%d%% of size 1 rounds up to 1).\n"), BULLET, + game.info.nuke_pop_loss_pct); + } } if (game.info.nuke_defender_survival_chance_pct > 0) { cat_snprintf(buf, bufsz, -- 2.30.2