Home | History | Annotate | Download | only in hack

Lines Matching defs:sy

93 	int             sh, sx, sy, i = -1;
158 sy = doors[sh].y;
163 else if (sy == sroom->ly - 1)
164 sy++;
165 else if (sy == sroom->hy + 1)
166 sy--;
187 if (!(shk = makemon(PM_SHK, sx, sy)))
196 ESHK->shk.y = sy;
204 for (sy = sroom->ly; sy <= sroom->hy; sy++) {
208 (sy == sroom->ly && doors[sh].y == sy - 1) ||
209 (sy == sroom->hy && doors[sh].y == sy + 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;
249 for (sy = sroom->ly; sy <= sroom->hy; sy++) {
252 (sy == sroom->ly && doors[sh].y == sy - 1) ||
253 (sy == sroom->hy && doors[sh].y == sy + 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;
314 for (sy = sroom->ly; sy <= sroom->hy; sy++)
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 ||