So the “Doors” and other Heroes don’t seem to have “type” properties. I was able to discern doors with a RegEx on the “id” name:
if (enemy.id.match(/Door/)) {}
There does not seem to be a common component for the names of the heroes and trying to check all possible names isn’t working cleanly.
Is there any attribute that only heroes have that we can key off of? Are there any plans to add “type” to Heroes and attackable items?
Thanks!