Lines Matching refs:Other
35 while (fread((char *) &Other, SZ_PLAYERSTRUCT, 1, Playersfp) == 1) {
36 if (Other.p_status != S_OFF
37 && Other.p_status != S_NOTUSED
38 && Other.p_status != S_HUNGUP
39 && (Other.p_status != S_CLOAKED || Other.p_specialtype != SC_VALAR))
44 if (Player.p_x == Other.p_x
45 && Player.p_y == Other.p_y
50 && (Other.p_status == S_PLAYING || Other.p_status == S_INBATTLE)
52 && Other.p_specialtype != SC_VALAR
92 readrecord(&Other, foeplace);
93 if (fabs(Player.p_level - Other.p_level) > 20.0)
96 dtemp = (Player.p_level - Other.p_level) / MAX(Player.p_level, Other.p_level);
106 Enemyname = Other.p_name;
108 mvprintw(6, 0, "You have encountered %s Level: %.0f\n", Enemyname, Other.p_level);
111 for (loop = 0; Other.p_status != S_INBATTLE && loop < 30; ++loop)
114 readrecord(&Other, foeplace);
118 if (Other.p_status != S_INBATTLE)
135 if (Player.p_speed > Other.p_speed)
138 if (Other.p_speed > Player.p_speed)
141 if (Player.p_level > Other.p_level)
144 if (Other.p_level > Player.p_level)
171 readrecord(&Other, foeplace);
172 if (Other.p_1scratch != oldhits)
185 if (Other.p_1scratch == oldhits) {
198 switch (Other.p_istat) {
214 dtemp = Other.p_1scratch - oldhits;
220 oldhits = Other.p_1scratch; /* keep track of old
223 if (Other.p_tampered != oldtampered)
227 oldtampered = Other.p_tampered;
240 if (Other.p_istat == I_KILLED || Shield < 0.0)
250 Player.p_experience += Other.p_experience;
251 Player.p_crowns += (Player.p_level < 1000.0) ? Other.p_crowns : 0;
252 Player.p_amulets += Other.p_amulets;
253 Player.p_charms += Other.p_charms;
254 collecttaxes(Other.p_gold, Other.p_gems);
255 Player.p_sword = MAX(Player.p_sword, Other.p_sword);
256 Player.p_shield = MAX(Player.p_shield, Other.p_shield);
257 Player.p_quksilver = MAX(Player.p_quksilver, Other.p_quksilver);
258 if (Other.p_virgin && !Player.p_virgin) {
267 sleep(3); /* give other person time to die */
270 if (Player.p_istat == I_RAN || Other.p_istat == I_RAN)
350 Player.p_1scratch = Other.p_energy * 1.1;
358 if (Player.p_1scratch > Other.p_energy)
361 if (drandom() * Player.p_speed < drandom() * Other.p_speed)
397 /* now check for other things */
398 readrecord(&Other, Fileloc);
399 if (Other.p_tampered != T_OFF)
400 tampered(Other.p_tampered, Other.p_1scratch, Other.p_2scratch);
406 long loc; /* location in file of other players */
527 while (fread((char *) &Other, SZ_PLAYERSTRUCT, 1, Playersfp) == 1)
529 if (Other.p_specialtype == SC_VALAR
530 && Other.p_status != S_NOTUSED)
533 Other.p_tampered = T_EXVALAR;
534 writerecord(&Other, loc);
565 while (fread((char *) &Other, SZ_PLAYERSTRUCT, 1, Playersfp) == 1) {
566 if (Other.p_status == S_NOTUSED
568 || (Other.p_specialtype == SC_VALAR && Other.p_status == S_CLOAKED))
581 || Other.p_specialtype >= SC_KING
583 || Circle >= CIRCLE(Other.p_x, Other.p_y)
587 && (Other.p_status != S_CLOAKED
590 && Other.p_specialtype != SC_VALAR)
594 Other.p_name, Other.p_x, Other.p_y);
598 Other.p_name, descrlocation(&Other, TRUE));
600 printw("%6.0f %s %-9.9s%s\n", Other.p_level, descrtype(&Other, TRUE),
601 Other.p_login, descrstatus(&Other));
624 while (fread((char *) &Other, SZ_PLAYERSTRUCT, 1, Playersfp) == 1)
625 if (Other.p_specialtype == SC_KING && Other.p_status != S_NOTUSED)
628 if (Other.p_status != S_OFF)
639 Other.p_specialtype = SC_NONE;
640 if (Other.p_crowns)
641 --Other.p_crowns;
642 writerecord(&Other, loc);
671 short tamper; /* value for tampering with other players */
673 double temp1 = 0.0, temp2 = 0.0; /* other tampering values */
842 /* name other than self */
844 if ((loc = findname(Databuf, &Other)) >= 0L) {
845 if (Other.p_tampered != T_OFF) {
850 && CIRCLE(temp1, temp2) < CIRCLE(Other.p_x, Other.p_y)
859 Other.p_tampered = tamper;
860 Other.p_1scratch = floor(temp1);
861 Other.p_2scratch = floor(temp2);
862 writerecord(&Other, loc);