Make the Uniform damage pattern show up

But don't let it be deletable
This commit is contained in:
Corollax
2010-11-20 07:08:56 -06:00
parent e433af751d
commit c2f115b310

View File

@@ -40,9 +40,9 @@ class DmgPatternEditorDlg (wx.Dialog):
cDP = service.DamagePattern.getInstance()
self.choices = cDP.getDamagePatternList()
# Remove "Uniform" and "Selected Ammo" Damage Patterns
# Remove "Selected Ammo" Damage Patterns
for dp in self.choices:
if dp.name in ("Uniform", "Selected Ammo"):
if dp.name is "Selected Ammo":
self.choices.remove(dp)
# Sort the remaining list and continue on
self.choices.sort(key=lambda p: p.name)