fonsleenaars / tqdb

Python parser for the Titan Quest Anniversary Edition, Ragnarok, Atlantis, Eternal Ember DLC database.
https://tq-db.net
MIT License
50 stars 15 forks source link

Level requirement equations #113

Open fonsleenaars opened 2 years ago

fonsleenaars commented 2 years ago

There is some inconsistency in the equations that are used to determine the level requirements for uniques in the game.

As an example, Ferrus Gnossi should evaluate to level 47, but in-game it says it's level 48.

itemCostName,records\game\itemcost_uniquelegendary_primary.dbr,
itemLevel,68,
upperBodyLevelEquation,21 + (((itemLevel-30)*0.5)+(totalAttCount*0.75)),

image

Including armor there are 9 properties, which would run the equation:

21 + (((68 - 30) * 0.5) + (9 * 0.75))
21 + ((19) + (6.75))
21 + (25.75)
46.75

Rounded = 47

cc @TheWagi

I'll compile a list of expected values from in-game screenshots, and then we can try to figure out what is going wrong, and what the expected totalAttCount should be.