• We have updated our Community Code of Conduct. Please read through the new rules for the forum that are an integral part of Paradox Interactive’s User Agreement.

Jean le Chauve

Second Lieutenant
24 Badges
Sep 2, 2006
141
0
  • 500k Club
  • Crusader Kings II: Holy Fury
  • Shadowrun Returns
  • Crusader Kings II: Jade Dragon
  • Age of Wonders III
  • Surviving Mars
  • Knights of Honor
  • Crusader Kings II: Monks and Mystics
  • Crusader Kings II: Reapers Due
  • Crusader Kings II: Conclave
  • Crusader Kings II: Horse Lords
  • Crusader Kings II: Way of Life
  • Cities in Motion 2
  • Warlock: Master of the Arcane
  • Diplomacy
  • Crusader Kings II: Sword of Islam
  • Crusader Kings II: Sunset Invasion
  • Crusader Kings II: Sons of Abraham
  • Crusader Kings II: The Republic
  • Crusader Kings II: Rajas of India
  • Crusader Kings II: The Old Gods
  • Crusader Kings II: Legacy of Rome
  • Crusader Kings II: Charlemagne
  • Crusader Kings II
Hi,
I would like to disable the maintenance of some buildings.

RequiresMaintenance.lua line 89
Code:
function RequiresMaintenance:OnModifiableValueChanged(prop)
    if prop == "disable_maintenance" then
        if self.disable_maintenance >= 1 then --no reenabling for now.
            self:DisableMaintenance()
        end
    end
end
How can I activate this feature?
 
There's a mod that does this, I forget what it's called and where it is though. Anyway, I'm pretty sure that you just have to toggle disable maintenance on the building.

So, disable_maintenance = 1