Closed MikuMiddo closed 3 years ago
The is_relic()
check below should probably be replaced with is_relic() && *relic_data == *rhs.relic_data
(or equivalent).
The relic datum might need an equality operator or other way to check equality implemented.
https://github.com/CleverRaven/Cataclysm-DDA/blob/d4a0263c47860e87a298b9d0ae7eed3c7b6a2646/src/item.cpp#L943-L951
(C.C. @KorGgenT if this solution sounds correct)
i agree. possibly we want items that have relic charges to still not stack, but i can also see a reason to have them still stack
Yeah i just put the is_relic() check because I though relic were unique.
I know that previously when they stacked it caused the procedurally generated relics once stacked to be identical in effects.
Describe the bug
Usually,the completly same item(same attributes) will stack together to save the looking-space of invertory. but now,if the item has a relic_data,It will be showen one by one in your invertory,even if they have the same attributes
If you have 20 strenght-ring in your pockets,in the past,it will show '20 strenght-rings'in one line,but now,it will show 'strenght-ring' for 20 lines,it makes the invertory menu ugly and hard to use.
Steps To Reproduce
1.debug for 30 strenght-ring(with Magiclysm mod) 2.open [i]nvertory menu.
Expected behavior
They should stack together again.
Screenshots
Versions and configuration
Additional context