# We don't want to discard rare weapons or armors even if they aren't
# ego.
!worthless weapons:blade of chaos
-weapons:blade of chaos
weapons:falcon sword
weapons:poison needle
shields:mirror shield#%all!k
armors:elven
armors:black clothes
+# Shovels are never useful after the very beginning of the game.
+?:[AND [GEQ $MONEY 1000] [NOT [EQU $CLASS Weaponsmith]]]
+!dwarven pick
+!mattock
+!orcish pick
+!shovel
+?:
+
# Discard boring weapons and armors depending on the player level.
# TODO: Move the Weaponsmith to the class-specific file.
?:[AND [GEQ $LEVEL 10] [NOT [EQU $CLASS Weaponsmith]]]
!average armors
?:[AND [GEQ $LEVEL 25] [NOT [EQU $CLASS Weaponsmith]]]
+!average weapons:blade of chaos
!good weapons
!good armors
?:[AND [GEQ $LEVEL 30] [NOT [EQU $CLASS Weaponsmith]]]
+!good weapons:blade of chaos
# We don't need "Sword of Slay Human" but we may need "Sword of
# Slaying".
~ego weapons:of slaying
!ego weapons:slay
+# Armors of Olog-Hai are almost useless, because all they have is a
+# single element resistance. The same goes for Dwarven.
+!ego armors:of Dwarven
+!ego armors:of Olog-Hai
?:1
# Unidentified weapons are potentially useful. Pick them all.
unidentified weapons
unidentified armors
+# Pick known bad-ego items. They may not be worth using but
+# potentially are.
+ego:of demon
+ego:(demonic)
+
#===============================================================
# Potions
#===============================================================
!worthless:ring
# Pick useful ones.
+identified:ring of chaos resistance#%all
identified:ring of nether resistance#%all
identified:ring of speed#!k!s!d
ring of extra#!k