Skip to content

FIX: (#1669) Fix handling emptying granaries and warehouses in request dispatch#1725

Open
n-aswin wants to merge 2 commits intoKeriew:masterfrom
n-aswin:bugfix/issue#1669
Open

FIX: (#1669) Fix handling emptying granaries and warehouses in request dispatch#1725
n-aswin wants to merge 2 commits intoKeriew:masterfrom
n-aswin:bugfix/issue#1669

Conversation

@n-aswin
Copy link
Copy Markdown

@n-aswin n-aswin commented Apr 5, 2026

FIX: #1669

Emptying warehouses contribute to total available amount of resource in city_resource_get_amount_for_request() through building_warehouses_count_available_resource() but were not handled when removing resource in building_warehouses_send_resources_to_rome() while dispatch.

Fixed by including emptying warehouses among the first warehouses considered to remove the resource.

Emptying granaries have been updated with the same logic.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

retaining qty + emptying warehouse exploit

1 participant