Lines Matching defs:sx
93 int sh, sx, sy, i = -1;
157 sx = doors[sh].x;
159 if (sx == sroom->lx - 1)
160 sx++;
161 else if (sx == sroom->hx + 1)
162 sx--;
187 if (!(shk = makemon(PM_SHK, sx, sy)))
195 ESHK->shk.x = sx;
203 for (sx = sroom->lx; sx <= sroom->hx; sx++)
206 if ((sx == sroom->lx && doors[sh].x == sx - 1) ||
207 (sx == sroom->hx && doors[sh].x == sx + 1) ||
211 if (rn2(100) < dlevel && !m_at(sx, sy) &&
212 (mtmp = makemon(PM_MIMIC, sx, sy))) {
218 (void) mkobj_at(let, sx, sy);
227 int sh, sx, sy, i;
248 for (sx = sroom->lx; sx <= sroom->hx; sx++)
250 if ((sx == sroom->lx && doors[sh].x == sx - 1) ||
251 (sx == sroom->hx && doors[sh].x == sx + 1) ||
258 sx, sy);
263 i = sq(dist2(sx, sy, doors[sh].x, doors[sh].y));
267 mkgold((long) (10 + rn2(i)), sx, sy);
275 mksobj_at(CORPSE, sx, sy);
281 mksobj_at(LUMP_OF_ROYAL_JELLY, sx, sy);
303 int sx, sy, i, eelct = 0;
313 for (sx = sroom->lx; sx <= sroom->hx; sx++)
315 if ((sx + sy) % 2 && !o_at(sx, sy) && !t_at(sx, sy)
316 && !m_at(sx, sy) && !nexttodoor(sx, sy)) {
317 levl[sx][sy].typ = POOL;
318 levl[sx][sy].scrsym = POOL_SYM;
320 (void) makemon(PM_EEL, sx, sy);
328 nexttodoor(int sx, int sy)
334 if ((lev = &levl[sx + dx][sy + dy])->typ == DOOR ||