
    D[i                     B    d dl mZ ddlmZ ddlmZmZ  G d de      Zy)	   )Plant   )Bullet   )CELL_WCELL_Hc                   $     e Zd Z fdZd Z xZS )	AcidLemonc                 `    t         |   ||d       d| _        d| _        d| _        d| _        y )N
acid_lemon   g       @}   )super__init__hpmax_hpshoot_intervalcost)selfcolrow	__class__s      [/mnt/c/Users/DipsyHou/Desktop/workspace/PVZOnline/backend/game/objects/plants/acid_lemon.pyr   zAcidLemon.__init__   s1    c<0!	    c           	      b   d}|j                   D ]9  }|j                  | j                  k(  s|j                  | j                  kD  s7d} n |rc| j                  dz   }| j                  dz   }t	        ||| j                  dddd      }d|_        d|_        |j                  j                  |       y y )	NFT(      ih         
acid_juice)	zombiesr   xyr   can_be_attractedcan_be_reflectedbulletsappend)r   
game_state
has_targetzbxbybs          r   shootzAcidLemon.shoot   s    
##Auu QSS466\!
 $
 "B"Br2txxa\BA!%A!%A%%a( r   )__name__
__module____qualname__r   r.   __classcell__)r   s   @r   r
   r
      s    )r   r
   N)baser   bulletr   configr   r   r
    r   r   <module>r7      s      $) )r   