Changeset 987
- Timestamp:
- 08/05/08 14:26:44 (4 months ago)
- Files:
-
- trunk/src/birth.c (modified) (4 diffs)
- trunk/src/obj-info.c (modified) (1 diff)
- trunk/src/option.c (modified) (6 diffs)
- trunk/src/option.h (modified) (3 diffs)
- trunk/src/store.c (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
trunk/src/birth.c
r975 r987 449 449 450 450 /* Minimum 200 gold */ 451 if (gold < 200) gold = 200; 451 if (OPT(birth_money)) gold = MAX(500, gold); 452 else gold = MAX(200, gold); 452 453 453 454 /* Save the gold */ … … 672 673 object_prep(i_ptr, lookup_kind(TV_LITE, SV_LITE_TORCH)); 673 674 i_ptr->number = (byte)rand_range(3, 7); 674 i_ptr->timeout = FUEL_TORCH / 2;675 i_ptr->timeout = FUEL_TORCH; 675 676 i_ptr->origin = ORIGIN_BIRTH; 676 677 object_aware(i_ptr); … … 757 758 758 759 /* Gold is inversely proportional to cost */ 759 p_ptr->au = p_ptr->au_birth = (50 * points_left) + 200; 760 p_ptr->au = OPT(birth_money) ? 500 : 200; 761 p_ptr->au += (50 * points_left); 762 p_ptr->au_birth = p_ptr->au; 760 763 761 764 /* Update bonuses, hp, etc. */ … … 1667 1670 1668 1671 /* Hack -- outfit the player */ 1669 player_outfit();1672 if (!OPT(birth_money)) player_outfit(); 1670 1673 1671 1674 /* Initialise the stores */ trunk/src/obj-info.c
r980 r987 362 362 { 363 363 int blows = calc_blows(o_ptr); 364 int extra_blows = 0; 365 366 if (f1 & (TR1_BLOWS)) extra_blows += o_ptr->pval; 367 blows += extra_blows; 364 365 if (f1 & (TR1_BLOWS)) blows += o_ptr->pval; 368 366 369 367 dam = ((o_ptr->ds + 1) * o_ptr->dd * 5); trunk/src/option.c
r918 r987 41 41 OPT_NONE, 42 42 OPT_NONE, 43 OPT_NONE, 43 44 }, 44 45 … … 60 61 OPT_NONE, 61 62 OPT_NONE, 63 OPT_NONE, 62 64 }, 63 65 … … 79 81 OPT_NONE, 80 82 OPT_NONE, 83 OPT_NONE, 81 84 }, 82 85 … … 85 88 OPT_birth_maximize, 86 89 OPT_birth_randarts, 90 OPT_birth_money, 87 91 OPT_birth_ai_sound, 88 92 OPT_birth_ai_smell, … … 108 112 OPT_cheat_know, 109 113 OPT_cheat_live, 114 OPT_NONE, 110 115 OPT_NONE, 111 116 OPT_NONE, … … 260 265 { "birth_maximize", "Maximize effect of race/class bonuses", TRUE }, /* 128 */ 261 266 { "birth_randarts", "Randomize some of the artifacts (alpha)", FALSE }, /* 129 */ 262 { NULL, NULL,FALSE }, /* 130 */267 { "birth_money", "Start with more money instead of equipment", FALSE }, /* 130 */ 263 268 { "birth_ironman", "Restrict the use of stairs/recall", FALSE }, /* 131 */ 264 269 { "birth_no_stores", "Restrict the use of stores/home", FALSE }, /* 132 */ trunk/src/option.h
r918 r987 16 16 */ 17 17 #define OPT_PAGE_MAX 5 18 #define OPT_PAGE_PER 1 518 #define OPT_PAGE_PER 16 19 19 20 20 /* The option data structures */ … … 86 86 #define OPT_birth_maximize (OPT_BIRTH+0) 87 87 #define OPT_birth_randarts (OPT_BIRTH+1) 88 #define OPT_birth_money (OPT_BIRTH+2) 88 89 #define OPT_birth_ironman (OPT_BIRTH+3) 89 90 #define OPT_birth_no_stores (OPT_BIRTH+4) … … 110 111 #define OPT_adult_maximize (OPT_ADULT+0) 111 112 #define OPT_adult_randarts (OPT_ADULT+1) 113 #define OPT_adult_money (OPT_ADULT+2) 112 114 #define OPT_adult_ironman (OPT_ADULT+3) 113 115 #define OPT_adult_no_stores (OPT_ADULT+4) trunk/src/store.c
r946 r987 1262 1262 if (i_ptr->tval == TV_LITE) 1263 1263 { 1264 if (i_ptr->sval == SV_LITE_TORCH) i_ptr->timeout = FUEL_TORCH; 1265 if (i_ptr->sval == SV_LITE_LANTERN) i_ptr->timeout = FUEL_LAMP / 2; 1264 if (i_ptr->sval == SV_LITE_TORCH) 1265 i_ptr->timeout = FUEL_TORCH; 1266 if (i_ptr->sval == SV_LITE_LANTERN) 1267 i_ptr->timeout = FUEL_LAMP / 2; 1266 1268 } 1267 1269 … … 1341 1343 if (object.tval == TV_LITE) 1342 1344 { 1343 if (object.sval == SV_LITE_TORCH) object.timeout = FUEL_TORCH / 2; 1344 else if (object.sval == SV_LITE_LANTERN) object.timeout = FUEL_LAMP / 2; 1345 if (object.sval == SV_LITE_TORCH) 1346 object.timeout = FUEL_TORCH; 1347 else if (object.sval == SV_LITE_LANTERN) 1348 object.timeout = FUEL_LAMP / 2; 1345 1349 } 1346 1350
