Modding the lombard

Has anyone tried messing around with the lombard?

I looked over the files and cant seem to get an idea where the characteristics such as the res pool cap, the amount of deposit per click etc. Where that is stored and like how I would go about changing it? or even use the mechanic elsewhere or in other ways like auto deposit ( is this even possible?)

would like to know if there has been any work in this area

Oh, Investment is a doozy, I’ve poked into it but can’t guarantee certain aspects of it aren’t hardcoded.

First of all, you need to literally enable investment in the age 0 of the civ you are gonna play.

The amount of deposits per click are located in Protounitcommands I’m pretty sure, although I didn’t see a cap.

What do you exactly mean by autodeposit?

I saw these in the protounicommands but I couldnt understand how it relates to the deposit thing

  <protounitcommand>
    <name>deInvestFood</name>
    <command>investResource(-1,"Food")</command>
    <icon>resources\images\icons\techs\asians\shrine_food.png</icon>
    <rollovertextid>122202</rollovertextid>
    <disabledrollovertextid>122202</disabledrollovertextid>
    <valuetext>{resourceInvestment}</valuetext>
  </protounitcommand>

Im guess its the {resourceInvestment} but i dont think i managed to do something to make it change

basically to have the game take resource from your stockpile and deposit it into the lombards automatically, either as a one off or as a rate.

The idea I am exploring is to use the investment mechanic as an alternative the the ResourceExchange effect since as far as I can tell it only exchanges all the res in your stockpile and not a fraction of it

The other potential way I was exploring is the Jagiellon Balance of Power but that thing is literally just an effect type so have no clue how to even approach that