mirror of
https://github.com/zenorogue/hyperrogue.git
synced 2024-11-23 21:07:17 +00:00
more controllable trailers
This commit is contained in:
parent
f860554c9f
commit
97367c02a6
12
system.cpp
12
system.cpp
@ -77,6 +77,10 @@ void welcomeMessage() {
|
||||
#endif
|
||||
}
|
||||
|
||||
int trailer_cash0 = 5;
|
||||
int trailer_cash1 = 15;
|
||||
bool trailer_safety = true;
|
||||
|
||||
// initialize the game
|
||||
void initgame() {
|
||||
DEBB(DF_INIT, (debugfile,"initGame\n"));
|
||||
@ -121,9 +125,11 @@ void initgame() {
|
||||
if(firstland == laWhirlpool) cwt.c->mov[0]->wall = waSea;
|
||||
|
||||
setdist(cwt.c->mov[0], BARLEV-1, cwt.c);
|
||||
if(!sphere && !euclid) {
|
||||
heptagon *h = createAlternateMap(cwt.c, 2, hsA);
|
||||
if(!h) printf("FAIL\n");
|
||||
}
|
||||
}
|
||||
|
||||
if(tactic::on && firstland == laPower) {
|
||||
items[itOrbSpeed] = 30;
|
||||
@ -138,7 +144,7 @@ void initgame() {
|
||||
}
|
||||
|
||||
if(tactic::on && tactic::trailer)
|
||||
items[treasureType(firstland)] = 5;
|
||||
items[treasureType(firstland)] = trailer_cash0;
|
||||
|
||||
tactic::lasttactic = firstland;
|
||||
yendor::lastchallenge = yendor::challenge;
|
||||
@ -174,7 +180,7 @@ void initgame() {
|
||||
// extern int sightrange; sightrange = 9;
|
||||
// cwt.c->land = laHell; items[itHell] = 10;
|
||||
for(int i=BARLEV; i>=0; i--) {
|
||||
if(tactic::trailer && cwt.c->land != laClearing) safety = true;
|
||||
if(tactic::trailer && cwt.c->land != laClearing) safety = trailer_safety;
|
||||
setdist(cwt.c, i, NULL);
|
||||
if(tactic::trailer) safety = false;
|
||||
|
||||
@ -211,7 +217,7 @@ void initgame() {
|
||||
}
|
||||
|
||||
if(tactic::on && tactic::trailer)
|
||||
items[treasureType(firstland)] = 15;
|
||||
items[treasureType(firstland)] = trailer_cash1;
|
||||
|
||||
yendor::init(3);
|
||||
peace::simon::init();
|
||||
|
Loading…
Reference in New Issue
Block a user