a
    ÆiÚ	  ã                   @   sF   d Z ddlZddlmZmZ ddd„Zddd	„Zdd
d„Zg d¢ZdS )z¾
School Test and Exam Events
Standardized tests and exam preparation (ages 15-18)

Events:
- actTest: ACT test preparation
- actTestTake: Taking the ACT test
- satTest: SAT test preparation
é    N)ÚmessageFunctionÚquestionFunctionÚmessagec                 C   sœ   ddl m} d}| jjdkoR| jdkoR| jjdkoR| jjdk oR|| jvoRd| jjv }d	}|rŽ| jj 	|| jd
ddgd| jj
 t dd¡d¡ t||| |ƒS )zACT test preparationr   ©Ú	schedulerÚactTestÚ12thé	   é   é   ÚschoolzXYour guidance counselor reminds you of the upcoming ACT test. It's time to get studying!úStudying for ACTú
twice-weekÚeveningÚhomeé   é2   ©ÚlocationÚduration)Ú	functionsr   ÚcÚ	educationZmonthOfYearÚageYearsÚeventsr   Ú	schedulesÚappendÚidÚrandomÚrandintr   ©ÚplayerÚtyper   ÚfnameÚcheckr   © r%   ú7/var/www/lichun.app/lichun/ws/events/education/tests.pyr      s    D2r   Fc           	      C   sž   d}ddl m} | jj o$|| jdƒ}dg}|dkrL|rLd}t||| ||ƒS |dkršd}t ¡ d	krzd
}t dd¡| j_nd}t dd¡| j_| j |¡ dS )zTaking the ACT testÚactTestTaker   )ÚscheduleCompleter   z!I've done all the studying I can.ÚanswerzToday is your ACT test!Ú g      à?zYou did well!r   é$   zYou did not do well.é
   r   N)	r   r(   r   ZactScorer   r   r   ÚmessageQueuer   )	r!   r"   r   ÚresponseÚdilemmar#   r(   r$   ÚanswerOptionsr%   r%   r&   r'      s    r'   c                 C   sœ   ddl m} d}| jjdkoR| jdkoR| jjdkoR| jjdk oR|| jvoRd| jjv }d	}|rŽ| jj 	|| jd
ddgd| jj
 t dd¡d¡ t||| |ƒS )zSAT test preparationr   r   ÚsatTestr   é   é   r   r   zXYour guidance counselor reminds you of the upcoming SAT test. It's time to get studying!zStudying for SATr   r   r   r   r   r   )r   r   r   r   Z	dayOfYearr   r   r   r   r   r   r   r   r   r    r%   r%   r&   r1   /   s    D2r1   )r   r'   r1   )r   )r   FFF)r   )	Ú__doc__r   Zevents.baser   r   r   r'   r1   Ú__all__r%   r%   r%   r&   Ú<module>   s   



