Content Patcher

Content Patcher

378k Downloads

[Chests Anywhere] add options to restrict chest access

Pathoschild opened this issue ยท 2 comments

commented

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.

commented

Discussed in the forums.

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.

  1. Run the game with the mod installed at least once.
  2. Open the config.json file in a text editor.
  3. Find this section:
    "EnableFromLocations": "*",
    "DisableFromLocations": "",
    "Range": "Unlimited"
  4. 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.
commented

Done in develop for the upcoming Chests Anywhere 1.12. The final design adds one option:

option usage
Range Which chests are available for remote access. This can be one of Unlimited, CurrentWorldArea, CurrentLocation, or Disabled.