Changeset 570
- Timestamp:
- 09/17/07 07:59:22 (1 year ago)
- Files:
-
- trunk/src/files.c (modified) (2 diffs)
- trunk/src/monster1.c (modified) (1 diff)
- trunk/src/obj-info.c (modified) (1 diff)
- trunk/src/option.c (modified) (3 diffs)
- trunk/src/option.h (modified) (2 diffs)
- trunk/src/xtra3.c (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
trunk/src/files.c
r556 r570 1447 1447 { 0, 0, 0, 0 }, 1448 1448 { 1, 2, 40, 8 }, /* Name, Class, ... */ 1449 { 1, 10, 18, 8 }, /* Cur Exp, Max Exp, ... */1449 { 1, 10, 22, 8 }, /* Cur Exp, Max Exp, ... */ 1450 1450 { 26, 10, 17, 8 }, /* AC, melee, ... */ 1451 1451 { 48, 10, 24, 8 }, /* skills */ … … 1481 1481 static const char *show_depth(void) 1482 1482 { 1483 static char buffer[10]; 1483 static char buffer[13]; 1484 1484 1485 if (p_ptr->max_depth == 0) return "Town"; 1485 else if (depth_in_feet) 1486 { 1487 strnfmt(buffer, sizeof(buffer), "%d ft", p_ptr->max_depth * 50); 1488 return buffer; 1489 } 1490 else { 1491 strnfmt(buffer, sizeof(buffer), "Lev %d", p_ptr->max_depth); 1492 return buffer; 1493 } 1486 1487 strnfmt(buffer, sizeof(buffer), "%d' (L%d)", 1488 p_ptr->max_depth * 50, p_ptr->max_depth); 1489 return buffer; 1494 1490 } 1495 1491 trunk/src/monster1.c
r507 r570 942 942 text_out(" is normally found "); 943 943 944 if (depth_in_feet) 945 { 946 text_out("at depths of "); 947 text_out_c(colour, "%d", r_ptr->level * 50); 948 text_out(" feet"); 949 } 950 else 951 { 952 text_out("on dungeon level "); 953 text_out_c(colour, "%d", r_ptr->level); 954 } 944 text_out("at depths of "); 945 text_out_c(colour, "%d", r_ptr->level * 50); 946 text_out(" feet (level "); 947 text_out_c(colour, "%d", r_ptr->level); 948 text_out(")"); 955 949 956 950 old = TRUE; trunk/src/obj-info.c
r567 r570 678 678 if (o_ptr->origin_depth) 679 679 { 680 if (depth_in_feet) 681 text_out(" at a depth of %d feet", o_ptr->origin_depth * 50); 682 else 683 text_out(" on dungeon level %d", o_ptr->origin_depth); 680 text_out(" at a depth of %d feet (level %d)", 681 o_ptr->origin_depth * 50, o_ptr->origin_depth); 684 682 } 685 683 trunk/src/option.c
r561 r570 46 46 { 47 47 OPT_hp_changes_color, 48 OPT_depth_in_feet,49 48 OPT_hilite_player, 50 49 OPT_center_player, … … 58 57 OPT_view_perma_grids, 59 58 OPT_view_torch_grids, 59 OPT_NONE, 60 60 OPT_NONE, 61 61 OPT_NONE, … … 137 137 { "pickup_always", "Always pickup items", FALSE }, /* 5 */ 138 138 { "pickup_inven", "Always pickup items matching inventory", TRUE }, /* 6 */ 139 { "depth_in_feet", "Show dungeon level in feet",FALSE }, /* 7 */139 { NULL, NULL, FALSE }, /* 7 */ 140 140 { NULL, NULL, FALSE }, /* 8 */ 141 141 { NULL, NULL, FALSE }, /* 9 */ trunk/src/option.h
r557 r570 48 48 #define OPT_pickup_always 5 49 49 #define OPT_pickup_inven 6 50 #define OPT_depth_in_feet 751 50 52 51 #define OPT_show_labels 10 … … 145 144 #define pickup_always OPT(pickup_always) 146 145 #define pickup_inven OPT(pickup_inven) 147 #define depth_in_feet OPT(depth_in_feet)148 146 #define show_labels OPT(show_labels) 149 147 #define ring_bell OPT(ring_bell) trunk/src/xtra3.c
r544 r570 465 465 my_strcpy(depths, "Town", sizeof(depths)); 466 466 } 467 else if (depth_in_feet)468 {469 strnfmt(depths, sizeof(depths), "%d ft", p_ptr->depth * 50);470 }471 467 else 472 468 { 473 strnfmt(depths, sizeof(depths), "Lev %d", p_ptr->depth); 469 strnfmt(depths, sizeof(depths), "%d' (L%d)", 470 p_ptr->depth * 50, p_ptr->depth); 474 471 } 475 472
