1
0
mirror of https://github.com/zenorogue/hyperrogue.git synced 2025-12-19 12:28:07 +00:00

commited changes from 9.4i and some extra

This commit is contained in:
Zeno Rogue
2017-05-27 21:40:40 +02:00
parent ed9f54deb7
commit 1c99cd647e
23 changed files with 3899 additions and 2710 deletions

View File

@@ -13,7 +13,7 @@ int gamecount;
time_t timerstart, savetime;
bool timerstopped;
int savecount;
bool showoff = false;
bool showoff = false, doCross = false;
// initialize the game
void initgame() {
@@ -116,6 +116,15 @@ void initgame() {
currentmap->verify();
}
if(doCross) {
for(int i=0; i<ittypes; i++) if(itemclass(eItem(i)) == IC_TREASURE) items[i] = 50;
for(int i=0; i<motypes; i++) kills[i] = 30;
items[itSavedPrincess] = 0;
kills[moPrincessMoved] = 0;
kills[moPrincessArmedMoved] = 0;
kills[moPlayer] = 0;
}
if(quotient && generateAll(firstland)) {
for(int i=0; i<size(currentmap->allcells()); i++)
setdist(currentmap->allcells()[i], 8, NULL);
@@ -142,7 +151,7 @@ void initgame() {
yendor::init(3);
multi::revive_queue.clear();
#ifdef TOUR
if(tour::on) tour::presentation(5);
if(tour::on) tour::presentation(tour::pmRestart);
#endif
if(multi::players > 1 && !shmup::on) {
@@ -1330,8 +1339,7 @@ bool applyCheat(char u, cell *c = NULL) {
return true;
}
if(u == 'W'-64) {
webdisplay++;
cheater++; addMessage(XLAT("Cheat-changed the display.", firstland));
cmode = emLinepattern;
return true;
}
if(u == 'G'-64) {