High XP attack CA: remove a debug message

Also remove a related message from the test scenario.
This commit is contained in:
mattsc 2016-09-03 16:47:15 -07:00
parent af0f49ae9a
commit f76e2d0c59
2 changed files with 1 additions and 8 deletions

View file

@ -288,9 +288,6 @@ function ca_attack_highxp:execution(cfg, data)
local attacker = wesnoth.get_unit(data.XP_attack.src.x, data.XP_attack.src.y)
local defender = wesnoth.get_unit(data.XP_attack.target.x, data.XP_attack.target.y)
-- This line will be removed for the final version, of course:
wesnoth.fire("message", { speaker = attacker.id, message = "Executing high XP attack, ca_score = " .. data.XP_attack.ca_score })
AH.movefull_outofway_stopunit(ai, attacker, data.XP_attack.dst.x, data.XP_attack.dst.y)
if (not attacker) or (not attacker.valid) then return end

View file

@ -114,11 +114,7 @@
speaker=narrator
image="wesnoth-icon.png"
caption="Note"
message="This is a test scenario for a new AI algorithm that attacks units close to leveling. A few test cases are already set up on the map, but it is really expected that you add more units and/or change hitpoints and experience using debug commands to try out other situations.
<span color='#00D000'>Important:</span> To make it clear when the new candidate action attacks, as opposed to the default AI, each unit attacking with this CA announces so before it does. [That will be turned off later, of course.] The unit will also tell you if the CA score is 100,010, meaning it attacks <i>before</i> the default AI, or 99,990 in which case it lets (has let, really) the default AI attack first. All attacks not preceded by such a message are done by the default AI.
<span color='#D00000'>This AI works only in Wesnoth 1.13.5 and later.</span>"
message="This is a test scenario for a new AI algorithm that attacks units close to leveling. A few test cases are already set up on the map, but it is really expected that you add more units and/or change hitpoints and experience using debug commands to try out other situations."
[/message]
[message]