anathema/anathema — Issue #46: Change the damage type of weapon stats
Author: UrsKR
Created: 2012-02-07 12:11:43+00:00
State: open

@the-smith reports
"for weapons, it does not let you choose Bashing or Aggravated damage types, only Lethal."

I get this recursive exception when changing the damage type:

```
at javax.swing.JComboBox.setSelectedItem(Unknown Source)
at net.sf.anathema.lib.gui.widgets.ChangeableJComboBox.setSelectedObject(ChangeableJComboBox.java:44)
at net.sf.anathema.character.equipment.impl.creation.view.WeaponDamageView.setSelectedObject(WeaponDamageView.java:60)
at net.sf.anathema.character.equipment.impl.creation.view.WeaponDamageView.setSelectedObject(WeaponDamageView.java:17)
at net.sf.anathema.character.equipment.creation.presenter.stats.WeaponDamagePresenter.updateHealthTypeInView(WeaponDamagePresenter.java:48)
at net.sf.anathema.character.equipment.creation.presenter.stats.WeaponDamagePresenter.access$000(WeaponDamagePresenter.java:15)
at net.sf.anathema.character.equipment.creation.presenter.stats.WeaponDamagePresenter$1.changeOccured(WeaponDamagePresenter.java:35)
at net.sf.anathema.lib.control.change.ChangeControl.fireChangedEvent(ChangeControl.java:16)
at net.sf.anathema.character.equipment.impl.creation.model.WeaponDamageModel.setHealthType(WeaponDamageModel.java:32)
at net.sf.anathema.character.equipment.creation.presenter.stats.WeaponDamagePresenter$2.valueChanged(WeaponDamagePresenter.java:40)
at net.sf.anathema.character.equipment.creation.presenter.stats.WeaponDamagePresenter$2.valueChanged(WeaponDamagePresenter.java:38)
at net.sf.anathema.lib.control.objectvalue.ObjectValueControl.fireValueChangedEvent(ObjectValueControl.java:21)
at net.sf.anathema.lib.gui.widgets.ChangeableJComboBox$1.itemStateChanged(ChangeableJComboBox.java:34)
at javax.swing.JComboBox.fireItemStateChanged(Unknown Source)
at javax.swing.JComboBox.selectedItemChanged(Unknown Source)
at javax.swing.JComboBox.setSelectedItem(Unknown Source)
at net.sf.anathema.lib.gui.widgets.ChangeableJComboBox.setSelectedObject(ChangeableJComboBox.java:44)
at net.sf.anathema.character.equipment.impl.creation.view.WeaponDamageView.setSelectedObject(WeaponDamageView.java:60)
at net.sf.anathema.character.equipment.impl.creation.view.WeaponDamageView.setSelectedObject(WeaponDamageView.java:17)
at net.sf.anathema.character.equipment.creation.presenter.stats.WeaponDamagePresenter.updateHealthTypeInView(WeaponDamagePresenter.java:48)
at net.sf.anathema.character.equipment.creation.presenter.stats.WeaponDamagePresenter.access$000(WeaponDamagePresenter.java:15)
at net.sf.anathema.character.equipment.creation.presenter.stats.WeaponDamagePresenter$1.changeOccured(WeaponDamagePresenter.java:35)
at net.sf.anathema.lib.control.change.ChangeControl.fireChangedEvent(ChangeControl.java:16)
at net.sf.anathema.character.equipment.impl.creation.model.WeaponDamageModel.setHealthType(WeaponDamageModel.java:32)
at net.sf.anathema.character.equipment.creation.presenter.stats.WeaponDamagePresenter$2.valueChanged(WeaponDamagePresenter.java:40)
at net.sf.anathema.character.equipment.creation.presenter.stats.WeaponDamagePresenter$2.valueChanged(WeaponDamagePresenter.java:38)
at net.sf.anathema.lib.control.objectvalue.ObjectValueControl.fireValueChangedEvent(ObjectValueControl.java:21)
at net.sf.anathema.lib.gui.widgets.ChangeableJComboBox$1.itemStateChanged(ChangeableJComboBox.java:34)
at javax.swing.JComboBox.fireItemStateChanged(Unknown Source)
at javax.swing.JComboBox.selectedItemChanged(Unknown Source)
at javax.swing.JComboBox.setSelectedItem(Unknown Source)
at net.sf.anathema.lib.gui.widgets.ChangeableJComboBox.setSelectedObject(ChangeableJComboBox.java:44)
```