Monster attacks defined in the `special_attacks` section of an mtype
definition are meant to inherit from `"type": "monster_attack"` entries
with the same id.
This is working, however the cooldown loading was not respecting the
`was_loaded` value, and thus would overwrite each time, making all
`special_attacks` that inherited and did not set a specific cooldown
reset the cooldown to 0.
Make the cooldown value mandatory, meaning that the first definition of
any monster attack must define a cooldown, but anything that inherits
(and thus was_loaded is set to true) will keep that value unless it
specifies a new one.
Also adds a regression test.
* Fix damage instance deserialize
Ensure it resets the damage instance, instead of simply adding what was
read to it.
* Revert "Update archery.json"
This reverts commit 3c04373fde.
This was due to a bug in the loading code, which has now been fixed.
* Add regression test for "ranged_damage" loading
Ensures that "ranged_damage" overwrites on load, instead of extending.
* correct the test name
---------
Co-authored-by: Anton Simakov <67688115+GuardianDll@users.noreply.github.com>