From 2306733b48e915f722a4a25bbcd53da19682163f Mon Sep 17 00:00:00 2001 From: Sveinung Kvilhaugsvik Date: Tue, 11 May 2021 21:05:33 +0200 Subject: [PATCH 14/14] sandbox: destroy city with the last defender. Only protect size 1 cities from being destroyed until the last defender dies. Suggested by Marko Lindqvist See osdn #42244 --- data/sandbox/README.sandbox | 3 +++ data/sandbox/effects.ruleset | 5 +++-- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/data/sandbox/README.sandbox b/data/sandbox/README.sandbox index 0bd77d49ff..9e744c028e 100644 --- a/data/sandbox/README.sandbox +++ b/data/sandbox/README.sandbox @@ -232,3 +232,6 @@ all, wiping the entire defending stack while doing so. This happens even in situations where normal fight would kill just one of the defenders. For example city that has number of diplomats in it can be conquered with just one move. + +Post attack city destruction +A size 1 city is destroyed with its last defender. diff --git a/data/sandbox/effects.ruleset b/data/sandbox/effects.ruleset index a83d0c4cae..64dcd5cbab 100644 --- a/data/sandbox/effects.ruleset +++ b/data/sandbox/effects.ruleset @@ -4201,8 +4201,9 @@ reqs = type = "Unit_No_Lose_Pop" value = 1 reqs = - { "type", "name", "range", "present" - "MinSize", "2", "City", FALSE + { "type", "name", "range", "present" + "MaxUnitsOnTile", "1", "Local", FALSE + "MinSize", "2", "City", FALSE } [effect_incident_caught_steal_tech] -- 2.30.2