Update damage.lua

* Fix M.damaged() to check the param dev properly
* Fix M.damage(): DOCKED -> "DOCKED" (Ship.cond status)
* Add M.dcrept()