Last active
November 16, 2017 15:43
-
-
Save Skrylar/a123e61419ada6e1ecf4243a186e8f1c to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var cobweb = Cobweb() | |
cobweb.def_root(inflation, float) | |
cobweb.def_root(monies, float) | |
cobweb.def_root(transhumanity, bool) | |
cobweb.def rich, bool: | |
result(monies): | |
monies > 1000000 | |
cobweb.def future_monies, float: | |
result(monies, inflation): | |
monies * inflation | |
do: | |
echo "In the future I will have ", future_monies, " monies." | |
let event_id = cobweb.on(rich, transhumanity) do: | |
self.enabled = rich or transhumanity |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment