mbkarle / mind-the-fog

Roguelike JavaScript game--mind the fog!
2 stars 1 forks source link

Split up Location into multiple files #121

Closed akarle closed 6 years ago

akarle commented 6 years ago

I think it's time for Location to be split up into multiple files, as part of the code restructure. There are some seriously complicated locations ("merchant") that simply should be their own file.

akarle commented 6 years ago

I'll try to document the changes in the wiki (someday?) but it boils down to:

Split into:

  1. Location (base)
  2. Chest
  3. Noniteractive (tile, empty tile, wall..)
  4. CustomCombat (anything that causes a combat)
  5. ChanceLocs (anything that has some chance to affect hero)
  6. Merchant
  7. Doors (anything that changes map)
  8. NPC (any npc specific locations (pit, NPC, CharDialogue).