a
    a3i                     @   s^   d Z ddlZddlmZmZmZ dddZdddZdd
dZdddZ	dddZ
g dZdS )a2  
Childhood Activity Events
Learning activities for young children (ages 2-12)

Events:
- learnedBike: Learning to ride a bike
- learnedSwim: Learning to swim
- childhoodActivity: General childhood activity selection
- learnInstrument: Learning a musical instrument
- playDate: Play date with another child
    N)messageFunctionquestionFunctionanswerOptionmessagec                 C   s   ddl m} d}| jjdkoL| jjdk oL|| jvoLd| jjv oLdt d k}d	}|r| jj|| jd
ddgd| jj	 t
ddd t||| |S )Nr   	schedulerlearnedBikei    home     z?Your parents have decided to start teaching you to ride a bike.zLearning to ride bikedailyevening   
   locationZduration	functionsr   cageDayseventsr   randomZ	schedulesappendidrandintr   playertyper   fnamecheckr    r!   </var/www/lichun.app/lichun/ws/events/childhood/activities.pyr      s    >2r   c                 C   s   ddl m} d}| jjdkoL| jjdk oL|| jvoLd| jjv oLdt d k}d	}|r| jj|| jd
ddgd| jj	 t
ddd t||| |S )Nr   r   learnedSwimr	   i  r
   r   r   z5Your parents have signed you up for swimming lessons!zLearning to swimr   r   r   r   r   r   r   r!   r!   r"   r#      s    >2r#   Fc           	      C   s   d}do8|| j vo8| jjdko8| jjdk o8dt d k}d}|dkr^g d	}t||| ||S |dkr|d
 dkrG dd d}||}d
g|_| jj| dS )zZGeneral childhood activity selection - disabled until extracurricular buildout is completechildhoodActivityF      r   r   zNYour parents want you to take on a new activity, what would you like to learn?answer)zLearn InstrumentzDance ClasszSports TeamNoneoptionr(   c                   @   s   e Zd Zdd ZdS )z*childhoodActivity.<locals>.extracurricularc                 S   s   d| _ || _d| _d S Nextracurricularr   r   titleZenergyModifierselfr-   r!   r!   r"   __init__0   s    z3childhoodActivity.<locals>.extracurricular.__init__N__name__
__module____qualname__r0   r!   r!   r!   r"   r+   /   s   r+   N)askedQuestionsr   ageYearsr   r   r-   
activitiesr   	r   r   r   responser   r    answerOptionsr+   choicer!   r!   r"   r$   %   s    6r$   c           	      C   s   d}doRd| j voRd| j v oRt| jjdkoR| jjdkoR| jjdk oRdt d k}d	}|d
krxg d}t||| ||S |d
kr|d dkrG dd d}||}| jj| dS )zPLearn a musical instrument - disabled until extracurricular buildout is completelearnInstrumentFr$   r   r      r   r   z(What instrument would you like to learn?r'   )ZPianoZGuitarZViolinZDrumsr(   r)   r(   c                   @   s   e Zd Zdd ZdS )z(learnInstrument.<locals>.extracurricularc                 S   s   d| _ || _d| _d S r*   r,   r.   r!   r!   r"   r0   D   s    z1learnInstrument.<locals>.extracurricular.__init__Nr1   r!   r!   r!   r"   r+   C   s   r+   N)r5   lenr   r7   r6   r   r   r   r8   r!   r!   r"   r<   9   s    Pr<   c              	   C   s  d}d}dt ddddg}|| jvoJ| jjdkoJ| jjd	k oJd
t d k}|dkrnt||| ||| jgddS |dkr|d |d krddlm} || | jjd} | j	
d |d |d
 krddlm} || | jjd} |  jd7  _| j	
d n|  jd8  _| j	
d dS )zPlay date with another childplayDatezPYour parents have arranged a play date for you with another kid, how does it go?zIt goes wellz!You can't wait to hang out again!   )diamondCostzYou and them do not get along.   r%   r   d   r'   zBhttps://images.unsplash.com/photo-1578328819058-b69f3a3b0f6b?w=800)
charactersimager)   r   )
add_friendZsimilarzYou have made a new friend!r   zYou love making friends!zYour playdate did not go wellN)r   r5   r   r6   r   r   ZapprF   ZsexZmessageQueuer   Zsocial)r   r   r   r9   r   r:   r    rF   r!   r!   r"   r?   L   s4    2	
r?   )r   r#   r$   r<   r?   )r   )r   )r   FF)r   FF)r   FF)__doc__r   Zevents.baser   r   r   r   r#   r$   r<   r?   __all__r!   r!   r!   r"   <module>   s   






 