mirror of
https://github.com/zenorogue/hyperrogue.git
synced 2024-12-18 23:10:26 +00:00
newlands:: OLR and summoning rules added
This commit is contained in:
parent
30c4d798db
commit
4169fe4cb1
@ -190,15 +190,15 @@ eOrbLandRelation getOLR(eItem it, eLand l) {
|
|||||||
|
|
||||||
if(it == itOrbSlaying && !among(l,
|
if(it == itOrbSlaying && !among(l,
|
||||||
laMirror, laHell, laEmerald, laDryForest, laCamelot, laPalace, laStorms, laRose, laTortoise, laBurial, laDungeon, laReptile,
|
laMirror, laHell, laEmerald, laDryForest, laCamelot, laPalace, laStorms, laRose, laTortoise, laBurial, laDungeon, laReptile,
|
||||||
laPrairie, laBull, laVolcano, laTerracotta, laRuins))
|
laPrairie, laBull, laVolcano, laTerracotta, laRuins, laVariant))
|
||||||
return olrUseless;
|
return olrUseless;
|
||||||
|
|
||||||
// if(it == itOrbYendor && l == laWhirlpool) return olrUseless;
|
if(it == itOrbYendor && among(l, laWhirlwind, laWestWall)) return olrUseless;
|
||||||
if(it == itOrbYendor && l == laWhirlwind) return olrUseless;
|
|
||||||
|
|
||||||
if(it == itOrbLife && (l == laKraken)) return olrUseless;
|
if(it == itOrbLife && (l == laKraken)) return olrUseless;
|
||||||
|
|
||||||
if(l == laVolcano && it == itOrbSafety) return olrDangerous;
|
if(l == laVolcano && it == itOrbSafety) return olrDangerous;
|
||||||
|
if(l == laVariant && it == itOrbSafety) return olrDangerous;
|
||||||
if(l == laVolcano && itemBurns(it)) return olrBurns;
|
if(l == laVolcano && itemBurns(it)) return olrBurns;
|
||||||
|
|
||||||
if(it == itOrbAir && l == laAlchemist) return olrUseless;
|
if(it == itOrbAir && l == laAlchemist) return olrUseless;
|
||||||
@ -444,7 +444,7 @@ int treasureForLocal() {
|
|||||||
void placeLocalOrbs(cell *c) {
|
void placeLocalOrbs(cell *c) {
|
||||||
eLand l = c->land;
|
eLand l = c->land;
|
||||||
if(l == laZebra && c->wall == waTrapdoor) return;
|
if(l == laZebra && c->wall == waTrapdoor) return;
|
||||||
if(isGravityLand(l) && cellEdgeUnstable(c)) return;
|
if(isGravityLand(l) && l != laWestWall && cellEdgeUnstable(c)) return;
|
||||||
if(isElemental(l)) l = laElementalWall;
|
if(isElemental(l)) l = laElementalWall;
|
||||||
if(peace::on) return;
|
if(peace::on) return;
|
||||||
if(daily::on) return;
|
if(daily::on) return;
|
||||||
|
3
orbs.cpp
3
orbs.cpp
@ -783,6 +783,9 @@ eMonster summonedAt(cell *dest) {
|
|||||||
if(dest->land == laRuins) return moEarthElemental;
|
if(dest->land == laRuins) return moEarthElemental;
|
||||||
if(dest->land == laSwitch) return passive_switch;
|
if(dest->land == laSwitch) return passive_switch;
|
||||||
if(dest->land == laSnakeNest) return moEarthElemental;
|
if(dest->land == laSnakeNest) return moEarthElemental;
|
||||||
|
if(dest->land == laBrownian) return moAcidBird;
|
||||||
|
if(dest->land == laVariant) return moFireElemental;
|
||||||
|
if(dest->land == laWestWall) return moAirElemental;
|
||||||
if(isHaunted(dest->land)) return moGhost;
|
if(isHaunted(dest->land)) return moGhost;
|
||||||
}
|
}
|
||||||
return moNone;
|
return moNone;
|
||||||
|
Loading…
Reference in New Issue
Block a user