mirror of
https://github.com/zenorogue/hyperrogue.git
synced 2024-11-27 14:37:16 +00:00
more map effects for the new stuff
This commit is contained in:
parent
395d56f581
commit
eb15070ac4
@ -272,7 +272,8 @@ EX void prespill(cell* c, eWall t, int rad, cell *from) {
|
||||
c->wall == waVinePlant || isFire(c) || c->wall == waBonfireOff || c->wall == waVineHalfA || c->wall == waVineHalfB ||
|
||||
c->wall == waCamelotMoat || c->wall == waSea || c->wall == waCTree ||
|
||||
c->wall == waRubble || c->wall == waGargoyleFloor || c->wall == waGargoyle ||
|
||||
c->wall == waRose || c->wall == waPetrified || c->wall == waPetrifiedBridge || c->wall == waRuinWall)
|
||||
c->wall == waRose || c->wall == waPetrified || c->wall == waPetrifiedBridge || c->wall == waRuinWall ||
|
||||
among(c->wall, waDeepWater, waShallow))
|
||||
t = waTemporary;
|
||||
|
||||
if(c->wall == waSulphur) {
|
||||
|
@ -603,7 +603,7 @@ EX void moverefresh(bool turn IS(true)) {
|
||||
addMessage(XLAT("%The1 drowns!", c->monst));
|
||||
if(isBull(c->monst)) {
|
||||
addMessage(XLAT("%The1 is filled!", c->wall));
|
||||
c->wall = waNone;
|
||||
c->wall = waShallow;
|
||||
}
|
||||
fallMonster(c, AF_FALL);
|
||||
}
|
||||
|
7
game.cpp
7
game.cpp
@ -345,10 +345,15 @@ EX void pushThumper(const movei& mi) {
|
||||
}
|
||||
else if(isWatery(cto)) {
|
||||
addMessage(XLAT("%The1 fills the hole!", w));
|
||||
cto->wall = w == waThumperOn ? waTempBridge : waNone;
|
||||
cto->wall = w == waThumperOn ? waTempBridge : waShallow;
|
||||
cto->wparam = th->wparam;
|
||||
playSound(cto, "splash"+pick12());
|
||||
}
|
||||
else if(cto->wall == waShallow) {
|
||||
addMessage(XLAT("%The1 fills the hole!", w));
|
||||
cto->wall = waNone;
|
||||
playSound(cto, "splash"+pick12());
|
||||
}
|
||||
else
|
||||
cto->wall = w;
|
||||
if(explode) cto->wall = waFireTrap, cto->wparam = explode;
|
||||
|
5
orbs.cpp
5
orbs.cpp
@ -731,6 +731,11 @@ EX eMonster summonedAt(cell *dest) {
|
||||
return moBomberbird;
|
||||
if(dest->wall == waTrapdoor)
|
||||
return dest->land == laPalace ? moFatGuard : moOrangeDog;
|
||||
if(dest->land == laFrog && dest->wall == waNone) {
|
||||
forCellEx(c1, dest) if(c1->wall == waShrub) return moVaulter;
|
||||
forCellEx(c1, dest) if(c1->wall == waDeepWater) return moFrog;
|
||||
forCellEx(c1, dest) if(c1->wall == waStone) return moPhaser;
|
||||
}
|
||||
if(dest->wall == waSea)
|
||||
return
|
||||
isElemental(dest->land) ? moWaterElemental :
|
||||
|
@ -38,7 +38,7 @@ EX bool boatGoesThrough(cell *c) {
|
||||
c->wall == waDeadfloor || c->wall == waCIsland || c->wall == waCIsland2 ||
|
||||
c->wall == waMineUnknown || c->wall == waMineMine || c->wall == waMineOpen ||
|
||||
c->wall == waBonfireOff || c->wall == waFire || c->wall == waPartialFire ||
|
||||
c->wall == waArrowTrap;
|
||||
c->wall == waArrowTrap || c->wall == waShallow;
|
||||
}
|
||||
|
||||
EX void become_water(cell *c) {
|
||||
|
Loading…
Reference in New Issue
Block a user