Beispiel #1
0
bot_linex()
	{
	register int i;
	if (cbak[SPELLS] <= -50 || (always))
		{
		cursor( 1,18);
		if (c[SPELLMAX]>99)  lprintf("Spells:%3d(%3d)",(long)c[SPELLS],(long)c[SPELLMAX]);
						else lprintf("Spells:%3d(%2d) ",(long)c[SPELLS],(long)c[SPELLMAX]);
		lprintf(" AC: %-3d  WC: %-3d  Level",(long)c[AC],(long)c[WCLASS]);
		if (c[LEVEL]>99) lprintf("%3d",(long)c[LEVEL]);
					else lprintf(" %-2d",(long)c[LEVEL]);
		lprintf(" Exp: %-9d %s\n",(long)c[EXPERIENCE],class[c[LEVEL]-1]);
		lprintf("HP: %3d(%3d) STR=%-2d INT=%-2d ",
			(long)c[HP],(long)c[HPMAX],(long)(c[STRENGTH]+c[STREXTRA]),(long)c[INTELLIGENCE]);
		lprintf("WIS=%-2d CON=%-2d DEX=%-2d CHA=%-2d LV:",
			(long)c[WISDOM],(long)c[CONSTITUTION],(long)c[DEXTERITY],(long)c[CHARISMA]);

		if ((level==0) || (wizard))  c[TELEFLAG]=0;
		if (c[TELEFLAG])  lprcat(" ?");  else  lprcat(levelname[level]);
		lprintf("  Gold: %-6d",(long)c[GOLD]);
		always=1;  botside();
		c[TMP] = c[STRENGTH]+c[STREXTRA];
		for (i=0; i<100; i++) cbak[i]=c[i];
		return;
		}
Beispiel #2
0
void bot_linex(void)
{
	int i;
	char buf[12];

	if (cbak[SPELLS] <= -50 || (always)) {
		cursor(1,18);
		if (c[SPELLMAX]>99)
			lprintf("Spells:%3d(%3d)", c[SPELLS],c[SPELLMAX]);
		else
			lprintf("Spells:%3d(%2d) ",c[SPELLS],c[SPELLMAX]);
		lprintf(" AC: %-3d  WC: %-3d  Level",c[AC],c[WCLASS]);
		if (c[LEVEL]>99)
			lprintf("%3d",c[LEVEL]);
		else
			lprintf(" %-2d",c[LEVEL]);

		lprintf(" Exp: %-9d %s",c[EXPERIENCE],class[c[LEVEL]-1]);

		cursor(1,19);

		/* lprintf("HP: %4d (%4d) STR=%-2d INT=%-2d ", */
			/* c[HP], c[HPMAX], c[STRENGTH]+c[STREXTRA], */
			/* c[INTELLIGENCE]); */

		sprintf(buf, "%ld (%ld)", c[HP], c[HPMAX]);
		/*       12345   111122   222222   3 */
		/*               678901   345678   0 */
		lprintf("HP: %11s STR=%-2d INT=%-2d ",
			buf, c[STRENGTH]+c[STREXTRA], c[INTELLIGENCE]);

		cursor(31,19);
		/*       33333   333444   444444   555555   5566 */
		/*       12345   789012   456789   123456   8901 */
		lprintf("WIS=%-2d CON=%-2d DEX=%-2d CHA=%-2d LV:",
			c[WISDOM],c[CONSTITUTION],c[DEXTERITY],c[CHARISMA]);

		if ((level==0) || (wizard))
			c[TELEFLAG]=0;
		cursor(62,19);
		if (c[TELEFLAG])
			lprcat(" ?");
		else
			lprintf("%2s", levelname[level]);
		cursor(64,19);
		/*       666666777 */
		/*       456789012 */
		lprintf("  Gold: %-8d",c[GOLD]);
		always=1;
		botside();
		c[TMP] = c[STRENGTH]+c[STREXTRA];
		for (i=0; i<100; i++)
			cbak[i]=c[i];
		return;
	}