def diserang(self, lawan, attackPower_lawan):
print(self.name + " Diserang " + lawan.name)
attack_diterima = attackPower_lawan / self.armorNumber
print("Serangan terasa :", str(attack_diterima))
self.health -= attack_diterima
print("Darah " + self.name + " tersisa " + str(self.health))
# TODO make hero attack and armor status up by 30% if the health reach by 50%
def statusUp(self, attUp, armUp):
if self.health <= 50 :
attUp += 30
armUp += 30
else:
raise Exception("Darah Anda Masih Normal")
i want to call the "statusUp" inside the "diserang", can anyone help me and explain it to me? im new at programming, thanks!
attUp&armUpare used in your code?