This commit is contained in:
沈瑗杰 2020-12-21 22:11:49 +08:00
parent 8090dd2fcf
commit 96cf2ba3f1
2 changed files with 10 additions and 1 deletions

View File

@ -15,6 +15,15 @@ def P_C_M(A, B): # stand for Physics Calculation multiple
C = [0.0, 1, [], []] C = [0.0, 1, [], []]
Float = A[0] * B[0] Float = A[0] * B[0]
Int = A[1] + B[1] Int = A[1] + B[1]
if Float >= 10:
Float /= 10
Int += 1
elif Float <= 0.01:
Float *= 10
Int -= 1
else:
Float = float(Float)
Int = int(Int)
Unit1 = A[2].extend(B[2]) Unit1 = A[2].extend(B[2])
Unit2 = [] Unit2 = []
for unit in B[3]: for unit in B[3]:

View File

@ -26,4 +26,4 @@ class Orbit_demo(threading.Thread):
print("ha ?") print("ha ?")
def orbit_math(self): def orbit_math(self):
mass = self.ship_info["mass"] pass