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g d¢ZdS )"a!  
Early Childhood Events
Emotional and social development events for young children (ages 2-7)

Events:
- firstDayOfPreschool: Emotional reaction to first day of preschool/daycare (ages 3-4, questionEvent)
- imaginaryFriend: Creating an imaginary friend (ages 3-5, questionEvent)
- firstNightmare: Waking up from a scary dream (ages 3-6, messageEvent)
- petGoldfish: Getting a first pet goldfish (ages 4-7, questionEvent)
- scaredOfDark: Fear of the dark at bedtime (ages 4-6, questionEvent)
- firstTimeTyingShoes: Learning to tie shoelaces (ages 5-7, messageEvent)
- sandboxDisagreement: Conflict over toys in sandbox/playground (ages 3-5, questionEvent)
- pickySomeEater: Going through a picky eating phase (ages 2-4, messageEvent)
- firstHaircut: Reaction to first haircut (ages 2-4, questionEvent)
é    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}g d¢}|dkrZt||| ||ƒS |dkrú|d	 |d
 kr | j jd8  _| j jd8  _| j d¡ nZ|d	 |d krÞ| j jd7  _| j j	d7  _	| j d¡ n| j jd8  _| j d¡ dS )z?Emotional reaction to first day of preschool/daycare (ages 3-4)ÚfirstDayOfPreschoolé   é   é   éô  zMIt's your first day of preschool! How do you feel about leaving your parents?)zCry and cling to parentzWave goodbye excitedly!zHide behind parent's legÚanswerÚoptionr   é   zPYou cried and didn't want your parents to leave, but eventually you calmed down.z1You were excited to make new friends and explore!zBYou were shy at first, but soon warmed up to your new environment.N)
ÚaskedQuestionsÚcÚageYearsÚrandomr   Ú	happinessÚenergyÚmessageQueueÚappendÚsocial©ÚplayerÚtyper   ÚresponseÚfnameÚcheckÚanswerOptions© r   úA/var/www/lichun.app/lichun/ws/events/childhood/early_childhood.pyr      s"    2r   c                 C   s   d}|| j vo4| jjdko4| jjdko4dt ¡ d k}d}g d¢}|dkrZt||| ||ƒS |dkr|d	 |d
 kr’| j jd7  _| j d¡ nŠ|d	 |d krÐ| j jd7  _| j jd7  _| j d¡ nL|d	 |d kr | j jd7  _| j d¡ n| j jd8  _| j d¡ dS )z'Creating an imaginary friend (ages 3-5)ÚimaginaryFriendr   r   r	   r
   z6You've created an imaginary friend! What's their name?)zMr. WhiskersZRainbowZShadowzI don't need imaginary friendsr   r   r   é
   zDMr. Whiskers becomes your constant companion in all your adventures!z>Rainbow is your colorful friend who makes everything more fun!é   z4Shadow follows you everywhere and keeps you company!z-You prefer to play with real friends instead.N)	r   r   r   r   r   r   r   r   r   r   r   r   r   r    0   s&    2
r    c                 C   sH   d}|| j vo4| jjdko4| jjdko4dt ¡ d k}d}t||| |ƒS )z'Waking up from a scary dream (ages 3-6)ÚfirstNightmarer   é   r	   r
   zmYou woke up crying from a bad dream. Your parents comfort you and leave a nightlight on. You feel safe again.©Úeventsr   r   r   r   ©r   r   r   r   r   r   r   r   r#   N   s    2r#   c                 C   s  d}|| j vo4| jjdko4| jjdko4dt ¡ d k}d}ddtd	d
ddg}|dkrft||| ||ƒS |dkr|d |d krž| j jd7  _| j d¡ nz|d |d krÌ| j jd7  _| j d¡ nL|d |d j	krü| j jd7  _| j d¡ n| j jd7  _| j d¡ dS )z'Getting a first pet goldfish (ages 4-7)ÚpetGoldfishr   é   r	   r
   z5Your parents got you a goldfish! What do you name it?ZBubblesZNemozSir Swimsalotr   ©ÚdiamondCostZGoldier   r   r   r!   z(Bubbles swims happily in their new home!z8Just like the movie! You love watching Nemo swim around.r"   é   z=Sir Swimsalot is the most distinguished fish in all the land!z=Goldie becomes your first pet and you take good care of them!N)
r   r   r   r   r   r   r   r   r   r   r   r   r   r   r(   V   s,    2
ü
r(   c                 C   s  d}|| j vo4| jjdko4| jjdko4dt ¡ d k}d}ddtd	d
ddg}|dkrft||| ||ƒS |dkr|d |d kr®| j jd7  _| j jd7  _| j 	d¡ nj|d |d krÜ| j jd
7  _| j 	d¡ n<|d |d j
krü| j 	d¡ n| j jd7  _| j 	d¡ dS )z&Fear of the dark at bedtime (ages 4-6)ÚscaredOfDarkr   r$   r	   r
   z5You're scared of the dark. What helps you feel brave?zAsk for a nightlightzSleep with stuffed animalzCheck under the bedr!   ©Ú
energyCostzCall for parentr   r   r   r   zMThe soft glow of the nightlight makes you feel safe and you sleep peacefully.zPYour favorite stuffed animal keeps you company and protects you from bad dreams!r"   zKYou bravely check under the bed. Nothing there! You feel proud of yourself.zMYour parent reassures you that everything is okay and you drift off to sleep.N)r   r   r   r   r   r   r   r   r   r   r   r   r   r   r   r-   s   s,    2
ü
r-   c                 C   sH   d}|| j vo4| jjdko4| jjdko4dt ¡ d k}d}t||| |ƒS )z$Learning to tie shoelaces (ages 5-7)ÚfirstTimeTyingShoesr   r)   r	   r
   zSAfter many attempts, you finally tied your shoes by yourself! You feel so grown up.r%   r'   r   r   r   r0      s    2r0   c                 C   s<  d}|| j vo4| jjdko4| jjdko4dt ¡ d k}d}ddd	td
ddg}|dkrft||| ||ƒS |dkr8|d |d kr®| j jd8  _| j jd7  _| j 	d¡ nŠ|d |d krÜ| j jd7  _| j 	d¡ n\|d |d kr| j jd8  _| j jd7  _| j 	d¡ n| j jd7  _| j 	d¡ dS )z3Conflict over toys in sandbox/playground (ages 3-5)ÚsandboxDisagreementr   r   r	   r
   z@Another kid grabs the toy you were playing with. What do you do?zGrab it back!zTell a grown-upzFind a different toyzSuggest taking turnsr*   r   r   r   zHYou grabbed it back! The other kid starts crying and you get in trouble.z2The grown-up helps you both learn to share nicely.r"   zGYou're disappointed, but you find another fun toy to play with instead.r,   z?You both take turns! Great job sharing and making a new friend!N)
r   r   r   r   r   r   r   r   r   r   r   r   r   r   r1   ˜   s0    2
ü
r1   c                 C   sH   d}|| j vo4| jjdko4| jjdko4dt ¡ d k}d}t||| |ƒS )z-Going through a picky eating phase (ages 2-4)ÚpickySomeEaterr"   r   r	   r
   zqYou refuse to eat anything except chicken nuggets and mac & cheese. Your parents sigh and hope it's just a phase.r%   r'   r   r   r   r2   ·   s    2r2   c                 C   sø   d}|| j vo4| jjdko4| jjdko4dt ¡ d k}d}ddtd	d
dg}|dkrdt||| ||ƒS |dkrô|d |d krª| j jd8  _| j jd
8  _| j 	d¡ nJ|d |d krØ| j jd7  _| j 	d¡ n| j jd
7  _| j 	d¡ dS )z$Reaction to first haircut (ages 2-4)ÚfirstHaircutr"   r   r	   r
   z1It's time for your first haircut! How does it go?zCry the whole timezSit very still and bravezCan't stop wigglingr   r.   r   r   r   r!   z<You cried through the whole haircut! At least it's over now.zGYou sat so still! The hairdresser said you were the best customer ever!zWYou couldn't help wiggling around! The haircut is a little uneven but still looks cute.N)
r   r   r   r   r   r   r   r   r   r   r   r   r   r   r3   ¿   s&    2
ýr3   )	r   r    r#   r(   r-   r0   r1   r2   r3   )r   FF)r   FF)r   )r   FF)r   FF)r   )r   FF)r   )r   FF)Ú__doc__r   Zevents.baser   r   r   r   r    r#   r(   r-   r0   r1   r2   r3   Ú__all__r   r   r   r   Ú<module>   s   








