1
0
mirror of https://github.com/zenorogue/hyperrogue.git synced 2024-06-18 11:19:59 +00:00

removed no longer productive 'overgenerate', improved the down/up limits of sightrange_bonus

This commit is contained in:
Zeno Rogue 2018-04-10 20:25:56 +02:00
parent e41bc0b3b9
commit ebda963d68
8 changed files with 10 additions and 14 deletions

View File

@ -651,7 +651,7 @@ void showGraphConfig() {
XLAT("+5 = move instantly"));
if(xuni == 'r') {
dialog::editNumber(sightrange_bonus, -3, allowIncreasedSight() ? 3 : 0, 1, 0, XLAT("sight range"),
dialog::editNumber(sightrange_bonus, -5, allowIncreasedSight() ? 3 : 0, 1, 0, XLAT("sight range"),
XLAT("Roughly 42% cells are on the edge of your sight range. Reducing "
"the sight range makes HyperRogue work faster, but also makes "
"the game effectively harder."));

View File

@ -612,10 +612,10 @@ namespace dialog {
// if(ne.editwhat == &whatever) resetGeometry();
if(ne.intval == &sightrange_bonus && sightrange_bonus < -3)
*ne.editwhat = sightrange_bonus = -3, affect('v');
if(ne.intval == &sightrange_bonus && sightrange_bonus < 1-getDistLimit())
*ne.editwhat = sightrange_bonus = 1-getDistLimit(), affect('v');
int msr = allowIncreasedSight() ? 10 : 0;
int msr = allowIncreasedSight() ? gp::dist_2() * 5 : 0;
if(ne.intval == &sightrange_bonus && sightrange_bonus > msr)
*ne.editwhat = sightrange_bonus = msr, affect('v');

View File

@ -3046,8 +3046,6 @@ void bfs() {
for(int i=0; i<qtemp; i++) temps[i]->monst = tempval[i];
buildAirmap();
if(overgenerate) doOvergenerate();
}
bool makeEmpty(cell *c) {

View File

@ -39,7 +39,6 @@ eItem orbToTarget;
eMonster monsterToSummon;
int sightrange_bonus = 0;
bool overgenerate = false; // generate a bigger area with high sightrange
string mouseovers;
@ -5304,6 +5303,7 @@ void drawthemap() {
(!playermoved) ? sr+1 : sr + 4;
if(S3>3) maxreclevel+=2;
if(gp::on) maxreclevel += gp::dist_2();
drawrec(viewctr, maxreclevel, hsOrigin, cview());
}

View File

@ -1628,7 +1628,6 @@ extern cell *recallCell;
extern eLand cheatdest;
void cheatMoveTo(eLand l);
extern bool overgenerate;
void doOvergenerate();
void collectMessage(cell *c2, eItem which);

View File

@ -546,7 +546,7 @@ void drawrec(const heptspin& hs, int lev, hstate s, const transmatrix& V) {
hstate s2 = transition(s, d);
if(s2 == hsError) continue;
heptspin hs2 = hs + d + wstep;
drawrec(hs2, lev-2, s2, V * heptmove[d]);
drawrec(hs2, lev-gp::dist_2(), s2, V * heptmove[d]);
}
}

View File

@ -19,9 +19,8 @@ bool chaosUnlocked = false;
bool chaosAchieved = false;
void doOvergenerate() {
if(overgenerate)
for(int i=0; i<numplayers(); i++)
setdist(playerpos(i), 7 - getDistLimit() - genrange_bonus, NULL);
for(int i=0; i<numplayers(); i++)
setdist(playerpos(i), 7 - getDistLimit() - genrange_bonus, NULL);
}
bool notDippingFor(eItem i) {

View File

@ -1385,8 +1385,8 @@ void fixparam() {
void rvvideo(const char *fname) {
if(kind == kCollatz) {
pngformat = 2;
sightrange = 12;
overgenerate = true;
sightrange_bonus = 3;
genrange_bonus = 3;
dronemode = true; vid.camera_angle = -45; rog3 = true; patterns::whichShape = '8';
vid.aurastr = 512;
long long reached = 763ll;