Syndaryl / DFRPGRandomDungeonGenerator

A HTML/CSS/JavaScript based random dungeon generator for GURPS. Eventual goals are to not only produce a map, but also populate the rooms with descriptions and challenges. Game statistics will be for the DFRPG / GURPS 4e.
Other
35 stars 13 forks source link

Better logic for saving dungeon configuration in localStorage #49

Closed natfarleydev closed 6 years ago

natfarleydev commented 6 years ago

I wasn't overly happy with the logic I used in #47 (a function calling a function which called...) as it was not obvious when the configuration was saved.

This PR makes it so that the configuration is saved any time any part of the configuration changes (rather than triggering on a new_dungeon() call)