diff options
author | login000 <34250284+login000@users.noreply.github.com> | 2020-04-23 12:32:43 +1000 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-04-23 12:32:43 +1000 |
commit | 609fb0c6cb9ebe410741d0d6d7d7f9424ea1fa78 (patch) | |
tree | 2fd15e4e1ed8b2554f0c8331751e2435a1b5b4cf | |
parent | 5a4d60c9e58e4a86cefe02b15d4a146ce543e22f (diff) | |
download | tcoin-609fb0c6cb9ebe410741d0d6d7d7f9424ea1fa78.tar.gz |
Fixed a mistake in tcoin --help
Brought to my attention by ~mastergeek on tilde.team, the tcoin help incorrectly said that the number of tildecoins a user started with was 1000. It was actually the current base amount (unaltered by other sources like minercoin, tildebot or daily-adventure). Now, the help shows the right amount of starting coins.
-rw-r--r-- | tcoin.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/tcoin.cpp b/tcoin.cpp index 6ee1990..d160e95 100644 --- a/tcoin.cpp +++ b/tcoin.cpp @@ -1490,11 +1490,11 @@ int send(const char* sender_username, const char* receiver_username, const long return final_return_value; } -void help() +void long long int base_amount) { std::cout << "\n - tildecoin (also called tcoin) is tilde.town's very own digital (non-crypto) currency."; std::cout << "\n - to participate in tilde.town's internal economy by creating your own tcoin account, run `tcoin init`."; - std::cout << "\n - all users get 1000 coins to start, and can send and receive coins from other users (and programs)."; + std::cout << "\n - all users get " << base_amount << " coins to start, and can send and receive coins from other users (and programs)."; std::cout << "\n - more information about tildecoin is available at \"https://tilde.town/~login/tcoin.html\".\n"; std::cout << "\n`tcoin`: check your balance and the 10 latest lines of messages"; std::cout << "\n`tcoin on`: log on to tildecoin"; @@ -1639,7 +1639,7 @@ int main(int argc, char *argv[]) if(argc > 1 && (!strcmp(argv[1], "--help") || !strcmp(argv[1], "help") || !strcmp(argv[1], "-h"))) { - help(); + help(unaltered_base_amount); return 0; } if(argc > 1 && !strcmp(argv[1], "init")) |