[Chests Anywhere] add options to restrict chest access
Pathoschild opened this issue ยท 2 comments
Some players may want the added convenience of accessing and organising chests, but without making it easy to cheat (e.g. dumping inventory in the middle of the mines). Add an option to only show chests in the current location.
Approach A
Maybe have three options:
option | usage |
---|---|
EnableFromLocations |
Locations from which the player can access chests remotely (or "*" for any). |
DisableFromLocations |
Locations from which the player can't access chests remotely (supercedes enabled locations). |
Range |
Which chests are available for remote access. This can be any combination of Unlimited , CurrentZone (location + buildings), CurrentLocation , Disabled , or a location name. |
That might be a bit complicated for most players, but I could add instructions like this to the mod page:
Too cheaty? How to enable balanced mode
By default, you can access any chest from anywhere. Here's how to edit that.
- Run the game with the mod installed at least once.
- Open the
config.json
file in a text editor.- Find this section:
"EnableFromLocations": "*", "DisableFromLocations": "", "Range": "Unlimited"- Change it to one of these:
- Access chests in the current zone, except in the mines:
"EnableFromLocations": "*", "DisableFromLocations": "Mines", "Range": "CurrentZone"- Disabled:
"EnableFromLocations": "*", "DisableFromLocations": "", "Range": "Disabled"
Approach B
Maybe players don't need that much flexibility:
option | usage |
---|---|
EnableInMines |
Whether the player can access chests remotely from the mines. |
Range |
Which chests are available for remote access. This can be any combination of Unlimited , CurrentZone (location + buildings), CurrentLocation , Disabled , or a location name. |