Changeset 859
- Timestamp:
- 04/28/08 23:04:22 (4 months ago)
- Files:
-
- trunk/lib/edit/shop_own.txt (modified) (2 diffs)
- trunk/src/init1.c (modified) (2 diffs)
- trunk/src/store.c (modified) (1 diff)
- trunk/src/types.h (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
trunk/lib/edit/shop_own.txt
r858 r859 12 12 # Format: 13 13 # N:store:owner idx:owner name 14 # I:race idx:purse 14 # I:purse 15 15 16 16 17 … … 20 21 21 22 # General Store 22 N:0:0:Bilbo the Friendly 23 I: 3:500024 N:0:1:Rincewind the Chicken 25 I: 0:1000026 N:0:2:Snafu the Midget 27 I: 4:2000028 N:0:3:Lyar-el the Comely 29 I: 2:3000023 N:0:0:Bilbo the Friendly (Hobbit) 24 I:5000 25 N:0:1:Rincewind the Chicken (Human) 26 I:10000 27 N:0:2:Snafu the Midget (Gnome) 28 I:20000 29 N:0:3:Lyar-el the Comely (Elf) 30 I:30000 30 31 31 32 # Armoury 32 N:1:0:Kon-Dar the Ugly 33 I: 6:500034 N:1:1:Darg-Low the Grim 35 I: 0:1000036 N:1:2:Decado the Handsome 37 I: 8:2500038 N:1:3:Mauglin the Grumpy 39 I: 5:3000033 N:1:0:Kon-Dar the Ugly (Half-Orc) 34 I:5000 35 N:1:1:Darg-Low the Grim (Human) 36 I:10000 37 N:1:2:Decado the Handsome (Dundan) 38 I:25000 39 N:1:3:Mauglin the Grumpy (Dwarf) 40 I:30000 40 41 41 42 # Weapon Smith 42 N:2:0:Ithyl-Mak the Beastly 43 I: 7:500044 N:2:1:Arndal Beast-Slayer 45 I:1 :1000046 N:2:2:Tarl Beast-Master 47 I: 3:2500048 N:2:3:Oglign Dragon-Slayer 49 I: 5:3000043 N:2:0:Ithyl-Mak the Beastly (Half-Troll) 44 I:5000 45 N:2:1:Arndal Beast-Slayer (Half-Elf) 46 I:10000 47 N:2:2:Tarl Beast-Master (Hobbit) 48 I:25000 49 N:2:3:Oglign Dragon-Slayer (Dwarf) 50 I:30000 50 51 51 52 # Temple 52 N:3:0:Ludwig the Humble 53 I: 0:1500054 N:3:1:Gunnar the Paladin 55 I: 0:2000056 N:3:2:Delilah the Pure 57 I:2 :2500058 N:3:3:Bosk the Wise 59 I: 5:3000053 N:3:0:Ludwig the Humble (Human) 54 I:15000 55 N:3:1:Gunnar the Paladin (Human) 56 I:20000 57 N:3:2:Delilah the Pure (Elf) 58 I:25000 59 N:3:3:Bosk the Wise (Dwarf) 60 I:30000 60 61 61 62 # Alchemist 62 N:4:0:Mauser the Chemist 63 I:1 :1000064 N:4:1:Wizzle the Chaotic 65 I: 3:1000066 N:4:2:Ga-nat the Greedy 67 I: 4:1500068 N:4:3:Vella the Slender 69 I: 0:1500063 N:4:0:Mauser the Chemist (Half-Elf) 64 I:10000 65 N:4:1:Wizzle the Chaotic (Hobbit) 66 I:10000 67 N:4:2:Ga-nat the Greedy (Gnome) 68 I:15000 69 N:4:3:Vella the Slender (Human) 70 I:15000 70 71 71 72 # Magic Shop 72 N:5:0:Ariel the Sorceress 73 I:1 :1500074 N:5:1:Buggerby the Great 75 I: 4:2000076 N:5:2:Inglorian the Mage 77 I: 0:2500078 N:5:3:Luthien Starshine 79 I: 9:3000073 N:5:0:Ariel the Sorceress (Half-Elf) 74 I:15000 75 N:5:1:Buggerby the Great (Gnome) 76 I:20000 77 N:5:2:Inglorian the Mage (Human) 78 I:25000 79 N:5:3:Luthien Starshine (High-Elf) 80 I:30000 80 81 81 82 # Black Market 82 N:6:0:Lo-Hak the Awful 83 I: 7:1500084 N:6:1:Histor the Goblin 85 I: 10:2000086 N:6:2:Durwin the Shifty 87 I: 6:2500088 N:6:3:Drago the Fair 89 I: 2:3000083 N:6:0:Lo-Hak the Awful (Half-Troll) 84 I:15000 85 N:6:1:Histor the Goblin (Kobold) 86 I:20000 87 N:6:2:Durwin the Shifty (Half-Orc) 88 I:25000 89 N:6:3:Drago the Fair (Elf) 90 I:30000 90 91 91 92 # Home 92 93 N:7:0:Your home 93 I: 99:094 I:0 94 95 N:7:1:Your home 95 I: 99:096 I:0 96 97 N:7:2:Your home 97 I: 99:098 I:0 98 99 N:7:3:Your home 99 I: 99:0100 I:0 trunk/src/init1.c
r857 r859 2966 2966 else if (buf[0] == 'I') 2967 2967 { 2968 int idx, gld, inflate;2968 int purse; 2969 2969 2970 2970 /* There better be a current ot_ptr */ … … 2972 2972 2973 2973 /* Scan for the values */ 2974 if (2 != sscanf(buf+2, "%d:%d", 2975 &idx, &gld)) return (PARSE_ERROR_GENERIC); 2974 if (1 != sscanf(buf+2, "%d", &purse)) return (PARSE_ERROR_GENERIC); 2976 2975 2977 2976 /* Save the values */ 2978 ot_ptr->owner_race = idx; 2979 ot_ptr->max_cost = gld; 2977 ot_ptr->max_cost = purse; 2980 2978 } 2981 2979 else trunk/src/store.c
r856 r859 1696 1696 else 1697 1697 { 1698 cptr store_name = (f_name + f_info[FEAT_SHOP_HEAD + store_current].name); 1699 cptr owner_name = &(b_name[ot_ptr->owner_name]); 1700 cptr race_name = p_name + p_info[ot_ptr->owner_race].name; 1701 1702 /* Put the owner name and race */ 1703 strnfmt(buf, sizeof(buf), "%s (%s)", owner_name, race_name); 1704 put_str(buf, scr_places_y[LOC_OWNER], 1); 1698 const char *store_name = (f_name + f_info[FEAT_SHOP_HEAD + store_current].name); 1699 const char *owner_name = &b_name[ot_ptr->owner_name]; 1700 1701 /* Put the owner name */ 1702 put_str(owner_name, scr_places_y[LOC_OWNER], 1); 1705 1703 1706 1704 /* Show the max price in the store (above prices) */ trunk/src/types.h
r856 r859 576 576 { 577 577 u32b owner_name; /* Name (offset) */ 578 579 578 s32b max_cost; /* Purse limit */ 580 581 byte owner_race; /* Owner race */582 579 }; 583 580
