03-10-2004, 12:25 PM
Ruvanal, do you happen to know the levels the game use as start and end for each act to calculate the TC? If so, you would spare me checking the code for it (actually it is in the data segment so looking at code itself won't work).
For those wondering about the algorithm, here is how it works.
For each act, the game has a "first" and "last" level (set in a table and what I asked Ruvanal about). It used to be the first non townlevel in the list for the act and the last one (see table above). It goofed things up since the moo moo farm was such a high level. I think that got fixed, but act 5 appearantly is wrong too (town being first?).
Anyway, the game then calculate: (lvl_first - lvl_last + 1)/3 = X
Then the level of the current map area is compared as follow:
if lvl <= lvl_first + X drop from A
if lvl < lvl_first + 2*X drop from B
if lvl >= lvl_first + 2*X drop from C
For those wondering about the algorithm, here is how it works.
For each act, the game has a "first" and "last" level (set in a table and what I asked Ruvanal about). It used to be the first non townlevel in the list for the act and the last one (see table above). It goofed things up since the moo moo farm was such a high level. I think that got fixed, but act 5 appearantly is wrong too (town being first?).
Anyway, the game then calculate: (lvl_first - lvl_last + 1)/3 = X
Then the level of the current map area is compared as follow:
if lvl <= lvl_first + X drop from A
if lvl < lvl_first + 2*X drop from B
if lvl >= lvl_first + 2*X drop from C
There are three types of people in the world. Those who can count and those who can't.