ElderHank462 / Wynatia

Open world RPG
1 stars 0 forks source link

[Build-only, build 11.10.2023] Arrows never run out, items spawn twice #35

Open ElderHank462 opened 11 months ago

ElderHank462 commented 11 months ago

Not reproduceable, only happened on initial load. Didn't clear persistent data path before building, may have contributed?

ElderHank462 commented 11 months ago

Arrows never running out happened once in editor too, still not sure how to reproduce.

ElderHank462 commented 11 months ago

Implemented a condition before readying an arrow that checks to make sure the count of the ammunition in the inventory is at least 1. Don't know if this fixes the issue because I can't reproduce it, but if it comes up again I guess I know it doesn't work.

ElderHank462 commented 11 months ago

Found a way to reproduce this.

When the game is reloaded with arrows already equipped, when the last arrow is fired the arrow remains in the inventory with a count of 0 and it stays equipped in playerEquipment. The logic is still functional: the player can't shoot more arrows than they have, but the displays are all wrong.

ElderHank462 commented 11 months ago

Seems to be fixed now. Keeping the issue open in case it comes up again.

ElderHank462 commented 7 months ago

Items spawning twice was because item prefabs were not marked as ES3 prefabs