Commit 7c3160f7 by BellCodeEditor

auto save

parent a2179eac
Showing with 6 additions and 7 deletions
class HO: class HO:
...@@ -7,16 +7,15 @@ class HO: ...@@ -7,16 +7,15 @@ class HO:
self.LV=self.LV+LVup self.LV=self.LV+LVup
self.ATT=self.ATT+ATTup self.ATT=self.ATT+ATTup
self.HP=self.HP+HPup self.HP=self.HP+HPup
def printIT(bodyaa,hmm): def printIT(self,bodyaa):
print("hmm-LV:"+str(bodyaa.LV)+"\nhmm-ATT:"+str(bodyaa.ATT)+"\nhmm-HP:"+str(bodyaa.HP)+"\n"*2) print(self.bodyaa+"-LV:"+str(bodyaa.LV)+"\n"+self.bodyaa+"-ATT:"+str(bodyaa.ATT)+"\n"+self.bodyaa+"-HP:"+str(bodyaa.HP)+"\n"*2)
a=HO('a',233,114,3) a=HO('a',233,114,3)
B=HO('B',1919,810,22) B=HO('B',1919,810,22)
a.upgrade(2,90,180) a.upgrade(2,90,180)
#print("a-LV:"+str(a.LV)+"\na-ATT:"+str(a.ATT)+"\na-HP:"+str(a.HP)+"\n"*2) #print("a-LV:"+str(a.LV)+"\na-ATT:"+str(a.ATT)+"\na-HP:"+str(a.HP)+"\n"*2)
#print("B-LV:"+str(B.LV)+"\nB-ATT:"+str(B.ATT)+"\nB-HP:"+str(B.HP)+"\n"*2) #print("B-LV:"+str(B.LV)+"\nB-ATT:"+str(B.ATT)+"\nB-HP:"+str(B.HP)+"\n"*2)
printIT(a,'a') a.printIT('a')
printIT(B,'B') b.printIT('B')
\ No newline at end of file \ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment