Added in female archers
|
@ -1,8 +1,8 @@
|
|||
[unit]
|
||||
id=Elvish Archer
|
||||
name= _ "Elvish Archer"
|
||||
name=_ "Elvish Archer"
|
||||
race=elf
|
||||
gender=male
|
||||
gender=male,female
|
||||
image=elvish-archer.png
|
||||
image_defensive=elvish-archer-defend.png
|
||||
image_defensive_long=elvish-archer-bow-defend.png
|
||||
|
@ -15,7 +15,7 @@ alignment=neutral
|
|||
advanceto=Elvish Ranger,Elvish Marksman
|
||||
cost=18
|
||||
usage=archer
|
||||
unit_description= _ "Elvish Archers are trained from youth in archery, and so skilled in long-range combat. Able to fire many arrows quickly and accurately, these Archers make up a large portion of the Elvish military."
|
||||
unit_description="Elvish Archers are trained from youth in archery, and so skilled in long-range combat. Able to fire many arrows quickly and accurately, these Archers make up a large portion of the Elvish military."
|
||||
get_hit_sound=groan.wav
|
||||
[attack]
|
||||
name=sword
|
||||
|
@ -75,4 +75,84 @@ get_hit_sound=groan.wav
|
|||
image_diagonal=projectiles/missile-ne.png
|
||||
[/missile_frame]
|
||||
[/attack]
|
||||
name=Elvish Archer
|
||||
|
||||
[female]
|
||||
id=Elvish Archer
|
||||
name=_ "Elvish Archer"
|
||||
race=elf
|
||||
gender=female
|
||||
image=elvish-archer+female.png
|
||||
image_defensive=elvish-archer+female-defend.png
|
||||
image_defensive_long=elvish-archer+female-bow-defend.png
|
||||
hitpoints=29
|
||||
movement_type=woodland
|
||||
movement=6
|
||||
experience=44
|
||||
level=1
|
||||
alignment=neutral
|
||||
advanceto=Elvish Ranger,Elvish Marksman
|
||||
cost=18
|
||||
usage=archer
|
||||
unit_description="Elvish Archers are trained from youth in archery, and so skilled in long-range combat. Able to fire many arrows quickly and accurately, these Archers make up a large portion of the Elvish military."
|
||||
get_hit_sound=female-hit.wav
|
||||
[attack]
|
||||
name=sword
|
||||
type=blade
|
||||
[frame]
|
||||
begin=-100
|
||||
end=100
|
||||
image=elvish-archer+female-attack.png
|
||||
[/frame]
|
||||
|
||||
[sound]
|
||||
time=-250
|
||||
sound=sword-swish.wav
|
||||
[/sound]
|
||||
range=short
|
||||
damage=5
|
||||
number=2
|
||||
[/attack]
|
||||
[attack]
|
||||
name=bow
|
||||
type=pierce
|
||||
range=long
|
||||
damage=5
|
||||
number=4
|
||||
|
||||
[sound]
|
||||
time=-100
|
||||
sound=firearrow.wav
|
||||
[/sound]
|
||||
|
||||
[sound]
|
||||
time=0
|
||||
sound=arrow-hit.wav
|
||||
sound_miss=arrow-miss.wav
|
||||
[/sound]
|
||||
|
||||
[frame]
|
||||
begin=-400
|
||||
end=-250
|
||||
image=elvish-archer+female-attack1.png
|
||||
[/frame]
|
||||
[frame]
|
||||
begin=-250
|
||||
end=-150
|
||||
image=elvish-archer+female-attack2.png
|
||||
[/frame]
|
||||
[frame]
|
||||
begin=-150
|
||||
end=0
|
||||
image=elvish-archer+female-attack3.png
|
||||
[/frame]
|
||||
|
||||
[missile_frame]
|
||||
begin=-100
|
||||
end=0
|
||||
image=projectiles/missile-n.png
|
||||
image_diagonal=projectiles/missile-ne.png
|
||||
[/missile_frame]
|
||||
[/attack]
|
||||
[/female]
|
||||
[/unit]
|
||||
|
|
|
@ -1,7 +1,8 @@
|
|||
[unit]
|
||||
id=Elvish Avenger
|
||||
name= _ "Elvish Avenger"
|
||||
name=_ "Elvish Avenger"
|
||||
race=elf
|
||||
gender=male,female
|
||||
image=elvish-avenger.png
|
||||
image_long=elvish-avenger-bow.png
|
||||
image_defensive=elvish-avenger-defend.png
|
||||
|
@ -16,7 +17,7 @@ advanceto=null
|
|||
cost=80
|
||||
ability=ambush
|
||||
usage=mixed fighter
|
||||
unit_description= _ "Elvish Avengers are extremely skillful and extremely quick, powerful in all forms of combat. Avengers are considered the best of all woodsmen in Wesnoth, and can ambush their foes in the forest, because they cannot be seen in the woods until just after they have attacked."
|
||||
unit_description="Elvish Avengers are extremely skillful and extremely quick, powerful in all forms of combat. Avengers are considered the best of all woodsmen in Wesnoth, and can ambush their foes in the forest, because they cannot be seen in the woods until just after they have attacked."
|
||||
get_hit_sound=groan.wav
|
||||
[attack]
|
||||
name=sword
|
||||
|
@ -69,4 +70,78 @@ get_hit_sound=groan.wav
|
|||
image_diagonal=projectiles/missile-ne.png
|
||||
[/missile_frame]
|
||||
[/attack]
|
||||
|
||||
[female]
|
||||
id=Elvish Avenger
|
||||
name=_ "Elvish Avenger"
|
||||
race=elf
|
||||
gender=female
|
||||
image=elvish-avenger+female.png
|
||||
image_long=elvish-avenger+female-bow.png
|
||||
image_defensive=elvish-avenger+female-defend.png
|
||||
image_defensive_long=elvish-avenger+female-bow-defend.png
|
||||
hitpoints=60
|
||||
movement_type=woodland
|
||||
movement=6
|
||||
experience=500
|
||||
level=3
|
||||
alignment=neutral
|
||||
advanceto=null
|
||||
cost=80
|
||||
ability=ambush
|
||||
usage=mixed fighter
|
||||
unit_description="Elvish Avengers are extremely skillful and extremely quick, powerful in all forms of combat. Avengers are considered the best of all woodsmen in Wesnoth, and can ambush their foes in the forest, because they cannot be seen in the woods until just after they have attacked."
|
||||
get_hit_sound=female-hit.wav
|
||||
[attack]
|
||||
name=sword
|
||||
type=blade
|
||||
range=short
|
||||
damage=10
|
||||
number=4
|
||||
[frame]
|
||||
begin=-100
|
||||
end=100
|
||||
image=elvish-avenger+female-attack.png
|
||||
[/frame]
|
||||
[sound]
|
||||
time=-250
|
||||
sound=sword-swish.wav
|
||||
[/sound]
|
||||
[/attack]
|
||||
[attack]
|
||||
name=bow
|
||||
type=pierce
|
||||
range=long
|
||||
damage=11
|
||||
number=4
|
||||
[sound]
|
||||
time=-100
|
||||
sound=firearrow.wav
|
||||
[/sound]
|
||||
|
||||
[sound]
|
||||
time=0
|
||||
sound=arrow-hit.wav
|
||||
sound_miss=arrow-miss.wav
|
||||
[/sound]
|
||||
|
||||
[frame]
|
||||
begin=-450
|
||||
end=-300
|
||||
image=elvish-avenger+female-attack1.png
|
||||
[/frame]
|
||||
[frame]
|
||||
begin=-300
|
||||
end=0
|
||||
image=elvish-avenger+female-attack2.png
|
||||
[/frame]
|
||||
|
||||
[missile_frame]
|
||||
begin=-100
|
||||
end=0
|
||||
image=projectiles/missile-n.png
|
||||
image_diagonal=projectiles/missile-ne.png
|
||||
[/missile_frame]
|
||||
[/attack]
|
||||
[/female]
|
||||
[/unit]
|
||||
|
|
|
@ -1,7 +1,8 @@
|
|||
[unit]
|
||||
id=Elvish Marksman
|
||||
name= _ "Elvish Marksman"
|
||||
name=_ "Elvish Marksman"
|
||||
race=elf
|
||||
gender=male,female
|
||||
image=elvish-marksman.png
|
||||
image_defensive=elvish-marksman-defend.png
|
||||
image_defensive_long=elvish-marksman-bow-defend.png
|
||||
|
@ -14,7 +15,7 @@ alignment=neutral
|
|||
advanceto=Elvish Sharpshooter
|
||||
cost=60
|
||||
usage=archer
|
||||
unit_description= _ "Elvish Marksman are expert in use of the bow. Their skill guarantees them a 60% chance to hit enemies, even those hidden in difficult terrain. This great skill with the bow compensates for their lack of skill in melee combat and lesser speed."
|
||||
unit_description="Elvish Marksman are expert in use of the bow. Their skill guarantees them a 60% chance to hit enemies, even those hidden in difficult terrain. This great skill with the bow compensates for their lack of skill in melee combat and lesser speed."
|
||||
get_hit_sound=groan.wav
|
||||
[attack]
|
||||
name=sword
|
||||
|
@ -73,4 +74,83 @@ get_hit_sound=groan.wav
|
|||
image_diagonal=projectiles/missile-ne.png
|
||||
[/missile_frame]
|
||||
[/attack]
|
||||
|
||||
[female]
|
||||
id=Elvish Marksman
|
||||
name=_ "Elvish Marksman"
|
||||
name=Elvish Marksman
|
||||
race=elf
|
||||
gender=female
|
||||
image=elvish-marksman+female.png
|
||||
image_defensive=elvish-marksman+female-defend.png
|
||||
image_defensive_long=elvish-marksman+female-bow-defend.png
|
||||
hitpoints=37
|
||||
movement_type=woodland
|
||||
movement=6
|
||||
experience=90
|
||||
level=2
|
||||
alignment=neutral
|
||||
advanceto=Elvish Sharpshooter
|
||||
cost=60
|
||||
usage=archer
|
||||
unit_description="Elvish Marksman are expert in use of the bow. Their skill guarantees them a 60% chance to hit enemies, even those hidden in difficult terrain. This great skill with the bow compensates for their lack of skill in melee combat and lesser speed."
|
||||
get_hit_sound=female-hit.wav
|
||||
[attack]
|
||||
name=sword
|
||||
type=blade
|
||||
range=short
|
||||
damage=6
|
||||
number=2
|
||||
[frame]
|
||||
begin=-100
|
||||
end=100
|
||||
image=elvish-marksman+female-attack.png
|
||||
[/frame]
|
||||
[sound]
|
||||
time=-250
|
||||
sound=sword-swish.wav
|
||||
[/sound]
|
||||
[/attack]
|
||||
[attack]
|
||||
name=longbow
|
||||
type=pierce
|
||||
special=marksman
|
||||
range=long
|
||||
damage=9
|
||||
number=4
|
||||
[frame]
|
||||
begin=-400
|
||||
end=-250
|
||||
image=elvish-marksman+female-attack1.png
|
||||
[/frame]
|
||||
[frame]
|
||||
begin=-250
|
||||
end=-150
|
||||
image=elvish-marksman+female-attack2.png
|
||||
[/frame]
|
||||
[frame]
|
||||
begin=-150
|
||||
end=0
|
||||
image=elvish-marksman+female-attack3.png
|
||||
[/frame]
|
||||
|
||||
[sound]
|
||||
time=-100
|
||||
sound=firearrow.wav
|
||||
[/sound]
|
||||
|
||||
[sound]
|
||||
time=0
|
||||
sound=arrow-hit.wav
|
||||
sound_miss=arrow-miss.wav
|
||||
[/sound]
|
||||
|
||||
[missile_frame]
|
||||
begin=-100
|
||||
end=0
|
||||
image=projectiles/missile-n.png
|
||||
image_diagonal=projectiles/missile-ne.png
|
||||
[/missile_frame]
|
||||
[/attack]
|
||||
[/female]
|
||||
[/unit]
|
||||
|
|
|
@ -1,7 +1,8 @@
|
|||
[unit]
|
||||
name=_ "Elvish Ranger"
|
||||
id=Elvish Ranger
|
||||
name= _ "Elvish Ranger"
|
||||
race=elf
|
||||
gender=male,female
|
||||
image=elvish-ranger.png
|
||||
image_defensive=elvish-ranger-defend.png
|
||||
hitpoints=42
|
||||
|
@ -14,7 +15,7 @@ advanceto=Elvish Avenger
|
|||
cost=40
|
||||
usage=mixed fighter
|
||||
ability=ambush
|
||||
unit_description= _ "Elvish Rangers are quick and powerful. Skilled in both short- and long-range combat, Rangers are truly all-round fighters. The best of all woodsmen, Rangers cannot be seen by enemies while they are in forest, unless they have just made an attack, or there are enemies adjacent to them."
|
||||
unit_description="Elvish Rangers are quick and powerful. Skilled in both short- and long-range combat, Rangers are truly all-round fighters. The best of all woodsmen, Rangers cannot be seen by enemies while they are in forest, unless they have just made an attack, or there are enemies adjacent to them."
|
||||
get_hit_sound=groan.wav
|
||||
[attack]
|
||||
name=sword
|
||||
|
@ -73,4 +74,82 @@ get_hit_sound=groan.wav
|
|||
image_diagonal=projectiles/missile-ne.png
|
||||
[/missile_frame]
|
||||
[/attack]
|
||||
|
||||
[female]
|
||||
name=_ "Elvish Ranger"
|
||||
id=Elvish Ranger
|
||||
race=elf
|
||||
gender=female
|
||||
image=elvish-ranger+female.png
|
||||
image_defensive=elvish-ranger+female-defend.png
|
||||
hitpoints=42
|
||||
movement_type=woodland
|
||||
movement=6
|
||||
experience=80
|
||||
level=2
|
||||
alignment=neutral
|
||||
advanceto=Elvish Avenger
|
||||
cost=40
|
||||
usage=mixed fighter
|
||||
ability=ambush
|
||||
unit_description="Elvish Rangers are quick and powerful. Skilled in both short- and long-range combat, Rangers are truly all-round fighters. The best of all woodsmen, Rangers cannot be seen by enemies while they are in forest, unless they have just made an attack, or there are enemies adjacent to them."
|
||||
get_hit_sound=female-hit.wav
|
||||
[attack]
|
||||
name=sword
|
||||
type=blade
|
||||
range=short
|
||||
damage=7
|
||||
number=4
|
||||
[frame]
|
||||
begin=-100
|
||||
end=100
|
||||
image=elvish-ranger+female-attack.png
|
||||
|
||||
[/frame]
|
||||
[sound]
|
||||
time=-250
|
||||
sound=sword-swish.wav
|
||||
[/sound]
|
||||
[/attack]
|
||||
[attack]
|
||||
name=bow
|
||||
type=pierce
|
||||
range=long
|
||||
damage=7
|
||||
number=4
|
||||
[sound]
|
||||
time=-100
|
||||
sound=firearrow.wav
|
||||
[/sound]
|
||||
|
||||
[sound]
|
||||
time=0
|
||||
sound=arrow-hit.wav
|
||||
sound_miss=arrow-miss.wav
|
||||
[/sound]
|
||||
|
||||
[frame]
|
||||
begin=-450
|
||||
end=-300
|
||||
image=elvish-ranger+female-attack1.png
|
||||
[/frame]
|
||||
[frame]
|
||||
begin=-300
|
||||
end=-200
|
||||
image=elvish-ranger+female-attack2.png
|
||||
[/frame]
|
||||
[frame]
|
||||
begin=-200
|
||||
end=0
|
||||
image=elvish-ranger+female-attack3.png
|
||||
[/frame]
|
||||
|
||||
[missile_frame]
|
||||
begin=-100
|
||||
end=0
|
||||
image=projectiles/missile-n.png
|
||||
image_diagonal=projectiles/missile-ne.png
|
||||
[/missile_frame]
|
||||
[/attack]
|
||||
[/female]
|
||||
[/unit]
|
||||
|
|
|
@ -1,9 +1,11 @@
|
|||
[unit]
|
||||
id=Elvish Sharpshooter
|
||||
name= _ "Elvish Sharpshooter"
|
||||
name=_ "Elvish Sharpshooter"
|
||||
race=elf
|
||||
gender=male,female
|
||||
image=elvish-sharpshooter.png
|
||||
image_defensive=elvish-sharpshooter-defend.png
|
||||
image_defensive_long=elvish-sharpshooter-bow-defend.png
|
||||
hitpoints=45
|
||||
movement_type=woodland
|
||||
movement=6
|
||||
|
@ -13,7 +15,7 @@ alignment=neutral
|
|||
advanceto=null
|
||||
cost=90
|
||||
usage=archer
|
||||
unit_description= _ "The most elite archers in all of Wesnoth, Elvish Sharpshooters are incredibly accurate, guaranteed a 60% chance to hit when attacking, even when firing very quickly. Sharpshooters are excellent at picking off entrenched enemies."
|
||||
unit_description="The most elite archers in all of Wesnoth, Elvish Sharpshooters are incredibly accurate, guaranteed a 60% chance to hit when attacking, even when firing very quickly. Sharpshooters are excellent at picking off entrenched enemies."
|
||||
get_hit_sound=groan.wav
|
||||
[attack]
|
||||
name=sword
|
||||
|
@ -74,4 +76,84 @@ get_hit_sound=groan.wav
|
|||
image_diagonal=projectiles/missile-ne.png
|
||||
[/missile_frame]
|
||||
[/attack]
|
||||
|
||||
[female]
|
||||
id=Elvish Sharpshooter
|
||||
name=_ "Elvish Sharpshooter"
|
||||
race=elf
|
||||
gender=female
|
||||
image=elvish-sharpshooter+female.png
|
||||
image_defensive=elvish-sharpshooter+female-defend.png
|
||||
image_defensive_long=elvish-sharpshooter+female-bow-defend.png
|
||||
hitpoints=45
|
||||
movement_type=woodland
|
||||
movement=6
|
||||
experience=500
|
||||
level=3
|
||||
alignment=neutral
|
||||
advanceto=null
|
||||
cost=90
|
||||
usage=archer
|
||||
unit_description="The most elite archers in all of Wesnoth, Elvish Sharpshooters are incredibly accurate, guaranteed a 60% chance to hit when attacking, even when firing very quickly. Sharpshooters are excellent at picking off entrenched enemies."
|
||||
get_hit_sound=female-hit.wav
|
||||
[attack]
|
||||
name=sword
|
||||
type=blade
|
||||
range=short
|
||||
damage=7
|
||||
number=2
|
||||
[frame]
|
||||
begin=-100
|
||||
end=100
|
||||
image=elvish-sharpshooter+female-attack.png
|
||||
|
||||
[/frame]
|
||||
[sound]
|
||||
time=-250
|
||||
sound=sword-swish.wav
|
||||
[/sound]
|
||||
[/attack]
|
||||
[attack]
|
||||
name=longbow
|
||||
type=pierce
|
||||
special=marksman
|
||||
range=long
|
||||
damage=10
|
||||
number=5
|
||||
[frame]
|
||||
begin=-450
|
||||
end=-300
|
||||
image=elvish-sharpshooter+female-attack1.png
|
||||
[/frame]
|
||||
[frame]
|
||||
begin=-300
|
||||
end=-200
|
||||
image=elvish-sharpshooter+female-attack2.png
|
||||
[/frame]
|
||||
|
||||
[frame]
|
||||
begin=-200
|
||||
end=0
|
||||
image=elvish-sharpshooter+female-attack3.png
|
||||
[/frame]
|
||||
|
||||
[sound]
|
||||
time=-100
|
||||
sound=firearrow.wav
|
||||
[/sound]
|
||||
|
||||
[sound]
|
||||
time=0
|
||||
sound=arrow-hit.wav
|
||||
sound_miss=arrow-miss.wav
|
||||
[/sound]
|
||||
|
||||
[missile_frame]
|
||||
begin=-100
|
||||
end=0
|
||||
image=projectiles/missile-n.png
|
||||
image_diagonal=projectiles/missile-ne.png
|
||||
[/missile_frame]
|
||||
[/attack]
|
||||
[/female]
|
||||
[/unit]
|
||||
|
|
BIN
images/elvish-archer+female-attack.png
Normal file
After Width: | Height: | Size: 2.4 KiB |
BIN
images/elvish-archer+female-attack1.png
Normal file
After Width: | Height: | Size: 2.1 KiB |
BIN
images/elvish-archer+female-attack2.png
Normal file
After Width: | Height: | Size: 2.2 KiB |
BIN
images/elvish-archer+female-attack3.png
Normal file
After Width: | Height: | Size: 2.3 KiB |
BIN
images/elvish-archer+female-bow-defend.png
Normal file
After Width: | Height: | Size: 2.3 KiB |
BIN
images/elvish-archer+female-defend.png
Normal file
After Width: | Height: | Size: 2 KiB |
BIN
images/elvish-archer+female.png
Normal file
After Width: | Height: | Size: 2.2 KiB |
BIN
images/elvish-avenger+female-attack.png
Normal file
After Width: | Height: | Size: 2.8 KiB |
BIN
images/elvish-avenger+female-attack1.png
Normal file
After Width: | Height: | Size: 3 KiB |
BIN
images/elvish-avenger+female-attack2.png
Normal file
After Width: | Height: | Size: 3.2 KiB |
BIN
images/elvish-avenger+female-bow-defend.png
Normal file
After Width: | Height: | Size: 3 KiB |
BIN
images/elvish-avenger+female-bow.png
Normal file
After Width: | Height: | Size: 2.8 KiB |
BIN
images/elvish-avenger+female-defend.png
Normal file
After Width: | Height: | Size: 2.6 KiB |
BIN
images/elvish-avenger+female.png
Normal file
After Width: | Height: | Size: 2.9 KiB |
BIN
images/elvish-marksman+female-attack.png
Normal file
After Width: | Height: | Size: 2.7 KiB |
BIN
images/elvish-marksman+female-attack1.png
Normal file
After Width: | Height: | Size: 2.5 KiB |
BIN
images/elvish-marksman+female-attack2.png
Normal file
After Width: | Height: | Size: 2.6 KiB |
BIN
images/elvish-marksman+female-attack3.png
Normal file
After Width: | Height: | Size: 3.2 KiB |
BIN
images/elvish-marksman+female-bow-defend.png
Normal file
After Width: | Height: | Size: 2.6 KiB |
BIN
images/elvish-marksman+female-defend.png
Normal file
After Width: | Height: | Size: 2.3 KiB |
BIN
images/elvish-marksman+female.png
Normal file
After Width: | Height: | Size: 2.5 KiB |
BIN
images/elvish-marksman-frames.png
Normal file
After Width: | Height: | Size: 6 KiB |
BIN
images/elvish-ranger+female-attack.png
Normal file
After Width: | Height: | Size: 2.9 KiB |
BIN
images/elvish-ranger+female-attack1.png
Normal file
After Width: | Height: | Size: 2.7 KiB |
BIN
images/elvish-ranger+female-attack2.png
Normal file
After Width: | Height: | Size: 3.1 KiB |
BIN
images/elvish-ranger+female-attack3.png
Normal file
After Width: | Height: | Size: 3.1 KiB |
BIN
images/elvish-ranger+female-bow-defend.png
Normal file
After Width: | Height: | Size: 2.8 KiB |
BIN
images/elvish-ranger+female-defend.png
Normal file
After Width: | Height: | Size: 2.8 KiB |
BIN
images/elvish-ranger+female.png
Normal file
After Width: | Height: | Size: 2.6 KiB |
BIN
images/elvish-sharpshooter+female-attack.png
Normal file
After Width: | Height: | Size: 2.8 KiB |
BIN
images/elvish-sharpshooter+female-attack1.png
Normal file
After Width: | Height: | Size: 2.6 KiB |
BIN
images/elvish-sharpshooter+female-attack2.png
Normal file
After Width: | Height: | Size: 2.7 KiB |
BIN
images/elvish-sharpshooter+female-attack3.png
Normal file
After Width: | Height: | Size: 2.9 KiB |
BIN
images/elvish-sharpshooter+female-bow-defend.png
Normal file
After Width: | Height: | Size: 2.4 KiB |
BIN
images/elvish-sharpshooter+female-defend.png
Normal file
After Width: | Height: | Size: 2.2 KiB |
BIN
images/elvish-sharpshooter+female.png
Normal file
After Width: | Height: | Size: 2.3 KiB |
Before Width: | Height: | Size: 2.3 KiB After Width: | Height: | Size: 2.8 KiB |
BIN
images/elvish-sharpshooter-bow-defend.png
Normal file
After Width: | Height: | Size: 2.5 KiB |
|
@ -17,6 +17,7 @@
|
|||
#include "ai_move.hpp"
|
||||
#include "display.hpp"
|
||||
#include "map.hpp"
|
||||
#include "pathfind.hpp"
|
||||
#include "unit.hpp"
|
||||
#include "unit_types.hpp"
|
||||
|
||||
|
|
|
@ -2146,6 +2146,21 @@ void turn_info::do_command(const std::string& str)
|
|||
game_config::debug = (data != "off") ? true : false;
|
||||
} else if(cmd == "n" && game_config::debug) {
|
||||
throw end_level_exception(VICTORY);
|
||||
} else if(game_config::debug && cmd == "unit") {
|
||||
std::cerr << "processing unit: '" << data << "'\n";
|
||||
const unit_map::iterator i = current_unit();
|
||||
if(i != units_.end()) {
|
||||
const std::string::const_iterator j = std::find(data.begin(),data.end(),'=');
|
||||
if(j != data.end()) {
|
||||
const std::string name(data.begin(),j);
|
||||
const std::string value(j+1,data.end());
|
||||
std::cerr << "setting '" << name << "' = '" << value << "\n";
|
||||
config cfg;
|
||||
i->second.write(cfg);
|
||||
cfg[name] = value;
|
||||
i->second = unit(gameinfo_,cfg);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
|