From 9f5aa410847f7f2134aeb039f1fb22e3dd64954d Mon Sep 17 00:00:00 2001 From: Ron Koenderink Date: Sun, 5 Feb 2006 17:37:58 +0000 Subject: [PATCH] (vers): Add collateral damage matrix to version report. Add unit_damage and collateral_dam to the collateral damage matrix. Move people_damage into matrix. --- src/lib/commands/vers.c | 19 +++++++++++++++++-- 1 file changed, 17 insertions(+), 2 deletions(-) diff --git a/src/lib/commands/vers.c b/src/lib/commands/vers.c index 5f39cdef..aaf1ae4b 100644 --- a/src/lib/commands/vers.c +++ b/src/lib/commands/vers.c @@ -179,8 +179,6 @@ vers(void) } pr("Fire ranges are scaled by %.2f.\n", fire_range_factor); - pr("Damage to people (civ, uw and mil) is scaled by %0.2f.\n", - people_damage); pr("Flak damage is scaled by %0.2f.\n", flakscale); pr("Torpedo damage is 2d%d+%d.\n", torpedo_damage, torpedo_damage - 2); pr("The attack factor for para & assault troops is %0.2f.\n", @@ -190,6 +188,23 @@ vers(void) pr("Fallout decays by %.0f%% per update\n", 100.0 - (decay_per_etu + 6.0) * fallout_spread * MIN(24, etu_per_update) * 100.0); pr("\n"); + pr ("Initial Damage\t\t\tCollateral Damage\n"); + pr("\t\tSector\tPeople\tMater.\tEffic.\tShips\tPlanes\tLand Units\n"); + pr("Sector\t\t --\t%3.0f%%\t100%%\t100%%\t 0%%\t%3.0f%%\t%3.0f%%\n", + people_damage * 100.0, unit_damage / 0.07, unit_damage * 100.0); + pr("People\t\t%3.0f%%\t --\t --\t --\t --\t --\t --\n", + collateral_dam * 100.0); + pr("Materials\t%3.0f%%\t --\t --\t --\t --\t --\t --\n", + collateral_dam * 100.0); + pr("Efficiency\t%3.0f%%\t --\t --\t --\t --\t --\t --\n", + collateral_dam * 100.0); + pr("Ships\t\t%3.0f%%\t100%%\t100%%\t100%%\t --\t 0%%\t 0%%\n", + collateral_dam * 100.0); + pr("Planes\t\t%3.0f%%\t 0%%\t 0%%\t 0%%\t --\t --\t --\n", + collateral_dam * 100.0); + pr("Land units\t%3.0f%%\t 0%%\t 0%%\t 0%%\t --\t 0%%\t 0%%\n", + collateral_dam * 100.0); + pr("\n"); pr("You can have at most %d BTUs.\n", max_btus); pr("You are disconnected after %d minutes of idle time.\n", max_idle); pr("\nOptions enabled in this game:\n ");