Maylith wrote:I was just referencing the trap name that Lord Dimwit mentioned, in the other thread, for something that apparently trashed his equipment rather nastily. If he or someone else can explain more fully, or tell me the name to change it to, I can adjust the poll if need be.
The trap is called "trap of Speed Drain," and it's my vote for the worst trap in the world. I've hit it twice before, both times very deep in the dungeon, and it made my day considerably worse both times.
Code: Select all
case TRAP_OF_DRAIN_SPEED:
{
object_type *j_ptr;
s16b j, chance = 75;
u32b f1, f2, f3, f4, f5, esp;
for (j = 0; j < INVEN_TOTAL; j++)
{
/* don't bother the overflow slot */
if (j == INVEN_PACK) continue;
if (!inventory[j].k_idx) continue;
j_ptr = &inventory[j];
object_flags(j_ptr, &f1, &f2, &f3, &f4, &f5, &esp);
/* is it a non-artifact speed item? */
if ((!j_ptr->name1) && (f1 & TR1_SPEED))
{
if (randint(100) < chance)
{
j_ptr->pval = j_ptr->pval / 2;
if (j_ptr->pval == 0)
{
j_ptr->pval--;
}
chance /= 2;
ident = TRUE;
}
inven_item_optimize(j);
}
}
if (!ident)
{
msg_print("You feel some things in your pack vibrating.");
}
else
{
combine_pack();
reorder_pack();
msg_print("You suddenly feel you have time for self-reflection.");
/* Recalculate bonuses */
p_ptr->update |= (PU_BONUS);
/* Recalculate mana */
p_ptr->update |= (PU_MANA);
/* Window stuff */
p_ptr->window |= (PW_INVEN | PW_EQUIP | PW_PLAYER);
}
break;
}
What this means is that the trap selects one of your worn items that increases speed (it can increase something else as well, like the Coat of Trone), and reduces the speed increase (as well as the stat/ability increase). It then has a 75% chance of reducing that item's bonus by 1/2. The practical upshot of this is that you wander across this trap and your Boots of Speed (+9) suddenly become Boots of Speed (+4) permanently. Or your lovely randart ring that gives +5 to speed, attacks, constitution, and intelligence suddenly gives +2 to all of those.
Because of this damn thing I always lug around Rods of Disarming or some such...