classes.py
def ghit(self, hpm1, hpm2):
 		"""Function to get hit. 'hpm' is the amount of HP taken."""
 		hpm = random.randint(hpm1, hpm2)
 		self.hp -= hpm
 		cprint('\nThe {} has taken {} points of damage! Remaining HP: {}'.format(colored(self.name, attrs=['bold']), colored(str(hpm), 'green', attrs=['bold']), colored(str(self.hp), 'green', attrs=['bold'])))
 		if self.hp <= 0:
 			self.chstate('dead')
Function to get hit. 'hpm' is the amount of HP taken.
Function to get hit. 'hpm' is the amount of HP taken.
Function to get hit . ' hpm ' is the amount of HP taken .
def ghit(self, hpm1, hpm2):
 		hpm = random.randint(hpm1, hpm2)
 		self.hp -= hpm
 		cprint('\nThe {} has taken {} points of damage! Remaining HP: {}'.format(colored(self.name, attrs=['bold']), colored(str(hpm), 'green', attrs=['bold']), colored(str(self.hp), 'green', attrs=['bold'])))
 		if self.hp <= 0:
 			self.chstate('dead')
def ghit ( self , hpm1 , hpm2 ) : hpm = random . randint ( hpm1 , hpm2 ) self . hp -= hpm cprint ( '\nThe {} has taken {} points of damage! Remaining HP: {}' . format ( colored ( self . name , attrs = [ 'bold' ] ) , colored ( str ( hpm ) , 'green' , attrs = [ 'bold' ] ) , colored ( str ( self . hp ) , 'green' , attrs = [ 'bold' ] ) ) ) if self . hp <= 0 : self . chstate ( 'dead' )
Function to get hit.
Function to get hit .
"""Function to get hit. 'hpm' is the amount of HP taken."""
self
hpm1
hpm2