From e911120809d328fd8c7063299db7e348004c033c Mon Sep 17 00:00:00 2001 From: Marko Lindqvist Date: Fri, 20 Jan 2023 01:03:42 +0200 Subject: [PATCH 44/44] Alien: Refactor "Tile_Workable" effects Have just one effect covering all always workable terrains. See osdn #46421 Signed-off-by: Marko Lindqvist --- data/alien/effects.ruleset | 32 +++++--------------------------- 1 file changed, 5 insertions(+), 27 deletions(-) diff --git a/data/alien/effects.ruleset b/data/alien/effects.ruleset index c8522fd0ad..be228c88c4 100644 --- a/data/alien/effects.ruleset +++ b/data/alien/effects.ruleset @@ -811,12 +811,14 @@ reqs = "UnitClass", "Native", "Local" } -[effect_workable_grassland] +[effect_workable_normal_tile] type = "Tile_Workable" value = 1 reqs = - { "type", "name", "range" - "Terrain", "Grassland", "Local" + { "type", "name", "range", "present" + "TerrainFlag", "Radiating", "Local", FALSE + "Terrain", "Inaccessible", "Local", FALSE + "Terrain", "Boiling Ocean", "Local", FALSE } [effect_workable_radiating] @@ -828,30 +830,6 @@ reqs = "Tech", "Organic Structures", "Player" } -[effect_workable_hills] -type = "Tile_Workable" -value = 1 -reqs = - { "type", "name", "range" - "Terrain", "Hills", "Local" - } - -[effect_workable_thick_mountains] -type = "Tile_Workable" -value = 1 -reqs = - { "type", "name", "range" - "Terrain", "Thick Mountains", "Local" - } - -[effect_workable_ocean] -type = "Tile_Workable" -value = 1 -reqs = - { "type", "name", "range" - "Terrain", "Ocean", "Local" - } - [effect_workable_boiling_ocean] type = "Tile_Workable" value = 1 -- 2.39.0