return null;
}
public List<Item> getWeapons() {
final List<Item> weapons = new ArrayList<Item>();
Item weaponItem = getWeapon();
if (weaponItem != null) {
weapons.add(weaponItem);
// pair weapons
if (weaponItem.getName().startsWith("l hand ")) {
// check if there is a matching right-hand weapon in
// the other hand.
final String rpclass = weaponItem.getItemClass();
weaponItem = getEquippedItemClass("rhand", rpclass);
if ((weaponItem != null)
&& (weaponItem.getName().startsWith("r hand "))) {
weapons.add(weaponItem);
} else {
// You can't use a left-hand weapon without the matching
// right-hand weapon. Hmmm... but why not?
weapons.clear();
}
} else {
// You can't hold a right-hand weapon with your left hand, for
// ergonomic reasons ;)
if (weaponItem.getName().startsWith("r hand ")) {
weapons.clear();
}
}
}