mirror of
https://github.com/deater/dos33fsprogs.git
synced 2024-06-27 07:29:29 +00:00
tfv: update the item printing
This commit is contained in:
parent
42fe42e537
commit
9802531227
|
@ -16,7 +16,8 @@ unsigned char mp=50,max_mp=50;
|
|||
unsigned char limit=1;
|
||||
unsigned char money=0,experience=0;
|
||||
unsigned char time_hours=0,time_minutes=0;
|
||||
unsigned char items1=0xff,items2=0xff;
|
||||
//unsigned char items1=0xff,items2=0xff,items3=0x07;
|
||||
unsigned char items1=0,items2=0,items3=0;
|
||||
unsigned char steps=0;
|
||||
|
||||
/* location */
|
||||
|
|
|
@ -5,7 +5,7 @@ extern unsigned char mp,max_mp;
|
|||
extern unsigned char limit;
|
||||
extern unsigned char money,experience;
|
||||
extern unsigned char time_hours,time_minutes;
|
||||
extern unsigned char items1,items2;
|
||||
extern unsigned char items1,items2,items3;
|
||||
extern unsigned char steps;
|
||||
|
||||
|
||||
|
|
|
@ -45,31 +45,37 @@ MONEY = 0...255
|
|||
MAX_HP = 32+EXPERIENCE (maxing at 255)
|
||||
*/
|
||||
|
||||
char item_names[2][8][15]={
|
||||
char item_names[3][8][15]={
|
||||
{
|
||||
"CUPCAKE", // cafeteria lady
|
||||
"CARROT", // capabara
|
||||
"SMARTPASS", // metro worker
|
||||
"ELF RUNES", // mree
|
||||
"LIZBETH STAR", // Lizbeth
|
||||
"KARTE SPIEL", // Frau
|
||||
"GLAMDRING", // Gus
|
||||
"VEGEMITE", // Nicole
|
||||
"CUPCAKE",
|
||||
"CARROT",
|
||||
"SMARTPASS",
|
||||
"ELF RUNES",
|
||||
"LIZBETH STAR",
|
||||
"KARTE SPIEL",
|
||||
"GLAMDRING",
|
||||
"VEGEMITE",
|
||||
},
|
||||
{
|
||||
"BLUE LED", // bird
|
||||
"RED LED", //
|
||||
"1K RESISTOR", // brown black red, Elaine
|
||||
"4.7K RESISTOR", // yellow purple red, Tater
|
||||
"9V BATTERY", // Cindy
|
||||
"1.5V BATTERY", // Oscar
|
||||
"LINUX CD", // john
|
||||
"ARMY KNIFE", // Steve
|
||||
"BLUE LED",
|
||||
"RED LED",
|
||||
"1K RESISTOR",
|
||||
"4.7K RESISTOR",
|
||||
"9V BATTERY",
|
||||
"1.5V BATTERY",
|
||||
"LINUX CD",
|
||||
"ARMY KNIFE",
|
||||
},
|
||||
{
|
||||
"CHEX MIX",
|
||||
"CLASS RING",
|
||||
"VORTEX CANNON",
|
||||
}
|
||||
};
|
||||
|
||||
void print_info(void) {
|
||||
int i;
|
||||
int current_y;
|
||||
|
||||
text();
|
||||
home();
|
||||
|
@ -103,14 +109,31 @@ void print_info(void) {
|
|||
basic_print("STATS");
|
||||
|
||||
|
||||
current_y=6;
|
||||
|
||||
for(i=0;i<8;i++) {
|
||||
basic_htab(4);
|
||||
basic_vtab(6+i);
|
||||
if (items1&(1<<i)) basic_print(item_names[0][i]);
|
||||
|
||||
basic_vtab(current_y);
|
||||
if (items1&(1<<i)) {
|
||||
basic_print(item_names[0][i]);
|
||||
current_y++;
|
||||
}
|
||||
}
|
||||
for(i=0;i<8;i++) {
|
||||
basic_htab(4);
|
||||
basic_vtab(14+i);
|
||||
if (items2&(1<<i)) basic_print(item_names[1][i]);
|
||||
basic_vtab(current_y);
|
||||
if (items2&(1<<i)) {
|
||||
basic_print(item_names[1][i]);
|
||||
current_y++;
|
||||
}
|
||||
}
|
||||
for(i=0;i<8;i++) {
|
||||
basic_htab(4);
|
||||
basic_vtab(current_y);
|
||||
if (items3&(1<<i)) {
|
||||
basic_print(item_names[2][i]);
|
||||
current_y++;
|
||||
}
|
||||
}
|
||||
|
||||
basic_htab(23);
|
||||
|
@ -156,4 +179,3 @@ void print_info(void) {
|
|||
home();
|
||||
gr();
|
||||
}
|
||||
|
||||
|
|
|
@ -50,6 +50,6 @@
|
|||
#define ITEM_CLASS_RING 0x11 //
|
||||
#define ITEM_VORTEXCANNON 0x12 // Ken
|
||||
|
||||
extern char item_names[2][8][15];
|
||||
extern char item_names[3][8][15];
|
||||
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user