From 614f3acc7edaa6ca3beeaf5428ea7606510d165d Mon Sep 17 00:00:00 2001 From: DarkPhoenix Date: Wed, 17 Apr 2019 23:59:50 +0300 Subject: [PATCH] Do not show civilian ammo for small lasers --- gui/builtinContextMenus/moduleAmmoChange.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/gui/builtinContextMenus/moduleAmmoChange.py b/gui/builtinContextMenus/moduleAmmoChange.py index 2b75fccd5..2d485b426 100644 --- a/gui/builtinContextMenus/moduleAmmoChange.py +++ b/gui/builtinContextMenus/moduleAmmoChange.py @@ -144,6 +144,8 @@ class ChangeModuleAmmo(ContextMenu): sub = None self.charges.sort(key=self.turretSorter) for charge in self.charges: + if "civilian" in charge.name.lower(): + continue currBase = charge.name.rsplit()[-2:] currRange = charge.getAttribute("weaponRangeMultiplier") if nameBase is None or range_ != currRange or nameBase != currBase: