Skip to content

Problems with gold in loot piles #320

@Allofich

Description

@Allofich

With current code bcec9e5 I only ever find 1 gold piece in loot piles when using OpenTESArena with an Arena 1.06 floppy installation, and no gold at all in loot piles when using it with a CD installation. Only 1 gold piece is added to the player inventory when clicking it, so it's not just a display bug. Checking in a debug build, gold is being correctly assigned in EntityChunkManager.cpp at the line const int goldAmount = ArenaEntityUtils::getLootGoldAmount(lootValuesIndex, exeData, random, initInfo.cityType, initInfo.interiorLevelIndex);, so something else must be changing the value to 1 or causing it to not appear at all.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions