From 4f9db6a66accf438f735170a1b96020e5bdf9ac7 Mon Sep 17 00:00:00 2001 From: Marko Lindqvist Date: Thu, 13 May 2021 15:10:12 +0300 Subject: [PATCH 53/53] AI: Increase space want when already running for spacerace This does not increase want to start spacerace, but makes it less half-hearted attempt when already running. See osdn #42259 Signed-off-by: Marko Lindqvist --- ai/default/daieffects.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/ai/default/daieffects.c b/ai/default/daieffects.c index 157e177889..165afe905f 100644 --- a/ai/default/daieffects.c +++ b/ai/default/daieffects.c @@ -406,6 +406,11 @@ adv_want dai_effect_value(struct player *pplayer, struct government *gov, || adv->dipl.production_leader == pplayer || adv->dipl.tech_leader == pplayer)) { v += 140; + + if (pplayer->spaceship.state == SSHIP_STARTED) { + /* We are already running. Let's not make it a half-hearted attempt. */ + v += 80; + } } break; case EFT_SPY_RESISTANT: -- 2.30.2