Spielerando

Decide what happens to gear when a strength potion wears off

A heavy hammer needs more strength than the hero has, so the hero drinks a potion, equips it, and the potion wears off. Some games throw the hammer into a full bag, some keep it giving full power, and some let two rings hold each other up. This entry picks one answer that cannot be abused.

Why this works

What an item gives should follow what the hero is right now. Building up from nothing and asking each piece what it needs means help that wears off is withdrawn as it should be, and pieces cannot prop each other up out of thin air.

When not to use it

Don't tie gear to temporary boosts in a game with simple, readable rules for new players, where an item suddenly turning grey is confusing. Use a plain level requirement checked once when you equip, and say so clearly.

In the full entry

  • What to build, step by step
  • Starting values and the reason for each
  • 4 common mistakes and the fix
  • A diagram of every state
  • 22 lines of example code with 3 checks that pass
  • How your AI shows you that it works

Say this to your AI

Use the Spielerando entry "Decide what happens to gear when a strength potion wears off" (read_entry gear-needs-strength-that-a-potion-lends-for-a-while) in my game. Build it step by step, and show me how you checked that it works.

Or skip this and connect the MCP: your AI then finds all of this by itself.Connect the MCP