How strange. the "wormride" link is handled in GenericRequest. It creates the Staff of Ed (if it can), saves an outfit checkpoint, equips the hooks, uses the drum machine, restores the outfit checkpoint, and visits the pyramid - which will activate the Staff of Ed, if you had one, and otherwise just report what you see. There is no "adventuring" involved, so I really don't understand why "moods" or "buffing" would kick in.
Ahhh... using a drum machine is expected to lead to an encounter, although it will not do so in this case. We do recovery for item usage if using the item will take a turn - i.e., will lead to a fight. UseItemRequest says that using a drum machine takes 1 turn - unless you have worm riding hooks equipped, in which case, it takes 0 turns. That should eliminate the mood execution.
I'm stumped. FWIW, here's what my session log looked like today when I got the hooks and hit the "wormride" link.
[727] Desert (Ultrahydrated)
Encounter: The Sleeper Has Awakened
You acquire an item: worm-riding hooks
Combine 1 ancient amulet + 1 Eye of Ed
You acquire an item: headpiece of the Staff of Ed
Combine 1 headpiece of the Staff of Ed + 1 Staff of Fats
You acquire an item: Staff of Ed
equip weapon worm-riding hooks
use 1 drum machine
equip weapon 17-alarm Saucepan
equip off-hand pilgrim shield
beach.php?action=woodencity&pwd
What does YOUR session log say?