mirror of
https://github.com/ondra-novak/gates_of_skeldal.git
synced 2025-08-11 08:48:24 -04:00
rewrite gpathtable and path resolution
This commit is contained in:
parent
ccebc91f0d
commit
4a0c7d4fd0
125 changed files with 889 additions and 901 deletions
|
@ -1,4 +1,4 @@
|
|||
#include <types.h>
|
||||
#include <libs/types.h>
|
||||
#include <stdio.h>
|
||||
#include <string.h>
|
||||
#include <malloc.h>
|
||||
|
@ -47,44 +47,44 @@ char pr_name=0,pr_type=0,pr_sound=0,pr_umist=0,pr_zbran=0,pr_hmotn=0,pr_popis=0;
|
|||
char grp_sort=0,pr_number=0,pr_cena=0;
|
||||
|
||||
char _typy_zbrani[]=
|
||||
"Me‡\0"
|
||||
"Me<EFBFBD>\0"
|
||||
"Sekera\0"
|
||||
"Kladivo\0"
|
||||
"H–l\0"
|
||||
"D<EFBFBD>ka\0"
|
||||
"St©eln \0"
|
||||
"Ostatnˇ\0";
|
||||
"H<EFBFBD>l\0"
|
||||
"D<EFBFBD>ka\0"
|
||||
"St<EFBFBD>eln<EFBFBD>\0"
|
||||
"Ostatn<EFBFBD>\0";
|
||||
|
||||
char _typy_veci[]=
|
||||
"Nespecifikov no\0"
|
||||
"Zbra¤ tv ©ˇ v tv ©\0"
|
||||
"Vrhacˇ zbra¤\0"
|
||||
"St©eln zbra¤\0"
|
||||
"Nespecifikov<EFBFBD>no\0"
|
||||
"Zbra<EFBFBD> tv<74><76><EFBFBD> v tv<74><76>\0"
|
||||
"Vrhac<EFBFBD> zbra<72>\0"
|
||||
"St<EFBFBD>eln<EFBFBD> zbra<72>\0"
|
||||
"Zbroj\0"
|
||||
"Svitek / H–lka\0"
|
||||
"Svitek / H<EFBFBD>lka\0"
|
||||
"Lektvar\0"
|
||||
"Voda\0"
|
||||
"Jˇdlo\0"
|
||||
"Speci lnˇ\0"
|
||||
"J<EFBFBD>dlo\0"
|
||||
"Speci<EFBFBD>ln<EFBFBD>\0"
|
||||
"Runa\0"
|
||||
"Penˇze\0"
|
||||
"Pen<EFBFBD>ze\0"
|
||||
"Svitek s textem\0"
|
||||
"Prach\0"
|
||||
"Ostatnˇ\0";
|
||||
"Ostatn<EFBFBD>\0";
|
||||
|
||||
char _umisteni_veci[]=
|
||||
"Nikam\0"
|
||||
"Zavazadlo\0"
|
||||
"Na t<>lo (naho©e)\0"
|
||||
"Na t<>lo (dole)\0"
|
||||
"Na t<>lo (naho<EFBFBD>e)\0"
|
||||
"Na t<>lo (dole)\0"
|
||||
"Na hlavu\0"
|
||||
"Na nohy\0"
|
||||
"Kutna\0"
|
||||
"Na krk\0"
|
||||
"Do ruky\0"
|
||||
"Obouru‡\0"
|
||||
"Obouru<EFBFBD>\0"
|
||||
"Prsten\0"
|
||||
"›ˇp\0";
|
||||
"<EFBFBD><EFBFBD>p\0";
|
||||
|
||||
|
||||
long load_section(FILE *f,void **section, int *sct_type,long *sect_size)
|
||||
|
@ -149,14 +149,14 @@ char *find_str(char *sound,int number,long listsize)
|
|||
|
||||
void print_polozka(int num,TITEM *t)
|
||||
{
|
||||
if (pr_number) printf("%3dł",num);
|
||||
if (pr_name) printf("%-32sł",t->jmeno);
|
||||
if (pr_type) printf("%-20sł",find_str(_typy_veci,t->druh+1,sizeof(_typy_veci)));
|
||||
if (pr_umist) printf("%-20sł",find_str(_umisteni_veci,t->umisteni+1,sizeof(_umisteni_veci)));
|
||||
if (pr_zbran) printf("%-10sł",isweapon(t->druh)?find_str(_typy_zbrani,t->typ_zbrane+1,sizeof(_typy_zbrani)):" ");
|
||||
if (pr_hmotn) printf("%6dł",t->hmotnost);
|
||||
if (pr_cena) printf("%6dł",t->cena);
|
||||
if (pr_sound) printf("%-12sł",find_str(sound,t->sound,listsize));
|
||||
if (pr_number) printf("%3d<EFBFBD>",num);
|
||||
if (pr_name) printf("%-32s<EFBFBD>",t->jmeno);
|
||||
if (pr_type) printf("%-20s<EFBFBD>",find_str(_typy_veci,t->druh+1,sizeof(_typy_veci)));
|
||||
if (pr_umist) printf("%-20s<EFBFBD>",find_str(_umisteni_veci,t->umisteni+1,sizeof(_umisteni_veci)));
|
||||
if (pr_zbran) printf("%-10s<EFBFBD>",isweapon(t->druh)?find_str(_typy_zbrani,t->typ_zbrane+1,sizeof(_typy_zbrani)):" ");
|
||||
if (pr_hmotn) printf("%6d<EFBFBD>",t->hmotnost);
|
||||
if (pr_cena) printf("%6d<EFBFBD>",t->cena);
|
||||
if (pr_sound) printf("%-12s<EFBFBD>",find_str(sound,t->sound,listsize));
|
||||
if (pr_popis) printf("%s",t->popis);
|
||||
puts("");
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue