From 1458de853d2b622795cc66a473ad1919b38894d1 Mon Sep 17 00:00:00 2001 From: Dino Date: Sun, 2 Aug 2026 23:42:14 -0400 Subject: [PATCH] Remove Railroad/Maglev from destroyed city tiles with Ruins RM #2104 --- data/civ2civ3/script.lua | 2 ++ data/classic/script.lua | 1 + data/goldkeep/script.lua | 2 ++ data/multiplayer/script.lua | 1 + data/sandbox/script.lua | 2 ++ 5 files changed, 8 insertions(+) diff --git a/data/civ2civ3/script.lua b/data/civ2civ3/script.lua index b9300215d9..60b84a3756 100644 --- a/data/civ2civ3/script.lua +++ b/data/civ2civ3/script.lua @@ -18,6 +18,8 @@ -- Place Ruins at the location of the destroyed city. function city_destroyed_callback(city, loser, destroyer) city.tile:create_extra("Ruins", NIL) + city.tile:remove_extra("Maglev") + city.tile:remove_extra("Railroad") -- continue processing return false end diff --git a/data/classic/script.lua b/data/classic/script.lua index dc4e2daaaa..01dc6e7854 100644 --- a/data/classic/script.lua +++ b/data/classic/script.lua @@ -18,6 +18,7 @@ -- Place Ruins at the location of the destroyed city. function city_destroyed_callback(city, loser, destroyer) city.tile:create_extra("Ruins", NIL) + city.tile:remove_extra("Railroad") -- continue processing return false end diff --git a/data/goldkeep/script.lua b/data/goldkeep/script.lua index a46f67b18a..5d774b27d4 100644 --- a/data/goldkeep/script.lua +++ b/data/goldkeep/script.lua @@ -21,6 +21,8 @@ -- Place Ruins at the location of the destroyed city. function city_destroyed_callback(city, loser, destroyer) city.tile:create_extra("Ruins", NIL) + city.tile:remove_extra("Maglev") + city.tile:remove_extra("Railroad") -- continue processing return false end diff --git a/data/multiplayer/script.lua b/data/multiplayer/script.lua index 3fcc83a464..d907859417 100644 --- a/data/multiplayer/script.lua +++ b/data/multiplayer/script.lua @@ -18,6 +18,7 @@ -- Place Ruins at the location of the destroyed city. function city_destroyed_callback(city, loser, destroyer) city.tile:create_extra("Ruins", NIL) + city.tile:remove_extra("Railroad") -- continue processing return false end diff --git a/data/sandbox/script.lua b/data/sandbox/script.lua index 55c602dfb1..bc9b778ba2 100644 --- a/data/sandbox/script.lua +++ b/data/sandbox/script.lua @@ -18,6 +18,8 @@ -- Place Ruins at the location of the destroyed city. function city_destroyed_callback(city, loser, destroyer) city.tile:create_extra("Ruins", NIL) + city.tile:remove_extra("Maglev") + city.tile:remove_extra("Railroad") -- continue processing return false end -- 2.31.0