a
    Æ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
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 )%aò  
School Life Events
Daily school events, interactions, and situations (ages 6-18)

Events:
- likeSchool: Reaction to starting kindergarten
- dropBooks: Helping someone who dropped their books
- fieldTrip: Field trip destination choice
- vendingMachine: Vending machine mishap
- schoolAssembly: School assembly volunteer
- schoolFight: School fight situation
- schoolLunch: Lunch choice
- forgotCombo: Forgot locker combination
- latetoSchool: Running late for school
- tiredinClass: Tired in class
é    N)ÚmessageFunctionÚquestionFunctionÚanswerOptionÚmessageFc                 C   s    d}|| j vo@| jjdko@| jjdko@| jjdk o@dt ¡ d k}d}dd	g}|d
krft||| ||ƒS |d
krœ|d dkrŒ| j jd7  _n| j jd8  _dS )z!Reaction to starting kindergartenÚ
likeSchoolÚstudenté   é   é   éè  z.You have started Kindergarten, do you like it?ÚYesÚNoÚanswerÚoptioné
   N)ÚaskedQuestionsÚcÚ
occupationÚageYearsÚrandomr   Ú	happiness©ÚplayerÚtyper   ÚresponseÚfnameÚcheckÚanswerOptions© r   ú=/var/www/lichun.app/lichun/ws/events/education/school_life.pyr      s    >r   c                 C   s<  d}|| j vo(d| jjv o(dt ¡ d k}d}tdddtd	ƒtd
ƒtdddg}|dkrjt||| ||ƒS |dkr8|d |d kr¢| j d¡ | j jd7  _n–|d |d krÀ| j d¡ nx|d |d krü| j d¡ |  j	d8  _	| j jd7  _n<|d |d kr8| j d¡ |  j	d7  _	| j jd7  _dS )z'Helping someone who dropped their booksÚ	dropBooksÚschoolr
   r   zKYou're walking down a busy hall at school and see someone drop their books.z&Stop and help them pick up their booksé   ©Ú
energyCostzKeep walkingzStop and laugh - what a loser!z0Grab a few books and offer to walk them to class©ÚdiamondCostr   r   r   z‹They give you a quick nod of appreciation, say thanks, and hurry off to class. You stop for a second and smile - it feels good to help out!r   zwYou made it to class on time and spend the first few minutes of class wondering if that student made it on time as wellé   z‰Tears form in the student's eyes and they scramble to pick up their books. You smile to yourself, happy you're not a loser like they are.é   é   zîThe student looks visibly surprised and happy to receive your help. They say a quiet 'thank you' once you get to their classroom and you both go on your way. You think you hear the student whispering to their friends about your good deed.N)
r   r   Úlocationr   r   r   ÚmessageQueueÚappendr   Úsocialr   r   r   r   r    %   s(    &$
r    c                 C   s  d}|| j vo4| jjdko4| jjdko4dt ¡ d k}d}tddd	td
dd	tddd	g}|dkrtt||| ||ƒS |dkr|d |d kr¬| j d¡ | j jd7  _nh|d |d krè| j d¡ |  j	d7  _	| j jd7  _n,|d |d kr| j d¡ |  j	d7  _	dS )zField trip destination choiceÚ	fieldTripr	   é   r
   éd   zYour school has handed you a form for the next field trip - it looks like you're able to vote for where to go! What looks best?zVisit the local zoor(   ©Ú	moneyCostzExplore the science museumé   z$Take a trip to a historical landmarkr   r   r   r   zJYou had a great time at the zoo and learned a lot about different animals!zdThe science museum was fascinating! You got to perform fun experiments and see interactive exhibits.r"   r'   zˆYou spent some time at an old war memorial. It was a little sad, but you found it interesting to see the rich history of where you live.N)
r   r   r   r   r   r   r+   r,   r   r-   r   r   r   r   r.   =   s"    2"
r.   c                 C   s,  d}|| j vo(d| jjv o(dt ¡ d k}d}tdƒtdddtd	d
dtdddg}|dkrnt||| ||ƒS |dkr(|d |d kr¤| j d¡ |  jd
8  _n„|d |d krÐ| j d¡ |  jd
7  _nX|d |d krü| j d¡ |  jd7  _n,|d |d kr(| j d¡ |  jd
7  _dS )zVending machine mishapÚvendingMachiner!   r
   r   zœYou walk past someone standing next to a vending machine at school. As you pass, they yell 'Hey - this machine isn't accepting my dollar, can you help out?'z,Point to your headphones and shake your headz)Give them one of your dollar bills to tryr1   z7You only have a 5 dollar bill, but hand it over anywaysr"   z%Walk over and hit the vending machiner   r%   r   r   r   z?You weren't listening to anything, but you got the point acrosszƒThe dollar bill works perfectly.The appreciative student gives you their dollar with a smile, grabs their snack, and heads to classr'   z`To both of your surprise, the machine takes the 5 dollar bill... but it doesn't give any change.z‘You've seen this machine act up before - nothing a quick kick can't fix! Your foot connects with the glass and two bags of chips fall down. Nice.N©	r   r   r*   r   r   r   r+   r,   r-   r   r   r   r   r4   R   s&    &(
r4   c                 C   s¶   d}|| j vo(d| jjv o(dt ¡ d k}d}tdƒtdƒg}|dkrVt||| ||ƒS |dkr²|d	 |d
 krˆ| j d¡ |  jd7  _|d	 |d kr²| j d¡ |  jd8  _dS )zSchool assembly volunteerÚschoolAssemblyr!   r
   r   zmAll students are called for an impromptu assembly. Once you take your seat, the speaker asks for a volunteer.zRaise your handz8Shrink smaller into your seat, hoping he doesn't see your   r   r   zvYou smile as the speaker points directly at you. As you stand up, you feel all eyes on you... and its a great feeling.r   z_You let out a giant sigh of relief as the speaker picks an enthusiasic student across the room.Nr5   r   r   r   r   r6   j   s    &r6   c                 C   s  d}|| j vo@d| jjv o@| jjdko@| jjdko@dt ¡ d k}d}tdd	d
tddd
tdddg}|dkr€t||| ||ƒS |dkr|d |d kr¸| j d¡ | j j	d8  _	nJ|d |d krÖ| j d¡ n,|d |d kr| j d¡ |  j
d7  _
dS )zSchool fight situationÚschoolFightr!   é   é   r
   r0   zQTensions are high, and a fight is about to break out at school. What will you do?z'Intervene and try to break up the fightr3   r#   z9Stay out of it and find a teacher to handle the situationr"   z(Join in and fight alongside your friendsr   r%   r   r   r   zVYou courageously step in to break up the fight and promptly get punched in the face...zTYou run the other way in search of a teacher. Some things just aren't worth the riskr'   z¨Fists are flying, but you've got your friends' back. Once the dust settles you see a crowd of teachers around - you know you're in trouble, but it was totally worth it.N)r   r   r*   r   r   r   r   r+   r,   r   r-   r   r   r   r   r7   {   s$    >


ý
r7   c                 C   sú   d}|| j vo2| jdko2d| jjv o2dt ¡ d k}d}tddd	td
ddtdddtdƒg}|dkrxt||| ||ƒS |dkrö|d |d krž| j d¡ nX|d |d kr¼| j d¡ n:|d |d krÚ| j d¡ n|d |d krö| j d¡ dS )zLunch choiceÚschoolLunchr/   r!   r
   r0   zYour stomach growls - when's lunch? Thankfully, the bell rings and you make your way to the cafeteria. What are you eating today?z Grab a slice of pizza and a sodar   r1   z,Choose a healthy salad and a bottle of waterr%   z6Go to your locker and grab your packed lunch from homer"   r#   zGrab someone else's lunchr   r   r   zgThe pizza was amazing, but you spend the next few hours regretting leaving all the grease on the slice.z3It might be more expensive, but its worth the cost!r'   zNAs you finish your sandwich, you reach into the bag and find a cookie - score!r)   z®You eye the cafeteria looking for a student sitting alone. You spot a lanky kid at the end of a long table, walk over, and grab the lunch. Everything is better when its free!N)	r   Ú	hourOfDayr   r*   r   r   r   r+   r,   r   r   r   r   r:   ’   s&    0


ür:   c                 C   s  d}|| j vo@d| jjv o@| jjdko@| jjdko@dt ¡ d k}d}tdd	d
tddd
tdddtdd	d
g}|dkrŠt||| ||ƒS |dkr|d |d kr²| j d¡ nZ|d |d krÐ| j d¡ n<|d |d krî| j d¡ n|d |d kr| j d¡ dS )zForgot locker combinationÚforgotCombor!   é   r3   r
   r0   z‹You walk over to your locker and enter your combo. 25-44-... what was the last number? You start to panic, did you forget your combination?z.Ask a friend if they remember your combinationr"   r#   z*Head to the school office to get some helpr   zBrute force your combinationr%   zStart kicking your lockerr   r   r   zXLuckily, your friend remembers your locker combination. ...wait, how did they know that?znIt took a while, but the school office was able to track down a maintenance person to get you into your lockerr'   zcAfter about 30 tries you made it into your locker. Good thing you remembered the first two numbers!r)   z°You loudly kick the locker for a few minutes, doing nothing more than adding a few dents. Eventually a teacher angrily storms into the hall and brings you to the school office.N)	r   r   r*   r   r   r   r   r+   r,   r   r   r   r   r<   ª   s&    >



ü
r<   c                 C   sª   d}|| j vo(d| jjv o(dt ¡ d k}d}tdƒtddd	td
ddg}|dkrdt||| ||ƒS |dkr¦|d |d krŠ| j d¡ n|d |d kr¦| j d¡ dS )zRunning late for schoolÚlatetoSchoolÚhomer
   r   zLYou woke up late and now you're running behind for school. What will you do?zArrive late and get a tardyz"Hurry to school as fast as you canr(   r#   zSkip school for the dayr   r%   r   r   r   zmYou hop out of bed and rush to get to school - you were a little late and forgot your lunch, but you made it!z“You hop out of bed and rush to get to school... but stop halfway and realize that you're probably this tired for a reason. Some rest would be good!N©r   r   r*   r   r   r   r+   r,   r   r   r   r   r>   Â   s    &

ýr>   c                 C   sÌ   d}|| j vo(d| jjv o(dt ¡ d k}d}tdddtd	d
dtdd
dg}|dkrht||| ||ƒS |dkrÈ|d |d krŽ| j d¡ n:|d |d kr¬| j d¡ n|d |d krÈ| j d¡ dS )zTired in classÚtiredinClassr!   r
   r   zcYou had a late night last night and now you're struggling to stay awake in class. What will you do?z6Try as hard as you can to stay awake and pay attentionr   r#   z/Ask the teacher if you can head to the bathroomr"   r%   z4Take a quick nap and hope the teacher doesn't noticer   r   r   zŠThrough the power of sheer determination you manage to stay awake for the rest of class. Honestly, you're pretty impresssed with yourself!zªYou asked the teacher if you can head to the bathroom. After getting permission, you head out into the hallway and grab a soda from the vending machine. This should work!r'   zbThe teacher immediately notices you sleeping. At least now you'll be able to sleep in detention...Nr@   r   r   r   r   rA   Õ   s     &


ýrA   )
r   r    r.   r4   r6   r7   r:   r<   r>   rA   )r   FF)r   FF)r   FF)r   FF)r   FF)r   FF)r   FF)r   FF)r   FF)r   FF)Ú__doc__r   Zevents.baser   r   r   r   r    r.   r4   r6   r7   r:   r<   r>   rA   Ú__all__r   r   r   r   Ú<module>   s   









