Dog is not a location because too many issues were run into with fog stuff ( #91 )
All locations now have a 'dog_present' property similar to hero_present.
Two new useful functions were added to Location:
getSymbol() basically returns 'd' if dog present, 'x' if hero present, '' if fog. Should be used by any function that is trying to determine what html to write
refreshInnerHTML() if you've made changes to hero/dog_present or fog, instead of updating the html in that code, simply call this to redraw a single Location!
Proud of how it turned out, and a lot of ideas of how to use the dog moving forward :)
We have a basic dog!!! Wooooooooo
Ok so a few notes on important stuff...
getSymbol()
basically returns 'd' if dog present, 'x' if hero present, '' if fog. Should be used by any function that is trying to determine what html to writerefreshInnerHTML()
if you've made changes to hero/dog_present or fog, instead of updating the html in that code, simply call this to redraw a single Location!Proud of how it turned out, and a lot of ideas of how to use the dog moving forward :)
Cheers!