empserver/src/lib/subs
Markus Armbruster 2ecc85b541 (attack_val, defense_val): These functions overestimate unit strength,
because they ignore three facts.  Firstly, mil casualties decrease
strength linearly, while unit casualties decrease it quadratically
(unit strength scales with mil * eff).  Secondly, casualties decrease
strength proportional to the combat multiplier, hence twice as much
mil are more powerful than double multiplier.  Thirdly, units break
and retreat.  Change the estimate from mil * mult to mil * sqrt(mult).
Improves things in simulations, hope it works out in practice as well.
Closes #682571.
2006-06-15 19:05:17 +00:00
..
aircombat.c (satdisp, satdisp_sect, satdisp_units): Split satdisp() into 2006-06-14 17:38:16 +00:00
askyn.c s_char purge directed by compiler warnings. 2006-04-29 06:41:45 +00:00
aswplnsubs.c Update known contributors comment. 2006-02-24 21:35:27 +00:00
attsub.c (att_reacting_units, attack_val, defense_val, intelligence_report): 2006-06-15 18:55:15 +00:00
bigmap.c Remove dead code. 2006-04-30 08:43:28 +00:00
border.c Purge the register keyword. 2006-05-21 13:18:57 +00:00
bsanct.c (bsanct): Use snxtitem_all() instead of snxtitem(). The latter uses 2006-03-26 19:21:13 +00:00
caploss.c s_char purge directed by compiler warnings. 2006-04-29 06:41:45 +00:00
chkmoney.c Line breaks and other formatting issues. No functional changes. 2006-05-21 13:05:24 +00:00
cnumb.c COPYING duplicates information from README. Remove. Move GPL from 2006-01-21 19:48:41 +00:00
coastal.c (coastal_sea_to_land, coastal_land_to_sea): Remove unused parameter 2006-04-30 08:46:14 +00:00
control.c Comments, whitespace. 2006-06-02 05:49:29 +00:00
detonate.c (add, plane_bomb, pinflak_planedamage, doship, dounit, doplane, laun) 2006-05-27 19:25:12 +00:00
disloan.c COPYING duplicates information from README. Remove. Move GPL from 2006-01-21 19:48:41 +00:00
distrea.c Purge the register keyword. 2006-05-21 13:18:57 +00:00
fileinit.c Finally merge the journal patch: 2006-06-08 20:11:26 +00:00
fortdef.c (effrange, torprange, fortrange): New. 2006-05-14 14:06:00 +00:00
getbit.c Purge the register keyword. 2006-05-21 13:18:57 +00:00
getele.c Coding style, comments, spelling... 2006-05-26 18:46:50 +00:00
land.c Break lines more tastefully. 2006-05-14 07:52:20 +00:00
landgun.c Update known contributors comment. 2006-05-29 21:23:33 +00:00
list.c Comments, whitespace. 2006-06-02 05:49:29 +00:00
lndsub.c (attack_val, defense_val): These functions overestimate unit strength, 2006-06-15 19:05:17 +00:00
lostsub.c Normalize long int and short int to just long and short. 2006-04-30 12:05:23 +00:00
mission.c Comments, whitespace. 2006-06-02 05:49:29 +00:00
move.c 4.0.2 made land unit mobility costs differ significantly from normal 2006-06-04 17:41:12 +00:00
mslsub.c (add, plane_bomb, pinflak_planedamage, doship, dounit, doplane, laun) 2006-05-27 19:25:12 +00:00
mtch.c Purge the register keyword. 2006-05-21 13:18:57 +00:00
natarg.c COPYING duplicates information from README. Remove. Move GPL from 2006-01-21 19:48:41 +00:00
neigh.c Purge the register keyword. 2006-05-21 13:18:57 +00:00
nreport.c Purge the register keyword. 2006-05-21 13:18:57 +00:00
nstr.c Symbolic names for table entries in conditionals, closes #928376: 2006-06-01 18:48:42 +00:00
nuke.c Update known contributors comment. 2006-05-29 21:23:33 +00:00
nxtitem.c (CANT_REACH): New. Use it instead of CANT_HAPPEN() where possible. 2006-04-17 17:36:07 +00:00
nxtsct.c COPYING duplicates information from README. Remove. Move GPL from 2006-01-21 19:48:41 +00:00
paths.c (getpath): Remove unused local variables. 2006-06-09 00:24:06 +00:00
plane.c (add, plane_bomb, pinflak_planedamage, doship, dounit, doplane, laun) 2006-05-27 19:25:12 +00:00
plnsub.c Line breaks and other formatting issues. No functional changes. 2006-05-21 13:05:24 +00:00
pr.c (prmptrd, uprmptrd): Oops on null prompt. getstarg() is sometimes 2006-05-23 06:04:55 +00:00
radmap.c (s_char): Remove. Use signed char for small integers, plain char for 2006-04-29 16:25:17 +00:00
rej.c Line breaks and other formatting issues. No functional changes. 2006-05-21 13:05:24 +00:00
retreat.c (lnd_hit_mine): Remove silly use of double. Rounds fractional damage 2006-06-15 18:58:47 +00:00
sarg.c Update known contributors comment. 2006-02-24 21:35:27 +00:00
satmap.c (satmap, satdisp_units): Don't show landspies. 2006-06-14 17:56:26 +00:00
sect.c DEFENSE_INFRA was implemented in an odd way: sct_defense was used 2006-05-20 11:53:20 +00:00
ship.c (add, plane_bomb, pinflak_planedamage, doship, dounit, doplane, laun) 2006-05-27 19:25:12 +00:00
show.c (P_SHELL, P_GUN, P_PETROL, P_IRON, P_DUST, P_BAR, P_FOOD, P_OIL) 2006-06-05 17:44:25 +00:00
shpsub.c (shp_sweep): New parameter takemob. Charge mobility only if it's 2006-06-11 18:09:09 +00:00
snxtitem.c Change encoding of `not in any group' from space to 0, because that's 2006-05-27 13:44:18 +00:00
snxtsct.c (snxtsct): Iteration order for `*' disclosed the real origin. Fix. 2006-04-20 19:06:50 +00:00
supply.c 4.0.2 made land unit mobility costs differ significantly from normal 2006-06-04 17:41:12 +00:00
takeover.c Change encoding of `not in any group' from space to 0, because that's 2006-05-27 13:44:18 +00:00
trdsub.c Line breaks and other formatting issues. No functional changes. 2006-05-21 13:05:24 +00:00
trechk.c Purge the register keyword. 2006-05-21 13:18:57 +00:00
whatitem.c COPYING duplicates information from README. Remove. Move GPL from 2006-01-21 19:48:41 +00:00
wu.c COPYING duplicates information from README. Remove. Move GPL from 2006-01-21 19:48:41 +00:00