Fix the Seyan spell power rounding

Your ideas on how the game, the forum or the community can be improved

Moderators: Gods, Imps, Architect, Guardian

Post Reply
Botar
Lance Corporal
Lance Corporal
Posts: 16
Joined: Tue Aug 09, 2016 4:40 pm

Fix the Seyan spell power rounding

Post by Botar »

My suggestion is to fix the Seyan spell power rounding, like the topic says :P

Even with the rebirth spell power bonus I'm not getting the last point of spell power on my spells. This is a problem, especially on bless, where the difference between power 299 and power 300 is a point of bwias.

I know I brought it up before and it was blamed on a rounding error, but is there any way this can get fixed?
Botar
Lance Corporal
Lance Corporal
Posts: 16
Joined: Tue Aug 09, 2016 4:40 pm

Post by Botar »

Looks like it isn't just a seyan issue, Cicgurnm has 203 mod on his necro with a .95 spell modifier and gets power 191

203*.95=192.85 so it rounds down to 192, then it just takes a point off for who knows what reason
Asmodeus
Major
Major
Posts: 169
Joined: Wed Jun 15, 2016 1:34 pm
Location: Montreal

Post by Asmodeus »

lol too OP already!
Botar
Lance Corporal
Lance Corporal
Posts: 16
Joined: Tue Aug 09, 2016 4:40 pm

Post by Botar »

Tested it on my hara, doesn't happen to him. I guess you need a spell power bonus to get the full benefit of your spells
Asmodeus
Major
Major
Posts: 169
Joined: Wed Jun 15, 2016 1:34 pm
Location: Montreal

Post by Asmodeus »

You should be at 0% now aren't you?
Botar
Lance Corporal
Lance Corporal
Posts: 16
Joined: Tue Aug 09, 2016 4:40 pm

Post by Botar »

My seyan is at 0% now, yes. Still gets a point subtracted for some reason.
Lurker
Colonel
Colonel
Posts: 270
Joined: Fri Sep 02, 2016 10:27 pm

Post by Lurker »

I think it is working as intened. The rebirth is a 5% increase 5% increase of .95 is .9975 not 1.
Motoko
Major General
Major General
Posts: 349
Joined: Sun Jul 17, 2016 1:17 pm

Post by Motoko »

Lurker wrote:I think it is working as intened. The rebirth is a 5% increase 5% increase of .95 is .9975 not 1.
Correct, it's multiplicative.
LazyWarrior
Baron of Aranock
Baron of Aranock
Posts: 762
Joined: Sun Apr 03, 2016 4:43 am
Location: Temple of Aranock

Post by LazyWarrior »

Motoko wrote:
Lurker wrote:I think it is working as intened. The rebirth is a 5% increase 5% increase of .95 is .9975 not 1.
Correct, it's multiplicative.
I'm pretty sure its not(if it is it rounds up for every other race so it doesn't matter), only seyan and necro have this issue, and they have this issue with or without rebirth I'm pretty sure.
Motoko
Major General
Major General
Posts: 349
Joined: Sun Jul 17, 2016 1:17 pm

Post by Motoko »

LazyWarrior wrote:
Motoko wrote:
Lurker wrote:I think it is working as intened. The rebirth is a 5% increase 5% increase of .95 is .9975 not 1.
Correct, it's multiplicative.
I'm pretty sure its not(if it is it rounds up for every other race so it doesn't matter), only seyan and necro have this issue, and they have this issue with or without rebirth I'm pretty sure.
If it's not it needs to be fixed to be because that's what was agreed.

IE Sorc should be 1.1* 1.05, not 1.1+0.05
LazyWarrior
Baron of Aranock
Baron of Aranock
Posts: 762
Joined: Sun Apr 03, 2016 4:43 am
Location: Temple of Aranock

Post by LazyWarrior »

Motoko wrote:
LazyWarrior wrote:
Motoko wrote: Correct, it's multiplicative.
I'm pretty sure its not(if it is it rounds up for every other race so it doesn't matter), only seyan and necro have this issue, and they have this issue with or without rebirth I'm pretty sure.
If it's not it needs to be fixed to be because that's what was agreed.

IE Sorc should be 1.1* 1.05, not 1.1+0.05
What I'm saying is, this isn't related to rebirth. Its just an issue with seyans and necros.
Lurker
Colonel
Colonel
Posts: 270
Joined: Fri Sep 02, 2016 10:27 pm

Post by Lurker »

There is no rounding happening. The values in the code are done as ints. Literally any decimals just don't exist. If the result is 100.99999(if you were multiplying floats) all the code knows is 100. I just checked and verified seyans get a proper .95 and talked to a rebirth seyan and necro and they get .995. Sorcs get a 1.10 with no rounding happening as well, because like said when you just assign a float to an int the decimals are just done away with unless explicity running a function that rounds, which, unless LL has added, it doesn't do.
Lurker
Colonel
Colonel
Posts: 270
Joined: Fri Sep 02, 2016 10:27 pm

Post by Lurker »

Okay I talked to lazy in game I understand what he is saying now. I don't think it's a rounding issue but a simple floating point math sucks issue. Definitely fixable not sure how serious of a deal it is but I'd be willing to submit the code if it would be accepted.
Post Reply