General > Discussion

Techtree

<< < (3/3)

geever:
I should explain how it works. Tech have conditions: AND conditions and OR conditions; and a time value (time is the delay the research shown up after collecting an item for example).

Every requirement in AND section and any in OR section should be met to have the research opened. These conditions can be knowing a technology or ownin' certain number of an equipment/stuff. That last is base dependent. There are statusflags statusResearchable and statusCollected which are caching the statusflags. The menu uses them. There is a function which manipulate these these flags by rechecking every prerequisites. That  function is called when a research finished and maybe when a new item is collected but the flags can store statuses for one base only. I didn't remove them yet as it could break many things but ran that recheck function when entering researchscreen.

-geever

Another Guy:
That explanation made things a lot more clear. thx :)

Navigation

[0] Message Index

[*] Previous page

Go to full version