daidodo / diablo_edit

Diablo II Character editor.
MIT License
212 stars 55 forks source link

Just an advice #32

Closed LordTreufeldt closed 2 years ago

LordTreufeldt commented 2 years ago

Hi, just to advise you that the character properties Stamina, Life and Mana are all floating point numbers, not integers! Ok.

According to the char level these stats might become floating points.

Could you fix it?

Thank you.

daidodo commented 2 years ago

@LordTreufeldt

Thanks for the feedback! Could you share some links to support this?

LordTreufeldt commented 2 years ago

Hi.

You could check stats for all chars in this link: https://diablo-archive.fandom.com/wiki/

For example. Assassin has floating point stats for mana and stamina per level; and per spent points on vitality/energy. https://diablo-archive.fandom.com/wiki/Assassin_(Diablo_II)

Druid has floating points on life per level.

I don't know if this occurs only in expansion, but probably is!

Thank you.

daidodo commented 2 years ago

The problem is those values are rounded and stored as integers in the file, even when they might be calculated in floats. So there is nothing I can do here.