#3208 closed enhancement (fixed)
[PATCH] Letting technologies replace other technologies
Reported by: | sanderd17 | Owned by: | sanderd17 |
---|---|---|---|
Priority: | Should Have | Milestone: | Alpha 19 |
Component: | UI & Simulation | Keywords: | patch |
Cc: | Patch: |
Description
Sometimes, different civs want to have different techs that unlock the same things.
Think about a civ in a mod wanting to have an alternative town phase.
For that, it would be handy if a tech can "provide" a different tech. So unlock the same things. F.e., if a tech has the following line
{ "replaces": ["phase_town_generic"] }
then everything that depends on the "phase_town_generic" tech will be unlocked. This includes units, buildings and other techs. But the effects defined in the "phase_town_generic" won't be applied.
Attachments (4)
Change History (9)
by , 9 years ago
Attachment: | TechnologyReplace.patch added |
---|
by , 9 years ago
Attachment: | TechnologyReplaceWithTechnologies.patch added |
---|
Now with modified technologies
comment:1 by , 9 years ago
Keywords: | patch review added |
---|---|
Milestone: | Backlog → Alpha 19 |
Summary: | Letting technologies replace other technologies → [Patch] Letting technologies replace other technologies |
comment:2 by , 9 years ago
The default gameplay works nice. But there are two remaining issues:
- The "back to the future" cheat is broken now. Shouldn't be too hard to fix it.
- The AI can't research the regular town phase anymore (there's no problem with the athen town phase). This is also most likely a simple fix. And this will likely also be the case for the city phase.
The code looks good on first sight (though I should check if the AI actually understands the stat changes correctly, the stat changes in the simulation seem to be correct).
by , 9 years ago
Attachment: | structreeFix.patch added |
---|
The proposed change breaks the structree. This patch addresses that particular problem.
by , 9 years ago
Attachment: | TechnologyReplaceWithTechnologiesAIAndCheats.patch added |
---|
Includes the AI and cheat fixes
comment:4 by , 9 years ago
Keywords: | simple review removed |
---|
comment:5 by , 8 years ago
Summary: | [Patch] Letting technologies replace other technologies → [PATCH] Letting technologies replace other technologies |
---|
Patch that allows technologies to mark other technologies as 'researched' using the example json block