Skip to content

Commit fcbd7b1

Browse files
author
geno
committed
Fix formatting
1 parent 826e45b commit fcbd7b1

File tree

2 files changed

+14
-8
lines changed

2 files changed

+14
-8
lines changed

README.md

Lines changed: 9 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -111,12 +111,15 @@ These events can be a mix of users purchasing upgrades for their miners or speci
111111
### Purchasing Upgrades
112112

113113
Now certain upgrades can be purchased while playing! Idlecoin will notify you when something is available for purchase and how much it will cost. You can bundle purchasing many items into 1 command string by entering multiple letters before hitting `enter`. Here are the current upgrades available and their associated purchase commands:
114-
*Boost*
115-
Boost will allow a miner to increase it's Cps 3x faster with the command letter `b`. Boost is purchased in bundles of 128 seconds and costs log(2) of your Miners current Cps value. As your Miner becomes more powerful and generates more Cps, its cost for Boost will increase.
116-
*Miner License*
117-
Purchasing additional Miner Licenses with the command letter `m` will allow your Wallet to connect more concurrent Miners. The price for the Miner Licenses increases for each additional License according to this function: `u64::MAX / (0x100000 >> (max_miners - 5))`. `max_miners` is a per-Wallet value and starts out at `5` and can currently grow to 12 through additional Licenses.
118-
*Time Travel*
119-
Time travel can be purchased via Chronocoins with the command letter `c`. These coins increase monatomically, 1 per second, for every Wallet that has at least 1 Miner currently attached to it. Time travel costs 1000 Chronocoins and will allwo the current Miner to travel forward in time by 1 hour. This time travel will cause the Miner to accumulate all Cps and Idlecoins as if the hour had actually passed.
114+
115+
* *Boost*
116+
> Boost will allow a miner to increase it's Cps 3x faster with the command letter `b`. Boost is purchased in bundles of 128 seconds and costs log(2) of your Miners current Cps value. As your Miner becomes more powerful and generates more Cps, its cost for Boost will increase.
117+
118+
* *Miner License*
119+
> Purchasing additional Miner Licenses with the command letter `m` will allow your Wallet to connect more concurrent Miners. The price for the Miner Licenses increases for each additional License according to this function: `u64::MAX / (0x100000 >> (max_miners - 5))`. `max_miners` is a per-Wallet value and starts out at `5` and can currently grow to 12 through additional Licenses.
120+
121+
* *Time Travel*
122+
> Time travel can be purchased via Chronocoins with the command letter `c`. These coins increase monatomically, 1 per second, for every Wallet that has at least 1 Miner currently attached to it. Time travel costs 1000 Chronocoins and will allwo the current Miner to travel forward in time by 1 hour. This time travel will cause the Miner to accumulate all Cps and Idlecoins as if the hour had actually passed.
120123
121124
Commands can be chained together and will be executed sequentially. For example, entering a command buffer of:
122125
```

src/main.rs

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ const BANNER: &str = "
4848
Source: https://github.com/genonullfree/idlecoin
4949
5050
Please enter your username: ";
51-
const TURDS: [u64;1] = [0x9d75d7d276240c38];
51+
const TURDS: [u64; 1] = [0x9d75d7d276240c38];
5252

5353
#[derive(Debug)]
5454
pub struct Connection {
@@ -226,7 +226,10 @@ fn login(
226226
// Check if incoming connection is a turd
227227
for t in TURDS.iter() {
228228
if *t == wallet_id {
229-
return Err(Error::new(ErrorKind::ConnectionRefused, format!("You're a turd")));
229+
return Err(Error::new(
230+
ErrorKind::ConnectionRefused,
231+
format!("You're a turd"),
232+
));
230233
}
231234
}
232235

0 commit comments

Comments
 (0)