original_docstring: 
          Whenever the ship takes a select amount of damage
          
docstring: Whenever the ship takes a select amount of damage
docstring_tokens: Whenever the ship takes a select amount of damage
code: def take_damage(self, damage: Damage):
          """
          Whenever the ship takes a select amount of damage
          """
          if self._shield > 0:
              self._shield = max(0, self._shield - damage.amount)
          else:
              self._hull = max(0, self._hull - damage.amount)
code_tokens: def take_damage ( self , damage : Damage ) : if self . _shield > 0 : self . _shield = max ( 0 , self . _shield - damage . amount ) else : self . _hull = max ( 0 , self . _hull - damage . amount )
short_docstring: Whenever the ship takes a select amount of damage
short_docstring_tokens: Whenever the ship takes a select amount of damage
comment: """
          Whenever the ship takes a select amount of damage
          """