MeikelLP / quantum-core-x

Metin2 open source server implementation
https://meikellp.github.io/quantum-core-x/
Mozilla Public License 2.0
35 stars 9 forks source link

bug: movement speed penalty does not apply #194

Open uutkukorkmaz opened 4 days ago

uutkukorkmaz commented 4 days ago

What happened?

I equipped an armor and expected it to slow me down, but instead, I gained movement speed. At that point, "I am speed, kachow!"

speed-noarmor

speed-armor

How to reproduce?

No response

Stacktrace

No response

OS Platform

Windows

Additional Information and Notes

It's probably because of the type casting of the proto's apply value to byte at Executables\Game\World\Entities\PlayerEntity.cs:288. I guess casting it to integer would fix this.

MeikelLP commented 3 days ago

This should be backed by a test to avoid regression

Maybe I should add a label requires/test or something