Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

bonus, dual-wielding 관련 버그 #10

Open
hagukin opened this issue Oct 30, 2021 · 0 comments
Open

bonus, dual-wielding 관련 버그 #10

hagukin opened this issue Oct 30, 2021 · 0 comments

Comments

@hagukin
Copy link
Owner

hagukin commented Oct 30, 2021

dexterity에 영향을 주는 Bonus가 있을 경우
update_dual_wielding()이 호출되면 changed_status를 기준으로 디버프 값을 책정하기 때문에
나중에 그 Bonus가 사라지더라도 update_dual_wielding()이 다시 호출되기 전까지 잘못된 디버프값이 유지됨.

ex.
플레이어가 dual wield 중임, dex 15 -> 13 (-2)
플레이어가 중독됨, dex 13 -> 5 (-2, -8)
dual wield를 해제했다가 다시 똑같은 무기로 dual wield 함, dex 5 -> 7 -> 2 (+2, -5)
ㄴ 여기서 두번째 dual wielding을 할때 -2가 아니라 -5만큼 깎인 이유는 changed_status["dex"]가 15에서 7로 변했기 때문임.

(실제 테스트를 거친 내용이 아니라 정확한 수치는 다를 수 있음)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant