Add a Fighter component to the Hero
This commit is contained in:
		
							parent
							
								
									ee0e4b1dba
								
							
						
					
					
						commit
						e1562b2b2b
					
				
					 1 changed files with 1 additions and 0 deletions
				
			
		| 
						 | 
				
			
			@ -38,6 +38,7 @@ class Entity:
 | 
			
		|||
class Hero(Entity):
 | 
			
		||||
    def __init__(self, position: Point):
 | 
			
		||||
        super().__init__('@', position=position, fg=tuple(tcod.white))
 | 
			
		||||
        self.fighter = Fighter(maximum_hit_points=30, attack_power=5, defense=2)
 | 
			
		||||
 | 
			
		||||
class Monster(Entity):
 | 
			
		||||
    '''An instance of a Species.'''
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue