[Commits] [wesnoth/wesnoth] 16d354: simulate_combat_fake(): don't fill empty HP chance...
GitHub
noreply at github.com
Thu May 1 02:12:01 UTC 2014
Branch: refs/heads/1.12
Home: https://github.com/wesnoth/wesnoth
Commit: 16d354604fabe941b6a110725d7db02c07ad008f
https://github.com/wesnoth/wesnoth/commit/16d354604fabe941b6a110725d7db02c07ad008f
Author: mattsc <mattsc000 at gmail.com>
Date: 2014-04-30 (Wed, 30 Apr 2014)
Changed paths:
M data/ai/lua/battle_calcs.lua
Log Message:
-----------
simulate_combat_fake(): don't fill empty HP chances with zeros
That’s what wesnoth.simulate_combat() does, but is different from the
other functions in battle_calcs. Only hp_chance[0] needs to be set,
even if it is zero.
Commit: 2f4aeba970a645e2bdd35e6a336f5c69ffc04fbd
https://github.com/wesnoth/wesnoth/commit/2f4aeba970a645e2bdd35e6a336f5c69ffc04fbd
Author: mattsc <mattsc000 at gmail.com>
Date: 2014-04-30 (Wed, 30 Apr 2014)
Changed paths:
M data/ai/lua/battle_calcs.lua
Log Message:
-----------
attack_combo_stats(): also cache intermediate battle outcomes
Speeds up some calculations significantly.
Commit: 23b3073baec8111713f96de79a2b7c8db219a9ec
https://github.com/wesnoth/wesnoth/commit/23b3073baec8111713f96de79a2b7c8db219a9ec
Author: mattsc <mattsc000 at gmail.com>
Date: 2014-04-30 (Wed, 30 Apr 2014)
Changed paths:
M data/ai/lua/battle_calcs.lua
Log Message:
-----------
battle_calcs: do not use variance of attack in attack rating
This was an idea we tried so that we’d start with the most uncertain
attack first, but it did not work very well.
Keep the code for now, just comment it out.
Commit: 25c9f8698810138831fc6c0b65e3afad10effc86
https://github.com/wesnoth/wesnoth/commit/25c9f8698810138831fc6c0b65e3afad10effc86
Author: mattsc <mattsc000 at gmail.com>
Date: 2014-04-30 (Wed, 30 Apr 2014)
Changed paths:
M data/ai/lua/battle_calcs.lua
Log Message:
-----------
battle_calcs.attack_rating(): overhaul attack rating system
This was long overdue. The return value is now much closer to
something describing the actual gain/loss (roughly) in units of gold.
Compare: https://github.com/wesnoth/wesnoth/compare/b70c4c078954...25c9f8698810
More information about the Commits
mailing list