a
    Žió  ã                   @   sV   d Z ddlZddl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;  
Career Setback Events
Negative career and workplace events

Events:
- passedOverPromotion: Missed deserved promotion
- workplaceBullying: Coworker making work life miserable
- projectFailure: Major project fails spectacularly
- badPerformanceReview: Harsh performance review
- businessFailure: Business is failing
é    N)ÚmessageFunctionÚmessagec                 C   s’   d}|| j voN| jjdkoN| jjdkoN| jjdkoNt| jddƒoNdt ¡ d k}d	}|r„| j  |¡ | j jd8  _| j jd
7  _t	||| |ƒS )z5Someone less qualified got the promotion you deservedÚpassedOverPromotioné   éA   ÚworkÚjobFé   éè  zYSomeone less qualified got the promotion you deserved. You're frustrated and demoralized.é   ©
ÚeventsÚcÚageYearsÚ
occupationÚgetattrÚrandomÚaddÚ	happinessÚstressr   ©ÚplayerÚtypeÚfnameÚcheckr   © r   ú7/var/www/lichun.app/lichun/ws/events/negative/career.pyr      s$    

ÿ
þ
ýüûr   c                 C   s¢   d}|| j voN| jjdkoN| jjdkoN| jjdkoNt| jddƒoNdt ¡ d k}d	}|r”| j  |¡ | j jd
8  _| j jd7  _| j j	d8  _	t
||| |ƒS )z3A coworker has been making your work life miserableÚworkplaceBullyingé   r   r   r   Fr	   r
   zHA coworker has been making your work life miserable. You dread going in.é   é#   r   )r   r   r   r   r   r   r   r   r   Úenergyr   r   r   r   r   r   %   s&    

ÿ
þ
ýüûr   c                 C   s’   d}|| j voN| jjdkoN| jjdkoN| jjdkoNt| jddƒoNdt ¡ d k}d	}|r„| j  |¡ | j jd
8  _| j jd7  _t	||| |ƒS )z,A major project you led failed spectacularlyÚprojectFailureé   r   r   r   Fr	   r
   zNA major project you led failed spectacularly. Your reputation has taken a hit.r   r   r   r   r   r   r   r"   9   s$    

ÿ
þ
ýüûr"   c                 C   s’   d}|| j voN| jjdkoN| jjdkoN| jjdkoNt| jddƒoNdt ¡ d k}d	}|r„| j  |¡ | j jd
8  _| j jd7  _t	||| |ƒS )z!Your performance review was harshÚbadPerformanceReviewr#   r   r   r   Fr	   r
   zJYour performance review was harsh. Your boss listed all your shortcomings.r   é-   r   r   r   r   r   r$   M   s$    

ÿ
þ
ýüûr$   c                 C   sÐ   d}|| j voB| jjdkoB| jjdkoBt| jddƒoBdt ¡ d k}d}|r¾| j  |¡ | jjdkrv| j jd8  _nd	| j_| j jd
7  _| j jd8  _| j jd7  _| j j	d8  _	t
||| |dd�S )zYour business is failingÚbusinessFailurer   r   ZownesBusinessFr	   iˆ  z:Your business is failing. You might have to close it down.r   r   é(   é2   r   )Ú	moneyCost)r   r   r   r   r   r   Úmoneyr   r   r!   r   r   r   r   r   r&   `   s*    

ÿ
þýür&   )r   r   r"   r$   r&   )r   )r   )r   )r   )r   )
Ú__doc__r   Zevents.baser   r   r   r"   r$   r&   Ú__all__r   r   r   r   Ú<module>   s   




