1
0
mirror of https://github.com/zenorogue/hyperrogue.git synced 2026-02-03 00:10:15 +00:00

irr:: ignore achievements/leaderboards; rewritten the modecode/finalAchievement code a bit

This commit is contained in:
Zeno Rogue
2018-07-17 14:18:41 +02:00
parent 2ca0629a91
commit 9fc4e5524f
4 changed files with 81 additions and 93 deletions

View File

@@ -576,6 +576,15 @@ int readArgs() {
return 0;
}
unsigned char density_code() {
if(sc < 128) return sc;
else {
int t = 127, a = sc;
while(a > 127) a = a * 9/10, t++;
return t;
}
}
bool pseudohept(cell* c) {
return cells[cellindex[c]].is_pseudohept;
}