(self, callingWindow, fullContext, mainItem, i)
| 31 | return _t("Add {0} to Cargo (x1000)").format(itmContext) |
| 32 | |
| 33 | def activate(self, callingWindow, fullContext, mainItem, i): |
| 34 | fitID = self.mainFrame.getActiveFit() |
| 35 | typeID = int(mainItem.ID) |
| 36 | |
| 37 | if mainItem.marketGroup and mainItem.marketGroup.name == "Scan Probes": |
| 38 | command = cmd.GuiAddCargoCommand(fitID=fitID, itemID=typeID, amount=8) |
| 39 | else: |
| 40 | command = cmd.GuiAddCargoCommand(fitID=fitID, itemID=typeID, amount=1000) |
| 41 | |
| 42 | if self.mainFrame.command.Submit(command): |
| 43 | self.mainFrame.additionsPane.select("Cargo", focus=False) |
| 44 | |
| 45 | |
| 46 | AddToCargoAmmo.register() |
nothing calls this directly
no test coverage detected