StrangeLoopGames / EcoIssues

131 stars 21 forks source link

Allow to pass law to set constant value #16029

Open matheod opened 4 years ago

matheod commented 4 years ago

It would be nice if a law could create a constant value which could then be used by other law.

For exemple, we could pass a law to set the constant value TAX to 0.10 and then pass a law removing each day TAX×OWNED_COIN() to player. We could then, decide to change the TAX value with an other law. That way all "law" using the constant value will be updated automatically if the law pass.

Maybe also allow to pass a law to create a constant value which could be changed by designated group of people without a law.

trickenso commented 4 years ago

Being able to separate administration of a tax structure from its value might be useful.

You might want the finance minister to be able to unilaterally change the tax amount, for instance, but require a vote to change who it applies to.

D3nnis3n commented 4 years ago

Approved. Very good idea, i've been talking about setting variables earlier to you, @johnkslg. Probably something for a future minor patch or 10.0. I set it to backlog for now.

IcedForge commented 4 years ago

It is currently possible to do with the custom statistics ( 9.1 fix with sum count, still not doable in 9.0.x as it is an issue with sum vs count )

Might need to look into this in the future for a more convenient way as this can get pretty complex very fast especially if you want to add in multiple item types but it is possible to work around it now. Screenshot_72.jpg