Dungeon Dilettante
Posts: 3
Joined: Friday, 20th April 2018, 17:04
Lehudib's Crystal Rapier
+4 Lehudib's Crystal Rapier.
Vorpal brand
+5 INT
MR-
Inflicts additional damage based on your intelligence.
And how it actually works:
- Code:
static void _CRYSTAL_RAPIER_melee_effects(item_def* weapon, actor* attacker,
actor* defender, bool mondied, int dam)
{
if (!one_chance_in(3) && !mondied && dam)
{
if (attacker->is_player())
{
defender->hurt(attacker, random2avg((you.intel() / 2), 1));
}
else
{
if (mons_intel(*attacker) == I_HUMAN)
{
defender->hurt(attacker, random2avg(10, 1);
}
}
}
}
- For this message the author Mesonyx has received thanks:
- PseudoLoneWolf