Firing arrows change skin on some occasions #202

Closed
opened 2019-12-29 18:11:19 +00:00 by jeremeriluoto · 4 comments
jeremeriluoto commented 2019-12-29 18:11:19 +00:00 (Migrated from github.com)

On some encounters when firing missiles the missile skin is dark line with yellow head. On same encounter the skin can change to dark line with poisonous green head, although poison was not applied or used.

On some encounters when firing missiles the missile skin is dark line with yellow head. On same encounter the skin can change to dark line with poisonous green head, although poison was not applied or used.
clort81 commented 2020-01-04 07:21:02 +00:00 (Migrated from github.com)

greenarrow

Confirmed on my linux build.

I noticed after starting a fresh game with default party and firing an arrow gave me correct arrow bitmap.
Perhaps this is related to party load/save? I attach a savefile from which i got the bug.

clortsave01.zip
Save is also here, temporarily http://0x0.st/znoi.zip

![greenarrow](https://user-images.githubusercontent.com/51511737/71761464-1db71d00-2ecb-11ea-949b-1577d8bb991b.png) Confirmed on my linux build. I noticed after starting a fresh game with default party and firing an arrow gave me correct arrow bitmap. Perhaps this is related to party load/save? I attach a savefile from which i got the bug. [clortsave01.zip](https://github.com/calref/cboe/files/4021687/clortsave01.zip) Save is also here, temporarily [http://0x0.st/znoi.zip](url)
clort81 commented 2020-01-12 01:01:50 +00:00 (Migrated from github.com)

I noticed that arrows bought in (another?) store displayed the correct arrow graphic.

I noticed that arrows bought in (another?) store displayed the correct arrow graphic.
CelticMinstrel commented 2020-01-12 15:42:09 +00:00 (Migrated from github.com)

We discussed this on IRC, and I believe the issue is simply that starter arrows don't specify the correct missile graphic.

(To clarify, "starter arrows" are the arrows given to a new character under certain conditions, which are hard-coded.)

We discussed this on IRC, and I believe the issue is simply that starter arrows don't specify the correct missile graphic. (To clarify, "starter arrows" are the arrows given to a new character under certain conditions, which are hard-coded.)
CelticMinstrel commented 2020-01-12 17:26:44 +00:00 (Migrated from github.com)

So, looking at the code (line 170 of item.cpp), it seems that my guess was wrong? It is correctly setting the missile graphic for the starter items.

So, new theory. Given that you mention it doesn't happen on a fresh party, it could be a matter of not storing the missile graphic in the saved game.

So, looking at the code (line 170 of item.cpp), it seems that my guess was wrong? It _is_ correctly setting the missile graphic for the starter items. So, new theory. Given that you mention it doesn't happen on a fresh party, it could be a matter of not storing the missile graphic in the saved game.
Sign in to join this conversation.
No description provided.