Skip to content

Commit c184923

Browse files
author
geno
committed
Update rate of increase
1 parent 5fbfddd commit c184923

File tree

4 files changed

+22
-20
lines changed

4 files changed

+22
-20
lines changed

Cargo.lock

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[package]
22
name = "idlecoin"
3-
version = "0.4.3"
3+
version = "0.4.4"
44
edition = "2021"
55

66
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html

README.md

Lines changed: 12 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -13,12 +13,7 @@ This is an idle game where the point is to open a netcat connection to the serve
1313

1414
The game has evolved to become semi-interactive, as there is now an element of purchasing upgrades to improve the performance of your miners, but this is entirely optional.
1515

16-
## Use
17-
18-
To start, run the `idlecoin` server:
19-
```rust
20-
cargo run --release
21-
```
16+
## Start Client Miner
2217

2318
To join a server, use `netcat` or `telnet` to connect to the server:
2419
```bash
@@ -28,9 +23,16 @@ nc 127.0.0.1 7654
2823
telnet localhost 7654
2924
```
3025

26+
## Start Server
27+
28+
To start, run the `idlecoin` server:
29+
```rust
30+
cargo run --release
31+
```
32+
3133
The stats are written out to a file `.idlecoin` in the working directory of the server upon exit. On start, `idlecoin` will attempt to open `.idlecoin` and ingest the stats file to allow loading of previous stats. The stats file will currently autosave every 5 minutes.
3234

33-
## Output
35+
## Client Output
3436

3537
```
3638
[007] Wallet 0x9d75d7d276240c38 Miner Licenses: 5 Chronocoin: 8850 Randocoin: 208 Coins: 0:24436823427358 Total Cps: 10
@@ -103,9 +105,9 @@ These events are newest on top, and only the most recent 5 are displayed.
103105

104106
These events can be a mix of users purchasing upgrades for their miners or special random events that can happen:
105107

106-
1. Gain 10% CPS -- 0.01% chance
107-
1. Gain 1 Level -- 0.02% chance
108-
1. Lose 1 Level -- 0.01% chance
108+
1. Gain 10% CPS -- 0.001% chance
109+
1. Gain 1 Level -- 0.002% chance
110+
1. Lose 1 Level -- 0.001% chance
109111
1. IRS auditing -- 0.00000006430041152263% chance
110112

111113
### Purchasing Upgrades

src/miner.rs

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -47,8 +47,8 @@ pub fn action_miners(
4747
}
4848
}
4949
drop(wal);
50-
} else if x % 10000 == 0 {
51-
// 0.01 % chance
50+
} else if x % 100000 == 0 {
51+
// 0.001 % chance
5252
let level = c.miner.level;
5353
c.miner.dec_level();
5454
if level != c.miner.level {
@@ -63,8 +63,8 @@ pub fn action_miners(
6363
),
6464
);
6565
}
66-
} else if x % 10000 <= 2 {
67-
// 0.02 % chance
66+
} else if x % 100000 <= 2 {
67+
// 0.002 % chance
6868
let level = c.miner.level;
6969
c.miner.inc_level();
7070
if level != c.miner.level {
@@ -79,8 +79,8 @@ pub fn action_miners(
7979
),
8080
);
8181
};
82-
} else if x % 10000 <= 3 {
83-
// .01 % chance
82+
} else if x % 100000 <= 3 {
83+
// .001 % chance
8484
c.miner.cps += c.miner.cps.saturating_div(10);
8585
msg.insert(
8686
0,
@@ -168,9 +168,9 @@ pub fn miner_session(mut miner: &mut Miner) {
168168
// Increment cps
169169
miner.inc = if miner.boost > 0 {
170170
miner.boost -= 1;
171-
miner.inc.saturating_add(miner.level * 3)
171+
miner.inc.saturating_add(miner.level * miner.level * 3)
172172
} else {
173-
miner.inc.saturating_add(miner.level)
173+
miner.inc.saturating_add(miner.level * miner.level)
174174
};
175175
miner.cps = miner.cps.saturating_add(miner.inc);
176176
}

0 commit comments

Comments
 (0)