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

Irradiated Yendor Challenge (but commented off for now)

This commit is contained in:
Zeno Rogue 2019-01-17 00:45:36 +01:00
parent 0a794f5b26
commit a676424573
3 changed files with 7 additions and 1 deletions

View File

@ -1590,6 +1590,7 @@ cdata *getHeptagonCdata(heptagon *h) {
h->cdata = new cdata(orig_cdata);
for(int& v: h->cdata->val) v = 0;
h->cdata->bits = reptilecheat ? (1 << 21) - 1 : 0;
if(yendor::on && specialland == laVariant) h->cdata->bits |= (1 << 8) | (1 << 9) | (1 << 12);
return h->cdata;
}

View File

@ -283,7 +283,11 @@ const array<variant_feature, 21> variant_features {{
{0x000c18,-1, moNone, VF { if(hrand(1500) < 30) build_pool(c, true); } },
{0x040A00,-1, moNone, VF { if(c->wall == waNone && !c->monst && !c->monst && hrand(1500) < 10) c->wall = waThumperOff; } },
{0x080A00,-1, moNone, VF { if(hrand(1500) < 20 && !c->monst && !c->wall) c->wall = waFireTrap; } },
{0x0C0A00, 0, moNone, VF { if(c->wall == waNone && !c->monst && hrand(5000) < 100) c->wall = waExplosiveBarrel; } },
{0x0C0A00, 0, moNone, VF {
bool inyendor = yendor::on && specialland == laVariant && celldist(c) < 7;
int chance = inyendor ? 800 : 100;
if(c->wall == waNone && !c->monst && hrand(5000) < chance) c->wall = waExplosiveBarrel;
} },
{0x060D04, 0, moNone, VF {
if(c->wall == waNone && !c->monst && pseudohept(c) && hrand(30000) < 25 + items[itVarTreasure])
if(buildIvy(c, 0, c->type) && !peace::on) c->item = itVarTreasure;

View File

@ -89,6 +89,7 @@ namespace yendor {
{laRuins, YF_DEAD},
{laCaves, YF_DEAD5},
{laWestWall, YF_START_CR},
// {laVariant, YF_DEAD5}, (I do not think this works)
};
int tscorelast;