if tribe == object.tHabsburgian and BerlinReformation[turn] then
local BerlinProtestant = {}
BerlinProtestant[1] = "We can't do anything (Berlin became protestant)."
if tribe.money >= 500 then
BerlinProtestant[2] = "Send a papal inquisitor and troops to the city (Risk of religious unrest near Berlin)."
end
local choice = text.menu(BerlinProtestant,"People in Berlin now following Martin Luther. What shall we do? Our treasury stands at "..tostring(tribe.money).." gold.","")
-- if the choice is 1, Berlin became protestant
if choice == 1 then
object.cBerlin.owner = object.tProtestant
if unit.owner ~= object.tProtestant and unit.location.x == object.cBerlin.location.x and unit.location.y == object.cBerlin.location.y and unit.location.z == object.cBerlin.location.z then
civ.deleteUnit(unit)
end
civlua.createUnit(object.uProtestantPikemen, object.tProtestant, {{162,30,0}}, {count=2, randomize=false, veteran=false})
--If the choice is 2, Berlin remains catholic
elseif choice == 2 then
civlua.createUnit(object.uReligiousFanatics, object.tBarbarians, {{161,29,0},{162,28,0},{16,29,0}}, {count=6, randomize=false, veteran=false})
tribe.money = tribe.money - 1500
end
end-- end of Berlin Reformation