diff options
Diffstat (limited to 'crawl-ref/source/fight.cc')
-rw-r--r-- | crawl-ref/source/fight.cc | 30 |
1 files changed, 30 insertions, 0 deletions
diff --git a/crawl-ref/source/fight.cc b/crawl-ref/source/fight.cc index e7c875ae05..9e8da364e8 100644 --- a/crawl-ref/source/fight.cc +++ b/crawl-ref/source/fight.cc @@ -3106,8 +3106,38 @@ int melee_attack::mons_apply_defender_ac(int damage, int damage_max) return damage; } +static const char *klown_attack[] = +{ + "hit", + "poke", + "prod", + "flog", + "pound", + "slap", + "tickle", + "defenestrate", + "sucker-punch", + "elbow", + "pinch", + "strangle-hug", + "squeeze", + "tease", + "eye-gouge", + "karate-kick", + "headlock", + "wrestle", + "trip-wire", + "kneecap" +}; + std::string melee_attack::mons_attack_verb(const mon_attack_def &attk) { + if (attacker->id() == MONS_KILLER_KLOWN && attk.type == AT_HIT) + { + const int num_attacks = sizeof(klown_attack) / sizeof(klown_attack[0]); + return klown_attack[random2(num_attacks)]; + } + static const char *attack_types[] = { "", |