STEAM GROUP
Darkest Dungeon - Workshop DD-Workshop
STEAM GROUP
Darkest Dungeon - Workshop DD-Workshop
72
IN-GAME
555
ONLINE
Founded
29 November, 2016
All Discussions > Help & Support > Topic Details
HELP: About modding corridor_return_content. Want to make morevariable.
1) common/DarkestDungeon/shared/rules.json
This is the location of JSON file that manages certain rules in the game.
Keys inside "corridor_return_content": 'ac_battle', 'ac_hunger', 'ac_trap' determines the chance of respawning event: 'battle', 'trap', 'hunger' as you see.

2) There are techniques that creates events for loot ~ enters the room - exits to corridor - check if trap/combat has spawned - reenter the room - exits to corridor - ... ~. This technique takes too much time. Lower the brightness would make the events to spawn more, but still it takes too much time.

3) Modifying the data under the "corridor_return_content" - "ac_battle" will make battles to spawn more. As i do not want to interfere my common run, I want to add another variables. In current file, the only variant is the brightness (which is written "range" at this file). What if i add the variable "reEntered"?

The flow chart is as follows.
0) Enters the Dungeon, set "reEntered" to 0.

1) Enters the room. If steps less than 2 corridor, steps back and enters the same room, then increase "reEntered" by 1.

2) If stepped more and enters the new room, then set "reEntered" to 0

3) If "reEntered" are bigger than 5, set "base_chance" at "corridor_return_content" - "ac_battle" to 0.50

I want to create mod like this, but modifying JSON file seems not the solution.
What files do i need to modify to implement this mechanism? Or Can i add another variable in this JSON file??
All Discussions > Help & Support > Topic Details