{% 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 player.has_discount %} premium is {{premium_discounted0}} {% endif %} no investment now: accept damage of {{Constants.damage}} {% if player.has_insurance %}

you pay {{reduced_deductible0}}
deductible if flooded

{% else %} {% endif %}

{%if not player.has_insurance %}

reduce damage to
{{reduced_damage1}}

reduce damage to
{{reduced_damage2}}

reduce damage to
{{reduced_damage3}}

reduce damage to
{{reduced_damage4}}

{% 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

{% 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

{% 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

{% 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 %} {% include 'snippets/InstructionsCounter.html' %} {% endblock %}