wesnoth-cvs-commits
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Wesnoth-cvs-commits] wesnoth data/units/Elvish_Archer.cfg data/units...


From: David White
Subject: [Wesnoth-cvs-commits] wesnoth data/units/Elvish_Archer.cfg data/units...
Date: Mon, 23 Aug 2004 23:06:13 -0400

CVSROOT:        /cvsroot/wesnoth
Module name:    wesnoth
Branch:         
Changes by:     David White <address@hidden>    04/08/24 02:31:07

Modified files:
        data/units     : Elvish_Archer.cfg Elvish_Avenger.cfg 
                         Elvish_Marksman.cfg Elvish_Ranger.cfg 
                         Elvish_Sharpshooter.cfg 
        images         : elvish-sharpshooter-attack3.png 
        src            : ai.hpp playturn.cpp 
Added files:
        images         : elvish-archer+female-attack.png 
                         elvish-archer+female-attack1.png 
                         elvish-archer+female-attack2.png 
                         elvish-archer+female-attack3.png 
                         elvish-archer+female-bow-defend.png 
                         elvish-archer+female-defend.png 
                         elvish-archer+female.png 
                         elvish-avenger+female-attack.png 
                         elvish-avenger+female-attack1.png 
                         elvish-avenger+female-attack2.png 
                         elvish-avenger+female-bow-defend.png 
                         elvish-avenger+female-bow.png 
                         elvish-avenger+female-defend.png 
                         elvish-avenger+female.png 
                         elvish-marksman+female-attack.png 
                         elvish-marksman+female-attack1.png 
                         elvish-marksman+female-attack2.png 
                         elvish-marksman+female-attack3.png 
                         elvish-marksman+female-bow-defend.png 
                         elvish-marksman+female-defend.png 
                         elvish-marksman+female.png 
                         elvish-marksman-frames.png 
                         elvish-ranger+female-attack.png 
                         elvish-ranger+female-attack1.png 
                         elvish-ranger+female-attack2.png 
                         elvish-ranger+female-attack3.png 
                         elvish-ranger+female-bow-defend.png 
                         elvish-ranger+female-defend.png 
                         elvish-ranger+female.png 
                         elvish-sharpshooter+female-attack.png 
                         elvish-sharpshooter+female-attack1.png 
                         elvish-sharpshooter+female-attack2.png 
                         elvish-sharpshooter+female-attack3.png 
                         elvish-sharpshooter+female-bow-defend.png 
                         elvish-sharpshooter+female-defend.png 
                         elvish-sharpshooter+female.png 
                         elvish-sharpshooter-bow-defend.png 

Log message:
        Added in female archers

CVSWeb URLs:
http://savannah.gnu.org/cgi-bin/viewcvs/wesnoth/wesnoth/data/units/Elvish_Archer.cfg.diff?tr1=1.14&tr2=1.15&r1=text&r2=text
http://savannah.gnu.org/cgi-bin/viewcvs/wesnoth/wesnoth/data/units/Elvish_Avenger.cfg.diff?tr1=1.17&tr2=1.18&r1=text&r2=text
http://savannah.gnu.org/cgi-bin/viewcvs/wesnoth/wesnoth/data/units/Elvish_Marksman.cfg.diff?tr1=1.14&tr2=1.15&r1=text&r2=text
http://savannah.gnu.org/cgi-bin/viewcvs/wesnoth/wesnoth/data/units/Elvish_Ranger.cfg.diff?tr1=1.18&tr2=1.19&r1=text&r2=text
http://savannah.gnu.org/cgi-bin/viewcvs/wesnoth/wesnoth/data/units/Elvish_Sharpshooter.cfg.diff?tr1=1.14&tr2=1.15&r1=text&r2=text
http://savannah.gnu.org/cgi-bin/viewcvs/wesnoth/wesnoth/images/elvish-archer+female-attack.png?rev=1.1
http://savannah.gnu.org/cgi-bin/viewcvs/wesnoth/wesnoth/images/elvish-archer+female-attack1.png?rev=1.1
http://savannah.gnu.org/cgi-bin/viewcvs/wesnoth/wesnoth/images/elvish-archer+female-attack2.png?rev=1.1
http://savannah.gnu.org/cgi-bin/viewcvs/wesnoth/wesnoth/images/elvish-archer+female-attack3.png?rev=1.1
http://savannah.gnu.org/cgi-bin/viewcvs/wesnoth/wesnoth/images/elvish-archer+female-bow-defend.png?rev=1.1
http://savannah.gnu.org/cgi-bin/viewcvs/wesnoth/wesnoth/images/elvish-archer+female-defend.png?rev=1.1
http://savannah.gnu.org/cgi-bin/viewcvs/wesnoth/wesnoth/images/elvish-archer+female.png?rev=1.1
http://savannah.gnu.org/cgi-bin/viewcvs/wesnoth/wesnoth/images/elvish-avenger+female-attack.png?rev=1.1
http://savannah.gnu.org/cgi-bin/viewcvs/wesnoth/wesnoth/images/elvish-avenger+female-attack1.png?rev=1.1
http://savannah.gnu.org/cgi-bin/viewcvs/wesnoth/wesnoth/images/elvish-avenger+female-attack2.png?rev=1.1
http://savannah.gnu.org/cgi-bin/viewcvs/wesnoth/wesnoth/images/elvish-avenger+female-bow-defend.png?rev=1.1
http://savannah.gnu.org/cgi-bin/viewcvs/wesnoth/wesnoth/images/elvish-avenger+female-bow.png?rev=1.1
http://savannah.gnu.org/cgi-bin/viewcvs/wesnoth/wesnoth/images/elvish-avenger+female-defend.png?rev=1.1
http://savannah.gnu.org/cgi-bin/viewcvs/wesnoth/wesnoth/images/elvish-avenger+female.png?rev=1.1
http://savannah.gnu.org/cgi-bin/viewcvs/wesnoth/wesnoth/images/elvish-marksman+female-attack.png?rev=1.1
http://savannah.gnu.org/cgi-bin/viewcvs/wesnoth/wesnoth/images/elvish-marksman+female-attack1.png?rev=1.1
http://savannah.gnu.org/cgi-bin/viewcvs/wesnoth/wesnoth/images/elvish-marksman+female-attack2.png?rev=1.1
http://savannah.gnu.org/cgi-bin/viewcvs/wesnoth/wesnoth/images/elvish-marksman+female-attack3.png?rev=1.1
http://savannah.gnu.org/cgi-bin/viewcvs/wesnoth/wesnoth/images/elvish-marksman+female-bow-defend.png?rev=1.1
http://savannah.gnu.org/cgi-bin/viewcvs/wesnoth/wesnoth/images/elvish-marksman+female-defend.png?rev=1.1
http://savannah.gnu.org/cgi-bin/viewcvs/wesnoth/wesnoth/images/elvish-marksman+female.png?rev=1.1
http://savannah.gnu.org/cgi-bin/viewcvs/wesnoth/wesnoth/images/elvish-marksman-frames.png?rev=1.1
http://savannah.gnu.org/cgi-bin/viewcvs/wesnoth/wesnoth/images/elvish-ranger+female-attack.png?rev=1.1
http://savannah.gnu.org/cgi-bin/viewcvs/wesnoth/wesnoth/images/elvish-ranger+female-attack1.png?rev=1.1
http://savannah.gnu.org/cgi-bin/viewcvs/wesnoth/wesnoth/images/elvish-ranger+female-attack2.png?rev=1.1
http://savannah.gnu.org/cgi-bin/viewcvs/wesnoth/wesnoth/images/elvish-ranger+female-attack3.png?rev=1.1
http://savannah.gnu.org/cgi-bin/viewcvs/wesnoth/wesnoth/images/elvish-ranger+female-bow-defend.png?rev=1.1
http://savannah.gnu.org/cgi-bin/viewcvs/wesnoth/wesnoth/images/elvish-ranger+female-defend.png?rev=1.1
http://savannah.gnu.org/cgi-bin/viewcvs/wesnoth/wesnoth/images/elvish-ranger+female.png?rev=1.1
http://savannah.gnu.org/cgi-bin/viewcvs/wesnoth/wesnoth/images/elvish-sharpshooter+female-attack.png?rev=1.1
http://savannah.gnu.org/cgi-bin/viewcvs/wesnoth/wesnoth/images/elvish-sharpshooter+female-attack1.png?rev=1.1
http://savannah.gnu.org/cgi-bin/viewcvs/wesnoth/wesnoth/images/elvish-sharpshooter+female-attack2.png?rev=1.1
http://savannah.gnu.org/cgi-bin/viewcvs/wesnoth/wesnoth/images/elvish-sharpshooter+female-attack3.png?rev=1.1
http://savannah.gnu.org/cgi-bin/viewcvs/wesnoth/wesnoth/images/elvish-sharpshooter+female-bow-defend.png?rev=1.1
http://savannah.gnu.org/cgi-bin/viewcvs/wesnoth/wesnoth/images/elvish-sharpshooter+female-defend.png?rev=1.1
http://savannah.gnu.org/cgi-bin/viewcvs/wesnoth/wesnoth/images/elvish-sharpshooter+female.png?rev=1.1
http://savannah.gnu.org/cgi-bin/viewcvs/wesnoth/wesnoth/images/elvish-sharpshooter-bow-defend.png?rev=1.1
http://savannah.gnu.org/cgi-bin/viewcvs/wesnoth/wesnoth/images/elvish-sharpshooter-attack3.png.diff?tr1=1.5&tr2=1.6&r1=text&r2=text
http://savannah.gnu.org/cgi-bin/viewcvs/wesnoth/wesnoth/src/ai.hpp.diff?tr1=1.51&tr2=1.52&r1=text&r2=text
http://savannah.gnu.org/cgi-bin/viewcvs/wesnoth/wesnoth/src/playturn.cpp.diff?tr1=1.254&tr2=1.255&r1=text&r2=text

Patches:
Index: wesnoth/data/units/Elvish_Archer.cfg
diff -u wesnoth/data/units/Elvish_Archer.cfg:1.14 
wesnoth/data/units/Elvish_Archer.cfg:1.15
--- wesnoth/data/units/Elvish_Archer.cfg:1.14   Sun Aug 15 20:25:07 2004
+++ wesnoth/data/units/Elvish_Archer.cfg        Tue Aug 24 02:31:07 2004
@@ -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 @@
 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 @@
                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]
Index: wesnoth/data/units/Elvish_Avenger.cfg
diff -u wesnoth/data/units/Elvish_Avenger.cfg:1.17 
wesnoth/data/units/Elvish_Avenger.cfg:1.18
--- wesnoth/data/units/Elvish_Avenger.cfg:1.17  Sun Aug 15 20:25:07 2004
+++ wesnoth/data/units/Elvish_Avenger.cfg       Tue Aug 24 02:31:07 2004
@@ -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 @@
 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 @@
                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]
Index: wesnoth/data/units/Elvish_Marksman.cfg
diff -u wesnoth/data/units/Elvish_Marksman.cfg:1.14 
wesnoth/data/units/Elvish_Marksman.cfg:1.15
--- wesnoth/data/units/Elvish_Marksman.cfg:1.14 Sun Aug 15 20:25:07 2004
+++ wesnoth/data/units/Elvish_Marksman.cfg      Tue Aug 24 02:31:07 2004
@@ -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 @@
 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 @@
                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]
Index: wesnoth/data/units/Elvish_Ranger.cfg
diff -u wesnoth/data/units/Elvish_Ranger.cfg:1.18 
wesnoth/data/units/Elvish_Ranger.cfg:1.19
--- wesnoth/data/units/Elvish_Ranger.cfg:1.18   Sun Aug 15 20:25:07 2004
+++ wesnoth/data/units/Elvish_Ranger.cfg        Tue Aug 24 02:31:07 2004
@@ -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 @@
 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 @@
                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]
Index: wesnoth/data/units/Elvish_Sharpshooter.cfg
diff -u wesnoth/data/units/Elvish_Sharpshooter.cfg:1.14 
wesnoth/data/units/Elvish_Sharpshooter.cfg:1.15
--- wesnoth/data/units/Elvish_Sharpshooter.cfg:1.14     Sun Aug 15 20:25:07 2004
+++ wesnoth/data/units/Elvish_Sharpshooter.cfg  Tue Aug 24 02:31:07 2004
@@ -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 @@
 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 @@
                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]
Index: wesnoth/images/elvish-sharpshooter-attack3.png
Index: wesnoth/src/ai.hpp
diff -u wesnoth/src/ai.hpp:1.51 wesnoth/src/ai.hpp:1.52
--- wesnoth/src/ai.hpp:1.51     Sun Jul 18 18:48:56 2004
+++ wesnoth/src/ai.hpp  Tue Aug 24 02:31:07 2004
@@ -1,4 +1,4 @@
-/* $Id: ai.hpp,v 1.51 2004/07/18 18:48:56 Sirp Exp $ */
+/* $Id: ai.hpp,v 1.52 2004/08/24 02:31:07 Sirp Exp $ */
 /*
    Copyright (C) 2003 by David White <address@hidden>
    Part of the Battle for Wesnoth Project http://wesnoth.whitevine.net
@@ -17,6 +17,7 @@
 #include "ai_move.hpp"
 #include "display.hpp"
 #include "map.hpp"
+#include "pathfind.hpp"
 #include "unit.hpp"
 #include "unit_types.hpp"
 
Index: wesnoth/src/playturn.cpp
diff -u wesnoth/src/playturn.cpp:1.254 wesnoth/src/playturn.cpp:1.255
--- wesnoth/src/playturn.cpp:1.254      Sat Aug 21 22:21:05 2004
+++ wesnoth/src/playturn.cpp    Tue Aug 24 02:31:07 2004
@@ -1,4 +1,4 @@
-/* $Id: playturn.cpp,v 1.254 2004/08/21 22:21:05 Sirp Exp $ */
+/* $Id: playturn.cpp,v 1.255 2004/08/24 02:31:07 Sirp Exp $ */
 /*
    Copyright (C) 2003 by David White <address@hidden>
    Part of the Battle for Wesnoth Project http://wesnoth.whitevine.net
@@ -2146,6 +2146,21 @@
                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);
+                       }
+               }
        }
 }
 




reply via email to

[Prev in Thread] Current Thread [Next in Thread]