fheroes2 icon indicating copy to clipboard operation
fheroes2 copied to clipboard

Adventure map, faulty artifact being picked up causes forest to disappear temporary

Open Branikolog opened this issue 11 months ago • 3 comments

Preliminary checks

Platform

Windows

Describe the bug

The artifact my hero is picking does not correspond the sprite we watch on the screen. Picking it up also causes forest to disappear during fading animation.

https://github.com/ihhub/fheroes2/assets/55348946/8a5f9614-456b-4c74-a64f-3cee61d2bc3f

I've checked on two separate games - there's always a magic ring. But this could be a coincidence though.

Save file

Lost_Relic_artifact issue.zip

Additional info

No response

Branikolog avatar Mar 20 '24 21:03 Branikolog

This is the problem of object removal logic.

ihhub avatar Mar 23 '24 01:03 ihhub

Actually, this map (Lost Relic) has multiple places, where artifacts were placed on improper places. If I'm not mistaken we were already fixed some issue on this map: an artifact was placed on an improper cell somewhere in swamps.

Branikolog avatar Mar 24 '24 15:03 Branikolog

As expected this is due to object positioning on this tile:

******* Tile info *******
Tile index      : 1502, point: (62, 20)
MP2 object type : 169 (Artifact)
UID             : 1181
ICN object type : 43 (TREFIR.ICN)
image index     : 22
layer type      : 0 - Object layer
is shadow       : no
region          : 4
ground          : Grass (isRoad: 0)
ground img index: 72, image flags: 0
passable from   : center, top, top-right, right, bottom-right, bottom, bottom-left, left, top-left
metadata value 1: 11
metadata value 2: 0
metadata value 3: 0
--------- Level 1 --------
UID             : 2071
ICN object type : 11 (OBJNARTI.ICN)
image index     : 105
layer type      : 0 - Object layer
is shadow       : no
--- Extra information ---
*************************

ihhub avatar Apr 05 '24 16:04 ihhub