Changeset 980
- Timestamp:
- 07/05/08 11:26:27 (3 months ago)
- Files:
-
- trunk/src/obj-info.c (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
trunk/src/obj-info.c
r978 r980 380 380 } 381 381 382 text_out("With this weapon, you would currently get ");383 text_out_c(TERM_L_GREEN, format("%d ", blows));384 if (blows > 1)382 text_out("With this weapon, you would currently get "); 383 text_out_c(TERM_L_GREEN, format("%d ", blows)); 384 if (blows > 1) 385 385 text_out("blows per round. Each blow will do an average damage of "); 386 else386 else 387 387 text_out("blow per round, averaging a damage of "); 388 388 } … … 421 421 text_out_c(TERM_L_RED, "%d", 0); 422 422 else if (total_dam % 10) 423 text_out_c(TERM_L_GREEN, "%d.%d", 424 total_dam / 10, total_dam % 10);423 text_out_c(TERM_L_GREEN, "%d.%d", 424 total_dam / 10, total_dam % 10); 425 425 else 426 426 text_out_c(TERM_L_GREEN, "%d", total_dam / 10); … … 435 435 total_dam = dam + xtra_dam; 436 436 437 if (total_dam <= 0)437 if (total_dam <= 0) 438 438 text_out_c(TERM_L_RED, "%d", 0); 439 439 else if (total_dam % 10) 440 text_out_c(TERM_L_GREEN, "%d.%d", 441 total_dam / 10, total_dam % 10);442 else440 text_out_c(TERM_L_GREEN, "%d.%d", 441 total_dam / 10, total_dam % 10); 442 else 443 443 text_out_c(TERM_L_GREEN, "%d", total_dam / 10); 444 444
