mirror of
https://github.com/zenorogue/hyperrogue.git
synced 2025-10-24 10:27:45 +00:00
renamed the size function to isize
This commit is contained in:
14
orbs.cpp
14
orbs.cpp
@@ -225,7 +225,7 @@ void flashCell(cell *c, eMonster killer, flagtype flags) {
|
||||
void activateFlashFrom(cell *cf, eMonster who, flagtype flags) {
|
||||
drawFlash(cf);
|
||||
playSound(cf, "storm");
|
||||
for(int i=0; i<size(dcal); i++) {
|
||||
for(int i=0; i<isize(dcal); i++) {
|
||||
cell *c = dcal[i];
|
||||
if(c == cf) continue;
|
||||
for(int t=0; t<c->type; t++)
|
||||
@@ -252,7 +252,7 @@ void checkFreedom(cell *cf) {
|
||||
avcells.clear();
|
||||
avcells.push_back(cf);
|
||||
cf->aitmp = sval;
|
||||
for(int i=0; i<size(avcells); i++) {
|
||||
for(int i=0; i<isize(avcells); i++) {
|
||||
cell *c = avcells[i];
|
||||
if(c->cpdist >= 5) return;
|
||||
for(int i=0; i<c->type; i++) {
|
||||
@@ -276,7 +276,7 @@ void checkFreedom(cell *cf) {
|
||||
drainOrb(itOrbFreedom);
|
||||
for(int i=0; i<numplayers(); i++)
|
||||
drawBigFlash(playerpos(i));
|
||||
for(int i=0; i<size(dcal); i++) {
|
||||
for(int i=0; i<isize(dcal); i++) {
|
||||
cell *c = dcal[i];
|
||||
if(c == cf && !shmup::on) continue;
|
||||
if(c->cpdist > 5) break;
|
||||
@@ -293,7 +293,7 @@ void activateFlash() {
|
||||
addMessage(XLAT("You activate the Flash spell!"));
|
||||
playSound(cwt.c, "storm");
|
||||
drainOrb(itOrbFlash);
|
||||
for(int i=0; i<size(dcal); i++) {
|
||||
for(int i=0; i<isize(dcal); i++) {
|
||||
cell *c = dcal[i];
|
||||
if(c->cpdist > 2) break;
|
||||
flashCell(c, moPlayer, AF_MAGIC);
|
||||
@@ -481,7 +481,7 @@ void activateLightning() {
|
||||
drawLightning();
|
||||
addMessage(XLAT("You activate the Lightning spell!"));
|
||||
|
||||
for(int i=0; i<size(dcal); i++) if(dcal[i]) dcal[i]->ligon = 0;
|
||||
for(int i=0; i<isize(dcal); i++) if(dcal[i]) dcal[i]->ligon = 0;
|
||||
|
||||
drainOrb(itOrbLightning);
|
||||
|
||||
@@ -503,7 +503,7 @@ void activateLightning() {
|
||||
bool haveRangedTarget() {
|
||||
if(!haveRangedOrb())
|
||||
return false;
|
||||
for(int i=0; i<size(dcal); i++) {
|
||||
for(int i=0; i<isize(dcal); i++) {
|
||||
cell *c = dcal[i];
|
||||
if(targetRangedOrb(c, roCheck)) {
|
||||
return true;
|
||||
@@ -900,7 +900,7 @@ void poly_attack(cell *dest) {
|
||||
moNarciss, moJiangshi
|
||||
};
|
||||
int ssf = 0;
|
||||
eMonster target = *(polymonsters.begin() + hrand(size(polymonsters)));
|
||||
eMonster target = *(polymonsters.begin() + hrand(isize(polymonsters)));
|
||||
for(eMonster m: polymonsters)
|
||||
if(kills[m] && m != dest->monst) {
|
||||
ssf += kills[m];
|
||||
|
||||
Reference in New Issue
Block a user