(set: $cash to 10)(set: $income to -3)(set: $envHealth to 100)(set: $history to (array:))You inherited a beautiful but poor country. We don't make much, but we spend a lot on services. People are happy but money is running out. You must prevent us from backruptcy!
[[Begin -> Deforestation]](set: $cardString to new window.YesNoCard({
'description': 'Your country is covered with trees, which makes it hard for farming. Burning down forests is free and it gives you an extra $1 billion in monthly income, aside from free fertilizers. However, the smoke and escaping animals will immediately harm your environment by 15%. Environmentalists warn of long-term impact on climate change, air quality, biodiversity, water quality, and soil quality.',
'nextLinkForYes': 'Mining',
'nextLinkForNo': 'Mining',
'cashChange': 0,
'incomeChange': 1,
'envHealthChange': -15
}).toHarloweString())$cardString(set: $cardString to new window.YesNoCard({
'description': 'You discovered coal in the mountains. Invest $2 billions for an extra $1 billion income each month? Immediate environmental impact is -10 from the digging and the deforestation. Environmentalists warn of long-term impact such as erosion and water pollution.',
'nextLinkForYes': 'Metallurgy',
'nextLinkForNo': 'Metallurgy',
'cashChange': -2,
'incomeChange': 1,
'envHealthChange': -10
}).toHarloweString())$cardString(set: $cardString to new window.YesNoCard({
'description': 'Now that you have metals, you can make physical producs! which are worth A LOT more - $3 billions per month. The initial investment is $5 billions and there are no immediate environmental damages. However, the fumes are bad, and you will start producing waste.',
'nextLinkForYes': 'End',
'nextLinkForNo': 'End',
'cashChange': -5,
'incomeChange': 3,
'envHealthChange': 0
}).toHarloweString())$cardString(set: $cardString to new window.YesNoCard({
'description': 'Now that you have ores, you can make metals too, which are worth another $2 billions per month. This negatively impacts the environment by -10 right now from massive water usage. Your environmentalists also warn of bad fumes, steam, and CO2 emmision, which contribute to global warming.',
'nextLinkForYes': 'Manufacturing',
'nextLinkForNo': 'Manufacturing',
'cashChange': 0,
'incomeChange': 1,
'envHealthChange': -10
}).toHarloweString())$cardString{(if: $deforestation is 1)[
It is monsoon season. As a result of rampant deforestation in your country, landslides and floods caused you $2 billion in losses.
](if: $deforestation is 0)[goto: "Mining"]}(if: $cash > 0 and $envHealth > 0)[(set: $cardString to new window.SingleLinkCard({
'linkTest': 'Epilogue'
'description': 'You survived! It wasn\'t easy to make tradeoffs between the environment and the economy.',
'nextLink': 'Epilogue'
}).toHarloweString())]
(if: $cash <= 0 and $envHealth <= 0)[(set: $cardString to new window.SingleLinkCard({
'description': 'You lost! It's not very easy',
'nextLink': 'Epilogue'
}).toHarloweString())]
$cardStringThank you for playing!
License:
BSD-3
Copyright 2017
Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met:
1. Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer.
2. Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution.
3. Neither the name of the copyright holder nor the names of its contributors may be used to endorse or promote products derived from this software without specific prior written permission.
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.