mbkarle / mind-the-fog

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

Move checkLocation if checks to be inherent in Location object #47

Closed akarle closed 7 years ago

akarle commented 7 years ago

Have a property of all Locations called occupied_function or something which basically will do the if statement checkLocation currently does.

akarle commented 7 years ago

Almost entirely fixed on my current branch... it will have a few bugs I'm guessing but basically, there is a new property of all Locations called is_interactive. If it is, then that location must have a method hero_interact which will interact with that location.