I think I was looking at the wrong version of the code, so the pic here
>>52379969 didn't reflect the current version of crobat
>>52381287>>52381316I suppose you didn't find any Micle either. According to this
https://github.com/Crobat4/pokeclicker/blob/master-crobat/src/scripts/dungeons/Dungeon.tsall 4 are added to the legendary loot table, which already has two items. Compare to the Spear Pillar case, where the legendary table is empty and then gets the Haban, and later the Apicot and Lansat added.
I'm not sure what is the default weight for loot items, but if it isn't 0 then that might be the issue. It would mean in Abundant Shrine that the total weight of legendary loots is larger than 0 and evenly distributed between the Ultraball and the Large Restore, while the berries are ignored because they have literally no weight. In Spear Pillar's case the total weight is 0, which is equal to the weight of all 3 berries, but is somehow defaulting to the first one in the list (the Haban) while the other 2 are ignored.