removed redundant if is_dead() check
|
@ -170,7 +170,6 @@ class Player(pygame.sprite.Sprite):
|
|||
|
||||
1 - 1/(np.exp((self.stats.health -
|
||||
self.stats.stats['health'])/self.stats.stats['health']))
|
||||
if not self.is_dead() > 0 else -1
|
||||
]
|
||||
|
||||
self.state_features = [
|
||||
|
|
Before Width: | Height: | Size: 13 KiB After Width: | Height: | Size: 29 KiB |
Before Width: | Height: | Size: 13 KiB After Width: | Height: | Size: 28 KiB |
Before Width: | Height: | Size: 17 KiB After Width: | Height: | Size: 32 KiB |
Before Width: | Height: | Size: 13 KiB After Width: | Height: | Size: 28 KiB |