User Tools

Site Tools


rpd:ankh

Ankh

Ankh Sprite

Description

This ancient symbol of immortality grants an ability to return to life after death. Upon resurrection, all items in the hero's inventory are lost, but one random equipped item is preserved as bones that can be retrieved from the location of death.

Special Properties

  • Provides one-time resurrection after death
  • Upon resurrection, all items in the backpack are lost
  • Equipped items are NOT preserved directly - instead, one random equipped item is left as bones at the death location
  • Single use item
  • Stackable (though only one is useful at a time due to loss upon resurrection)
  • No upgrade potential
  • Always identified
  • Costs 50 gold per unit

Notes

The Ankh is a powerful but risky item - it can save you from death, but at the cost of losing all your inventory. Only one random equipped item will be recoverable as bones from the place where you died.

Strategy

  • Best used as a last resort when facing certain death
  • Try to keep only essential items in your inventory when entering dangerous areas
  • Since only one equipped item is preserved as bones (not all equipped items), consider which item is most valuable to preserve
  • Don't carry multiple Ankhs since you'll lose them upon resurrection (as mentioned in Dungeon_Tips_13 string)

Technical Details

When the hero dies and uses an Ankh for resurrection:

  • Dungeon.gameOver() is called, which deletes the current game save via Dungeon.deleteGame(true)
  • The game state is completely removed, including the hero's inventory
  • Bones.leave(hero) preserves one random equipped item (or gold if no useful equipped item exists)
  • The hero is reborn with full HP but in a fresh game state
  • All inventory items (except the one preserved as bones) are permanently lost

Source Code References

String Resources

rpd/ankh.txt · Last modified: by 127.0.0.1