{% extends "floodgame/Page.html" %} {% load staticfiles otree_tags %} {% block title %} {% include 'snippets/Title.html' %} {% endblock %} {% block content %} {% include 'snippets/Progressbar.html' %} {% include 'snippets/Earningsbar.html' %}


{% include 'snippets/Riskblock.html' %}
Each year the flood risk is {{risk}} percent
{% include 'snippets/Damageblock.html' %} {% include 'snippets/Insuranceblock.html' %}
{% if mitigation_cost_this_scenario > mitigation_cost0 %}
{% elif mitigation_cost_this_scenario == mitigation_cost0 %}

{% if player.has_discount %} premium is
{{premium_discounted0}} / year

{% endif %} {% if player.has_insurance %} no investment now: accept
damage of {{Constants.damage}}

you pay {{reduced_deductible0}}
deductible if flooded {% else %} no investment now: accept
damage of {{Constants.damage}} {% endif %}

{% else%}
{% if player.has_discount %} premium is
{{premium_discounted0}} / year

{% endif %} {% if player.has_insurance %} no investment now: accept
damage of {{Constants.damage}}

you pay {{reduced_deductible0}}
deductible if flooded {% else %}

no investment now: accept
damage of {{Constants.damage}} {% endif %}
{%endif%} {%if not player.has_insurance %} {% if mitigation_cost_this_scenario > mitigation_cost1 %}
{% elif mitigation_cost_this_scenario == mitigation_cost1 %}

damage is reduced to
{{reduced_damage1}}

{%else%}

damage is reduced to
{{reduced_damage1}}

{%endif%} {% if mitigation_cost_this_scenario > mitigation_cost2 %}
{% elif mitigation_cost_this_scenario == mitigation_cost2 %}

damage is reduced to
{{reduced_damage2}}

{%else%}

damage is reduced to
{{reduced_damage2}}

{%endif%} {% if mitigation_cost_this_scenario > mitigation_cost3 %}
{% elif mitigation_cost_this_scenario == mitigation_cost3 %}

damage is reduced to
{{reduced_damage3}}

{%else%}

damage is reduced to
{{reduced_damage3}}

{%endif%} {% if mitigation_cost_this_scenario > mitigation_cost4 %}
{% elif mitigation_cost_this_scenario == mitigation_cost4 %}

damage is reduced to
{{reduced_damage4}}

{%else%}

reduce damage to
{{reduced_damage4}}

{%endif%} {% else %} {% if mitigation_cost_this_scenario > mitigation_cost1 %}
{% elif mitigation_cost_this_scenario == mitigation_cost1 %}

{% if player.has_discount and player.has_loan and loan == 0 %} your loan is repaid

premium is lowered to
{{premium_discounted1}} / year

{% elif player.has_discount and player.has_loan %} pay {{installment1}} / year
until loan is repaid

premium is lowered too
{{premium_discounted1}} / year

{% elif player.has_discount %} premium is lowered to
{{premium_discounted1}} / year

{% elif player.has_loan and loan > 0%} pay {{installment1}} / year
until loan is repaid

{% endif %}damage is reduced to
{{reduced_damage1}}

you pay {{reduced_deductible1}}
deductible if flooded

{%else%}

{% if player.has_discount and player.has_loan %} pay {{installment1}} / year
until loan is repaid
lower premium to
{{premium_discounted1}} / year

{% elif player.has_discount %} lower premium to
{{premium_discounted1}} / year

{% elif player.has_loan%} pay {{installment1}} / year
until loan is repaid

{% endif %}reduce damage to
{{reduced_damage1}}

you pay {{reduced_deductible1}}
deductible if flooded

{%endif%} {% if mitigation_cost_this_scenario > mitigation_cost2 %}
{% elif mitigation_cost_this_scenario == mitigation_cost2 %}

{% if player.has_discount and player.has_loan and loan == 0 %} your loan is repaid

premium is lowered to
{{premium_discounted2}} / year

{% elif player.has_discount and player.has_loan %} pay {{installment2}} / year
until loan is repaid

premium is lowered to
{{premium_discounted2}} / year

{% elif player.has_discount %} premium is lowered to
{{premium_discounted2}} / year

{% elif player.has_loan %} pay {{installment2}} / year
until loan is repaid

{% endif %}damage is reduced to
{{reduced_damage2}}

you pay {{reduced_deductible2}}
deductible if flooded

{% else%}

{% if player.has_discount and player.has_loan %} pay {{installment2}} / year
until loan is repaid

lower premium to
{{premium_discounted2}} / year

{% elif player.has_discount %} lower premium to
{{premium_discounted2}} / year

{% elif player.has_loan %} pay {{installment2}} / year
until loan is repaid

{% endif %}reduce damage to
{{reduced_damage2}}

you pay {{reduced_deductible2}}
deductible if flooded

{% endif %} {% if mitigation_cost_this_scenario > mitigation_cost3 %}
{% elif mitigation_cost_this_scenario == mitigation_cost3 %}

{% if player.has_discount and player.has_loan and loan == 0 %} your loan is repaid

premium is lowered to
{{premium_discounted3}} / year

{% elif player.has_discount and player.has_loan %} pay {{installment3}} / year
until loan is repaid

premium is lowered to
{{premium_discounted3}} / year

{% elif player.has_discount %} premium is lowered to
{{premium_discounted3}} / year

{% elif player.has_loan %} pay {{installment3}} / year
until loan is repaid

{% endif %}damage is reduced to
{{reduced_damage3}}

you pay {{reduced_deductible3}}
deductible if flooded

{% else%}

{% if player.has_discount and player.has_loan %} pay {{installment3}} / year
until loan is repaid

lower premium to
{{premium_discounted3}} / year

{% elif player.has_discount %} lower premium to
{{premium_discounted3}} / year

{% elif player.has_loan %} pay {{installment3}} / year
until loan is repaid

{% endif %}reduce damage to
{{reduced_damage3}}

you pay {{reduced_deductible3}}
deductible if flooded

{% endif %} {% if mitigation_cost_this_scenario == mitigation_cost4 %}

{% if player.has_discount and player.has_loan and loan == 0 %} your loan is repaid

premium is lowered to
{{premium_discounted4}} / year

{% elif player.has_discount and player.has_loan %} pay {{installment4}} / year
until loan is repaid

premium is lowered to
{{premium_discounted4}} / year

{% elif player.has_discount %} premium is lowered to
{{premium_discounted4}} / year

{% elif player.has_loan %} pay {{installment4}} / year
until loan is repaid

{% endif %}damage is reduced to
{{reduced_damage4}}

you pay {{reduced_deductible4}}
deductible if flooded

{%else%}

{% if player.has_discount and player.has_loan %} pay {{installment4}} / year
until loan is repaid

lower premium to
{{premium_discounted4}} / year

{% elif player.has_discount %} lower premium to
{{premium_discounted4}} / year

{% elif player.has_loan %} pay {{installment4}} / year
until loan is repaid

{% endif %}reduce damage to
{{reduced_damage4}}

you pay {{reduced_deductible4}}
deductible if flooded

{% endif %}{%endif%}
{% include 'snippets/InstructionsCounter.html' %} {% endblock %}