/----Rules-----/---------------------------------------------------------\
|shield        |<rule name="boots" type="destroy">                       |
|bow           |    <and>                                                |
|hrd armour    |        <tval>30</tval>                                  |
|axes          |        <or>                                             |
|helms         |            <and>                                        |
|soft arm      |                <level min="0" max="50"></level>         |
|bolts         |                <or>                                     |
|boots         |                    <status>very bad</status>            |
|gloves        |                    <status>bad</status>                 |
|polearms      |                </or>                                    |
|cloak         |            </and>                                       |
|swords        |            <and>                                        |
|hafteds       |                <level min="15" max="50"></level>        |
|arrows        |                <status>average</status>                 |
|shot          |            </and>                                       |
|boomerang     |            <and>                                        |
|torch         |                <level min="25" max="50"></level>        |
|rod tips      |                <status>good</status>                    |
|potions       |            </and>                                       |
|rings         |            <and>                                        |
|wands         |                <level min="45" max="50"></level>        |
|mushrooms     |                <status>very good</status>               |
|scrolls       |                <state>identified</state>                |
|amulets       |                <not>                                    |
|parchments    |                    <contain>speed</contain>             |
|shape pot     |                </not>                                   |
|staves        |            </and>                                       |
|spikes        |        </or>                                            |
|books         |    </and>                                               |
|runes         |</rule>                                                  |
|dead stuff    |                                                         |
|essences      \---------------------------------------------------------/
|firestones    | up/down to scroll, tab to switch to the rule window      
|food          | u/d to move rules, new rule, rename rule, save rules     
\--------------/ k to disable the automatizer