Custom Storage Fix

Edits the city window resource counting so that resources in custom storage buildings will also be displayed (not only those in standard barns and warehouses). Alcohol counting remains unchanged.

Download | How to use (FVModSync installation)

2017-04-01: No changes for 0.9.6127. Issue still exists in that version, as well.

How it works:

Original function GameMapScript:updateVillageResurces() (in gameLogic.lua):

            if bldName == "Barn" or bldName == "Warehouse" then
                local resources = getBuildingResources(bld)
                for key,value in pairs(resources) do
                    game.gameInfo:addStoredResource(key, value)


            if bldClass == 1 then ..

Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )


Connecting to %s