yairm210 / Unciv

Open-source Android/Desktop remake of Civ V
Mozilla Public License 2.0
8.34k stars 1.56k forks source link

Feature request: tree replanting #10961

Closed AdamTeodoro closed 7 months ago

AdamTeodoro commented 8 months ago

Before creating

Problem Description

regions become unproductive when trees are cut down and it is not possible to create more sawmills, making it impossible to change strategy

Related Issue Links

No response

Desired Solution

create tecnology from tree replants in early or mid game.

Alternative Approaches

create another ground to upgrade production

Additional Context

No response

SomeTroglodyte commented 8 months ago

Nope. Not compatible with the project's goal (the mission statement is around somewhere - here?) . This is a modding request and there's a sticky up there on the issues landing page for that.

SomeTroglodyte commented 8 months ago

That said - attractive idea certainly already mentioned. I believe decades ago I had Civ4 modded to have terraforming units - or was that Civ-CTP? Lowering or raising terrain, changing humidity, or sprout vegetation, all that they could...

tuvus commented 7 months ago

I think this can be done in a simple mod. Just add a replant tree improvement, and when a worker builds the improvement, it adds the forest again.

SomeTroglodyte commented 7 months ago

You still need the actual "Executor" converting the tile with improvement into tile with feature instead -> some new Unique

tuvus commented 7 months ago

Hmm, maybe we could add two new unique: Addfeaturewhenbuilt and AbstractImprovement, the improvement isn't actually built. Instead gives like a one-time resource bonus or something (so it is more useful in other senarios). Combining them would then create a forest without adding the improvement to the tile.

SomeTroglodyte commented 7 months ago

Introduce Tile-context triggers?

tuvus commented 7 months ago

Introduce Tile-context triggers?

I don't know what you mean by that specifically. For AbstractImprovement (needs a better name) it gives the improvements resource values one time. If that's what you are asking.

SomeTroglodyte commented 7 months ago

I mean look at #11011 - there's a trigger system, and it seems to play only with civs and units so far...

yairm210 commented 7 months ago

DONE, this is now moddable with #11152 If you want a multi-turn improvement, doable with a trigger that adds a forest, and another one that removes the improvement itself - the idea of an improvement that's fake and is just a container for triggers is interesting, and merits further thought