From a87c1299926eb86e357da33ea2b36fec0bebe490 Mon Sep 17 00:00:00 2001 From: DragonAura <32223554+DragonAura@users.noreply.github.com> Date: Sat, 27 Apr 2024 18:00:04 +0800 Subject: [PATCH] fix: update logic.py --- CAPI/python/PyAPI/logic.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/CAPI/python/PyAPI/logic.py b/CAPI/python/PyAPI/logic.py index 6c608088..5b1569bc 100644 --- a/CAPI/python/PyAPI/logic.py +++ b/CAPI/python/PyAPI/logic.py @@ -242,13 +242,13 @@ def Construct(self, constructionType: THUAI7.ConstructionType) -> bool: self.__logger.debug("Called Construct") return self.__comm.Construct(constructionType, self.__playerID, self.__teamID) - def InstallModule(self, moduleType: THUAI7.ModuleType) -> bool: + def InstallModule(self, playerID: int, moduleType: THUAI7.ModuleType) -> bool: self.__logger.debug("Called InstallModule") - return self.__comm.InstallModule(moduleType, self.__playerID, self.__teamID) + return self.__comm.InstallModule(moduleType, playerID, self.__teamID) - def Recycle(self) -> bool: + def Recycle(self, playerID: int) -> bool: self.__logger.debug("Called Recycle") - return self.__comm.Recycle(self.__playerID, self.__teamID) + return self.__comm.Recycle(playerID, self.__teamID) def BuildShip(self, shipType: THUAI7.ShipType, birthIndex: int) -> bool: self.__logger.debug("Called BuildShip")