andrewbuck {l Wrote}:The room attacking is now functional. The AttackableObject system ended up working almost exactly as expected and it will be easy to add to traps and doors when I get them added so that creatures will attack any enemy assets that they see (creatures, traps, doors, and rooms). The advantage to the this system is that the combat AI only has to be written once; the same code that makes a creature walk over to and hit another creature is the exact same code block which makes a creature walk over to and hit an enemy room tile. The tiles are destroyed one at a time and each has its own HP value.
Hopefully the creatures will attack other nearby creatures before they attack nearby rooms?
andrewbuck {l Wrote}:The only thing the system does not do yet is there is no concept of a "threat level" posed by the various AttackableObjects. This means that when an enemy army invades your dungeon, some of them will attack your creatures and some will attack your rooms (even though the rooms pose no immediate threat and they should therefore focus on killing your creatures first). This is something I plan to add in the future, I know how I will add it and know that it won't break the existing framework; the only reason I am not adding it now is that it is not a huge problem and although I know what to add it will be fairly tedious to set it up.
-Buck
Ahh ok, good I see you are considering the above then
