Quantcast
Channel: Darkest Dungeon » All Posts
Viewing all articles
Browse latest Browse all 1753

Increasing stack size conditionally

$
0
0

Hello there,

I started poking around with the game files tonight. I’m looking to add a few buildings in the district which increase inventory stack size.

I’m aware I can alter the starting limits, but I don’t want to do that. I’d rather it be something expensive to upgrade.

Initially I wanted to put this in the camping house, as an upgrade, but I couldn’t see an obvious way to hook this particular thing to a building upgrade in the main town. So instead, I thought about the district, some of which add things to heroes when they’re built.

I’ve added a district building and some art, I can build the thing, but now I’m struggling to make it do what I want.

From what I’ve gleaned, I can add lines to this file

\DarkestDungeon\inventory\base.inventory.extra_stack_limits.darkest

There’s already an entry that looks like this:
extra_stack_limit: .id antiquarian_gold .item_type gold .item_id "" .amount 750

And in the antiquarian file there’s this:
extra_stack_limit: .id antiquarian_gold

So, the antiquarian has this value/flag set in her character file. Fine, makes sense.

What I’m now trying to do is enable the district building (or camping upgrade, whatever) to set this value somehow. This is my district building

            "name": "torch_stack_increase",
            "render_data": {
                "sprite_paths": [
                    "fx/town_district_illuminators_guild/town_district_illuminators_guild.sprite.skel",
                    "fx/purchase_district/purchase_district.sprite.skel"
                ],
                "not_built_animation": "idle",
                "built_animation": "built",
                "purchased_animation": "purchased",
                "town_priority": 10000
            },
            "currency_cost": [
                { "type": "gold", "amount": 150 },
                { "type": "portrait", "amount": 1 }
            ],
            "buff_list": [
                {
				  "type": "DistrictSupplyBuffData",
                  "name": "extra_stack_limit",
				  "id": "torch_stack"
                }
            ]

Hopefully you can see what I’m trying in buff_list, but it’s not doing much. Can anyone help out please? I’m still trying to wrap my head around if this is even possible from the config files, or if the buffs are defined elsewhere in the compiled game code.

The Torch Shop


Viewing all articles
Browse latest Browse all 1753

Trending Articles