wmlmove does its first move, of the Fire Dragon to core.

This commit is contained in:
Eric S. Raymond 2007-05-19 19:31:07 +00:00
parent e95aad4970
commit 3753c14cc3
10 changed files with 35 additions and 243 deletions

View file

@ -1,213 +0,0 @@
#textdomain wesnoth-nr
[unit]
id=Fire Dragon
name= _ "Fire Dragon"
race=monster
image="units/fire-dragon.png"
{DEFENSE_ANIM "units/fire-dragon-defend.png" "units/fire-dragon.png" {SOUND_LIST:DRAKE_HIT} }
[abilities]
{ABILITY_LEADERSHIP_LEVEL_5}
[/abilities]
hitpoints=101
movement_type=drakefly
movement=8
experience=100
level=5
alignment=chaotic
advanceto=null
{AMLA_TOUGH 3}
cost=100
usage=archer
unit_description= _ "A fire dragon is an ancient and horrifying being that normally lives only in hushed rumor and fantastic stories. It is normal for centuries to pass without a dragon being seen in Wesnoth, and usually it is only as a shadowy form flying in the distance. Legends are very specific about the ravages of fire dragons: hideously swift in flight, leathery wings spread over one hundred feet in width, they swoop in and blast their prey with inferno jets of flame. Anything escaping the dragon's fire breath must beware its ferocious bite and crushing tail. Fire dragons are cunning and cruel and often take underlings whom they lead to victory."
die_sound={SOUND_LIST:DRAKE_DIE}
[attack]
name=bite
description= _"bite"
icon=attacks/fangs-animal.png
type=blade
range=melee
damage=21
number=2
[animation]
[frame]
begin=-300
end=-250
image="units/fire-dragon.png"
[/frame]
[frame]
begin=-250
end=-100
image="units/fire-dragon-attack-bite1.png"
[/frame]
[if]
hits=no
[frame]
begin=-100
end=50
image="units/fire-dragon-attack-bite2.png"
sound={SOUND_LIST:MISS}
[/frame]
[/if]
[else]
hits=yes
[frame]
begin=-100
end=50
image="units/fire-dragon-attack-bite2.png"
sound=bite.ogg
[/frame]
[/else]
[frame]
begin=-50
end=150
image="units/fire-dragon-attack-bite3.png"
[/frame]
[frame]
begin=150
end=200
image="units/fire-dragon.png"
[/frame]
[/animation]
[/attack]
[attack]
name=tail
description= _"tail"
#Solicit an Icon
icon=attacks/sting.png
type=impact
range=melee
damage=24
number=1
[animation]
[if]
hits=no
[frame]
begin=-250
end=-150
image="units/fire-dragon.png"
sound={SOUND_LIST:MISS}
[/frame]
[/if]
[else]
hits=yes
[frame]
begin=-250
end=-150
image="units/fire-dragon.png"
sound=tail.ogg
[/frame]
[/else]
[frame]
begin=-150
end=100
image="units/fire-dragon-attack-tail.png"
[/frame]
[frame]
begin=100
end=200
image="units/fire-dragon.png"
[/frame]
[/animation]
[/attack]
[attack]
name=fire breath
description= _"fire breath"
icon=attacks/fire-breath-drake.png
type=fire
[specials]
{WEAPON_SPECIAL_MARKSMAN}
[/specials]
range=ranged
damage=14
number=4
[animation]
[if]
direction=n
[missile_frame]
begin=-400
end=100
halo=projectiles/fire-breath-n-1.png:80,projectiles/fire-breath-n-2.png:80,projectiles/fire-breath-n-3.png:80,projectiles/fire-breath-n-4.png:80,projectiles/fire-breath-n-5.png:80
halo_x,halo_y=20,-34
[/missile_frame]
[/if]
[else]
direction=s
[missile_frame]
begin=-400
end=100
halo=projectiles/fire-breath-s-1.png:80,projectiles/fire-breath-s-2.png:80,projectiles/fire-breath-s-3.png:80,projectiles/fire-breath-s-4.png:80,projectiles/fire-breath-s-5.png:80
halo_x,halo_y=22,12
[/missile_frame]
[/else]
[else]
direction=ne,nw
[missile_frame]
begin=-400
end=100
halo=projectiles/fire-breath-ne-1.png:80,projectiles/fire-breath-ne-2.png:80,projectiles/fire-breath-ne-3.png:80,projectiles/fire-breath-ne-4.png:80,projectiles/fire-breath-ne-5.png:80
halo_x,halo_y=35,-22
[/missile_frame]
[/else]
[else]
direction=se,sw
[missile_frame]
begin=-400
end=100
halo=projectiles/fire-breath-se-1.png:80,projectiles/fire-breath-se-2.png:80,projectiles/fire-breath-se-3.png:80,projectiles/fire-breath-se-4.png:80,projectiles/fire-breath-se-5.png:80
halo_x,halo_y=37,14
[/missile_frame]
[/else]
[frame]
begin=-500
end=-450
image="units/fire-dragon.png"
[/frame]
[frame]
begin=-450
end=-350
image="units/fire-dragon-attack-bite1.png"
[/frame]
[if]
hits=no
[frame]
begin=-350
end=-200
image="units/fire-dragon-attack-breath.png"
sound=flame-big-miss.ogg
[/frame]
[/if]
[else]
hits=yes
[frame]
begin=-350
end=-200
image="units/fire-dragon-attack-breath.png"
sound=flame-big.ogg
[/frame]
[/else]
[frame]
begin=-200
end=-125
image="units/fire-dragon-attack-bite2.png"
[/frame]
[frame]
begin=-125
end=-50
image="units/fire-dragon-attack-bite3.png"
[/frame]
[frame]
begin=-50
end=100
image="units/fire-dragon.png"
[/frame]
[/animation]
[/attack]
[/unit]

View file

Before

Width:  |  Height:  |  Size: 2 KiB

After

Width:  |  Height:  |  Size: 2 KiB

View file

Before

Width:  |  Height:  |  Size: 1.7 KiB

After

Width:  |  Height:  |  Size: 1.7 KiB

View file

Before

Width:  |  Height:  |  Size: 1.6 KiB

After

Width:  |  Height:  |  Size: 1.6 KiB

View file

Before

Width:  |  Height:  |  Size: 1.9 KiB

After

Width:  |  Height:  |  Size: 1.9 KiB

View file

Before

Width:  |  Height:  |  Size: 1.6 KiB

After

Width:  |  Height:  |  Size: 1.6 KiB

View file

Before

Width:  |  Height:  |  Size: 1.7 KiB

After

Width:  |  Height:  |  Size: 1.7 KiB

View file

Before

Width:  |  Height:  |  Size: 1.8 KiB

After

Width:  |  Height:  |  Size: 1.8 KiB

View file

@ -1,10 +1,10 @@
#textdomain wesnoth-nr
#textdomain wesnoth
[unit]
id=Fire Dragon
name= _ "Fire Dragon"
race=monster
image="units/fire-dragon.png"
{DEFENSE_ANIM "units/fire-dragon-defend.png" "units/fire-dragon.png" {SOUND_LIST:DRAKE_HIT} }
image="units/monsters/fire-dragon.png"
{DEFENSE_ANIM "units/monsters/fire-dragon-defend.png" "units/monsters/fire-dragon.png" {SOUND_LIST:DRAKE_HIT} }
[abilities]
{ABILITY_LEADERSHIP_LEVEL_5}
[/abilities]
@ -32,19 +32,19 @@
[frame]
begin=-300
end=-250
image="units/fire-dragon.png"
image="units/monsters/fire-dragon.png"
[/frame]
[frame]
begin=-250
end=-100
image="units/fire-dragon-attack-bite1.png"
image="units/monsters/fire-dragon-attack-bite1.png"
[/frame]
[if]
hits=no
[frame]
begin=-100
end=50
image="units/fire-dragon-attack-bite2.png"
image="units/monsters/fire-dragon-attack-bite2.png"
sound={SOUND_LIST:MISS}
[/frame]
[/if]
@ -53,19 +53,19 @@
[frame]
begin=-100
end=50
image="units/fire-dragon-attack-bite2.png"
image="units/monsters/fire-dragon-attack-bite2.png"
sound=bite.ogg
[/frame]
[/else]
[frame]
begin=-50
end=150
image="units/fire-dragon-attack-bite3.png"
image="units/monsters/fire-dragon-attack-bite3.png"
[/frame]
[frame]
begin=150
end=200
image="units/fire-dragon.png"
image="units/monsters/fire-dragon.png"
[/frame]
[/animation]
[/attack]
@ -84,7 +84,7 @@
[frame]
begin=-250
end=-150
image="units/fire-dragon.png"
image="units/monsters/fire-dragon.png"
sound={SOUND_LIST:MISS}
[/frame]
[/if]
@ -93,19 +93,19 @@
[frame]
begin=-250
end=-150
image="units/fire-dragon.png"
image="units/monsters/fire-dragon.png"
sound=tail.ogg
[/frame]
[/else]
[frame]
begin=-150
end=100
image="units/fire-dragon-attack-tail.png"
image="units/monsters/fire-dragon-attack-tail.png"
[/frame]
[frame]
begin=100
end=200
image="units/fire-dragon.png"
image="units/monsters/fire-dragon.png"
[/frame]
[/animation]
[/attack]
@ -165,12 +165,12 @@
[frame]
begin=-500
end=-450
image="units/fire-dragon.png"
image="units/monsters/fire-dragon.png"
[/frame]
[frame]
begin=-450
end=-350
image="units/fire-dragon-attack-bite1.png"
image="units/monsters/fire-dragon-attack-bite1.png"
[/frame]
[if]
@ -179,7 +179,7 @@
[frame]
begin=-350
end=-200
image="units/fire-dragon-attack-breath.png"
image="units/monsters/fire-dragon-attack-breath.png"
sound=flame-big-miss.ogg
[/frame]
[/if]
@ -189,24 +189,24 @@
[frame]
begin=-350
end=-200
image="units/fire-dragon-attack-breath.png"
image="units/monsters/fire-dragon-attack-breath.png"
sound=flame-big.ogg
[/frame]
[/else]
[frame]
begin=-200
end=-125
image="units/fire-dragon-attack-bite2.png"
image="units/monsters/fire-dragon-attack-bite2.png"
[/frame]
[frame]
begin=-125
end=-50
image="units/fire-dragon-attack-bite3.png"
image="units/monsters/fire-dragon-attack-bite3.png"
[/frame]
[frame]
begin=-50
end=100
image="units/fire-dragon.png"
image="units/monsters/fire-dragon.png"
[/frame]
[/animation]
[/attack]

View file

@ -44,7 +44,7 @@ if __name__ == "__main__":
# Process options.
(options, arguments) = getopt.getopt(sys.argv[1:], "dhilr", ['delete', 'help', 'imageclass', 'list', 'revert'])
listem = False
iclass = "monsters"
iclass = None
delete = False
revert = False
for (switch, val) in options:
@ -126,6 +126,7 @@ if __name__ == "__main__":
# Generate the actual move commands
print "# Generated script from", " ".join(sys.argv[1:])
if not delete and not revert:
print '''
replace()
@ -163,8 +164,9 @@ overwrite()
fi
rm -f $new $old
}
'''
'''
print "chdir", os.getcwd()
if delete:
print "# Image deletions:"
for (name, defloc) in srcrefs.fileref.items():
@ -180,6 +182,9 @@ overwrite()
else:
print wmltools.vcdelete(filename)
else:
if iclass == None:
print "# Defaulting image subclass to 'monsters', use -i to set it."
iclass = 'monsters'
print "# Image moves:"
for (name, defloc) in srcrefs.fileref.items():
source = wmltools.directory_namespace(name)
@ -196,16 +201,16 @@ overwrite()
source = wmltools.directory_namespace(name)
target = wmltools.resolve_unit_cfg(dst, os.path.basename(filename))
if revert:
if not wmltools.namespace_member(filenamw, source):
if not wmltools.namespace_member(filename, source):
print wmltools.vcunmove(filename, target)
else:
if not wmltools.namespace_member(name, dst):
if not wmltools.namespace_member(filename, dst):
print wmltools.vcmove(filename, target)
if iclass:
print "replace 'units/' 'units/%s' %s" % (iclass, target)
if dst == "core":
print "replace '#textdomain wesnoth.*' '#textdomain wesnoth' target"
else:
print "echo 'Warning: text domain will require manual change.'"
if iclass:
print "replace 'units/' 'units/%s/' %s" % (iclass, target)
if dst == "core":
print "replace '#textdomain wesnoth.*' '#textdomain wesnoth' %s" % target
else:
print "echo 'Warning: text domain will require manual change.'"
# wmlmove ends here