Arg, dass könnte langweilig werden: Jede Item-Art benötigt zwei Variablen: "Anzahl T1" und "Anzahl T2".

Variable[Anzahl T1] = Item*

Bei Wechsel

drop item [all]
add item [Anzahl T1] oder [T2]*

Wenn sie zusammentreffen:

Variable[Anzahl T1] + Variable[Anzahl T2]*
drop item [all]
add item Variable[Anzahl T1]*

* für jede Item-Art