Cataclysm-DDA icon indicating copy to clipboard operation
Cataclysm-DDA copied to clipboard

Monsters attacks do not inherit cooldowns; are used in alphabetical order

Open Terrorforge opened this issue 6 months ago • 20 comments

Describe the bug

I was messing around with the zombie breaker (mon_zombie_concentration_ender) from MoM for #75649 when I discovered something weird; even if I completely remove the cooldown on zombie_anti_concentration_spell, if I'm in melee it will only cast the spell very rarely, something like once every few minutes, maybe as often as every 30 seconds. Instead it just tries to grab, over and over and over. Rearranging the list of special attacks didn't help, so it's not a matter of it just preferrentially using the first special attack in its entry. The only way I could get it to consistently cast the spell was to remove the grab entirely.

This severely hampers our ability to create zombies that do anything unique and interesting.

Attach save file

N/A

Steps to reproduce

  1. Mess about with zombie breaker (and other zombies with special attacks) as described and let it whale on you

Expected behavior

Ideally there would be some way to manually weight a monster's special attacks so that some occur more than others, but failing that they should all occur at a more or less equal rate.

Screenshots

image Spell with no cooldown, grab removed. It casts the spell over and over, as expected.

image image Spell with no cooldown, grab present. It only uses the spell every few minutes, maybe as often as once every 30 seconds. I even moved the grab to the end of list of special attacks just to see if it was prioritizing the first listed special attack, but nope. If it was just picking a random attack that's off cooldown, this should be 50/50 grabs and spells, right?

Versions and configuration

  • OS: Windows
    • OS Version: 10.0.19045.4651 (22H2)
  • Game Version: b8dba37 [64-bit]
  • Graphics Version: Tiles
  • Game Language: English [en]
  • Mods loaded: [ Dark Days Ahead [dda], Disable NPC Needs [no_npc_food], Portal Storms Ignore NPCs [personal_portal_storms], Slowdown Fungal Growth [no_fungal_growth], Mind Over Matter [mindovermatter], Bionic Slots [cbm_slots], Stats Through Kills [stats_through_kills] ]

Additional context

No response

Terrorforge avatar Aug 14 '24 09:08 Terrorforge