a
    i=                     @   sT   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	g dZ
dS )a.  
Educational Extracurricular Activities
College and extracurricular activities (ages 13+)

Events:
- extracurricular: High school extracurricular activities
- collegeExtracurricular: Continuing activities in college
- chooseMajor: Choosing a college major
- chooseCollege: Choosing a college to attend
    N)messageFunctionquestionFunctionanswerOptionmessageFc                 C   s   d}|| j vo4| jjdko4| jjdk o4dt d k}d}|dkrr| j}g }|D ]}||j qPt||| ||S |dkr|d d	krd
dlm	}	m
}
 | j}|	|d|d i}| jj| | jj|
|j|j| j dS )z&High school extracurricular activitiesextracurricular         i@B z6What extra curricular activity would you like to join?answeroptionNoner   )
find_whereActivityRecordtitleN)askedQuestionscageYearsrandomZextraCurricularsappendr   r   	functionsr   r   
activitiesZactivityRecordsidtypedate)playerr   r   responsefnamecheckZextracurricularsanswerOptionsr   r   r    r   </var/www/lichun.app/lichun/ws/events/education/activities.pyr      s     2r   c                 C   s   d}|| j voDt| jjdkoDd| jjv oD| jjdkoDdt d k}|rn|dkrnd}d	d
g}t||| ||S |dkr|d d	krg | j_| j jd8  _| j	
d dS )z Continuing activities in collegecollegeExtracurricularr   collegestudentr	   d   r
   zFWould you like to continue your extracurricular activities in college?YesNor   
   z9You have decided to quit your extracurricular activities.N)r   lenr   r   	education
occupationr   r   	happinessmessageQueuer   )r   r   r   r   r   r   r   r   r   r    r!   %   s    Br!   c                 C   s   d}| j jo4|| jvo4t| j dd o4dt d k}d}|dkr|rg }| jD ]}|t|jt	|j
 qP|td t||| ||S |dkr|d	 dkr| jD ]0}|j
|d	 kr|| j _| jd
|j   qqdS )zChoosing a college majorchooseMajormajorFr	   r$   z\Your guidance counselor reminds you that college is coming! What would you like to major in?r
   r   datazYou have chosen to major in N)r   actScorer   getattrr   Zmajorsr   r   r   strr   r   r.   r,   )r   r   r   r   r   r   r   r.   r   r   r    r-   4   s     2

r-   c           
      C   sD  d}| j jo4|| jvo4t| j dd o4dt d k}d}|dkr|rg }| jD ]@}|t|jd t	|j
 d	 t	|j d
 |j |jd qP|td t||| ||S |dkr
|d dkr@ddlm} | j j|dd|d  | jddtdd|d id n6|dkr@ddlm}	 |	| jd|i| j _| jd dS )zChoosing a college to attendchooseColleger"   Fr	   r$   zpYour guidance counselor reminds you that it's time to start applying to colleges. Where would you like to apply?r
   z GPA: z ACT: z<br> )r/   r   r   r   )oneTimeEventzCollege AcceptancezYou have been accepted to r/   ZdaysFromNow   )completeFr   )r   r   r   ZdateTypeZdateModifierZcompletionFuncZcompletionArgsZcompletionKwargsr6   )r   r   zYou were accepted!N)r   r0   r   r1   r   Zcollegesr   r   r   r2   ZGPA_reqZACT_reqdescriptionr   r   r4   ZoneTimeEventsr   r3   r   r"   r,   )
r   r   r   r   r   r   r   r"   r4   r   r   r   r    r3   I   s8    2
>



r3   )r   r!   r-   r3   )r   FF)r   FF)r   FF)r   FF)__doc__r   Zevents.baser   r   r   r   r!   r-   r3   __all__r   r   r   r    <module>   s   



#