Monster attack tokens

How do monster attack tokens in monsters.json (like [“LEAP”, 5]) work with monattack files in the src?

“LEAP” is mapped (hardcoded) to a leap attack function.
5 is the cooldown.

It all happens in monstergenerator.cpp

If you want to add a new attack, you need to add a function for it in monattack.h and .cpp and a mapping in monstergenerator.cpp. That’s all from the code side, rest is just adding it to monsters.