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
g d¢ZdS )a  
Adolescent Social Events
Romance, friendships, and social development (ages 10-18)

Events:
- firstCrush: First romantic crush
- firstKiss: First kiss
- dating_choice: Choosing someone to ask out
- romanticDate: Going on a romantic date
- newFriend: Making a new friend at school
é    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r,|r,dd	lm}m} g }|| ƒ}	|	r¨| td
|	j	d  d |	j
 d t|	jƒ d |	j |	jƒ¡ tƒ }
tdƒD ]d}|| ƒ}	|	j|
vrºqÐqº|
 |	j¡ | td
|	j	d  d |	j
 d t|	jƒ d |	j |	jƒ¡ q¶t||| ||ƒS |dkr˜|d | j_ddlm} || |d ƒ}|j| jjkrvd| j_nd| j_ddlm} || dddƒ dS )zFirst romantic crushÚ
firstCrushé
   é   é   éd   z1You have a crush on someone at school, who is it?Úanswerr   )Úget_random_classmateÚget_random_friendúYour ú, z, a z
 year old é   Údata©Ú
get_personZ
homosexualZheterosexual©Úupdate_relationshipZCrushN)ÚaskedQuestionsÚcÚageYearsÚrandomÚ	functionsr   r   Úappendr   ÚrelationshipsÚ	firstnameÚstrÚsexÚidÚsetÚrangeÚaddr   r   r   ZsexualOrientationÚappr   )ÚplayerÚtyper   ÚresponseÚfnameÚcheckr   r   ÚanswerOptionsÚoptionZ	added_idsÚir   Zcrushr   © r-   ú:/var/www/lichun.app/lichun/ws/events/adolescence/social.pyr      s4    2>
@

r   c                 C   sÄ   d}|| j vo(| jjdko(dt ¡ d k}d}tdƒtdƒtdd	d
g}|dkr`t||| ||ƒ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
First kissÚ	firstKissr   r	   éè  z8Someone leans in for a kiss, how do you want to respond?zLean inz,Slowly back away while their eyes are closedzLet them down easyé   )ÚdiamondCostr   r+   r   zˆYour heart starts to beat fast and you can feel them inching closer. You squeeze your eyes shut and your lips touch. That wasn't so bad!zÃTheir eyes flutter open and you quickly lean to the left and dodge their puckering lips coming closer to you. Phew! Seems like you dodged a bullet. You leave them standing there feeling dejected.é   zÆYou tell them you appreciate their gesture but you do not feel the same way and wish them best of luck in their endeavors. They respond positively and the two of you carry on as if nothing happened.N©r   r   r   r   r   r   ÚmessageQueuer   ©r%   r&   r   r'   r(   r)   r*   r-   r-   r.   r/   2   s    &r/   c                 C   s¸  d}ddl m} || jvoZ| jj oZtt|| jddiƒƒƒdkoZ| jjdkoZdt	 	¡ d k}d	}|d
kr2|r2t|| jddiƒƒ}g }|D ]l}	t
| jj|	j ƒdkrŒ|	jd rŒ|	jdkrŒ|	j| jjkrŒ| td|	jd  d |	j d |	j |	jƒ¡ qŒt|ƒdkrt||| ||ƒS | j |¡ | j d¡ n‚|d
kr´ddl m}
 |
| |d ƒ}|jd }t	 	¡ |k r¨|d | j_ddlm} || dddƒ | j |jd ¡ n| j d¡ dS )zChoosing someone to ask outÚdating_choicer   )Úfind_where_testZaffinity__gté2   r   r	   r
   zWho would you like to ask out?r   r1   r   r   ú z$No one likes you enough to date you!r   r   r   ZPartnerz
 said yes!zThey said no!N)r   r8   r   r   ZrelationshipÚlenÚlistÚrr   r   Úabsr   ZfamilyLevelr   r   r   r   Úlastnamer    r   r#   r5   r   ZaffinityZpartnerr$   r   )r%   r&   r   r'   r(   r8   r)   Úoptionsr*   r+   r   ÚpZaffinityRatior   r-   r-   r.   r7   C   s0    L82

r7   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dg}|dkrvt||| ||ƒ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Going on a romantic dateÚromanticDateé   é   r	   r
   zPLove is in the air! Its your turn to pick date night. What would you like to do?z-Have a candlelit dinner at a fancy restaurantr9   )Ú	moneyCostz Go for a scenic walk in the parkr   )Ú
energyCostz3Watch a movie under the stars at a drive-in theateré   r1   )rE   rF   r   r+   r   zUYou had a magical candlelit dinner at a fancy restaurant. It was a night to remember!zuYou enjoyed a long walk in the park, hand in hand, as the sun set. It was beautiful (but you're both a little tired!)r3   zvYou cuddled up in the car, watching a movie under the starry sky at the drive-in theater. It was a perfect date night!Nr4   r6   r-   r-   r.   rB   b   s     2

ýrB   c           
      C   sð   d}| j jdkoB| j jdkoB| j jdkoB| j jdk oBdt ¡ d k}dd	lm} || ƒ}d
|j d |j d }ddg}|dkrt	||| ||ƒS |dkrì|d |d krÒddl
m}	 |	| | j jdƒ} | j d¡ n|  jd8  _| j d¡ dS )zMaking a new friend at schoolÚ	newFriendÚschoolZstudentr   é   r	   r0   r   )r   zYou have met r:   z) at school, would you like to be friends?ÚYesÚNor   r+   )Ú
add_friendÚsimilarzYou have made a new friend!r   zYou have not made a new friend.N)r   ÚlocationZ
occupationr   r   r   r   r   r?   r   r$   rM   r   r5   r   Úsocial)
r%   r&   r   r'   r(   r)   r   Z	classmater*   rM   r-   r-   r.   rH   x   s    @rH   )r   r/   r7   rB   rH   )r   FF)r   FF)r   FF)r   FF)r   FF)Ú__doc__r   Zevents.baser   r   r   r   r/   r7   rB   rH   Ú__all__r-   r-   r-   r.   Ú<module>   s   
!



