mirror of
https://github.com/wesnoth/wesnoth
synced 2024-09-21 20:25:51 +00:00
ba195ecd8a
* Made serialized data be saved as untranslated. To achieve this, added the t_string class, which encapsulates a translatable string. * Completely rewrote the (text) WML parser, making it use a tokenizer / parser architecture. The parser is now much more strict and validates a WML grammar. - Change to the WML syntax: pluses are now ignored, spaces are now forbidden in WML keys * Rewrote the way the variables are interpolated. There is no more default interpolation, however, the vconfig class was added, which provides a variable-interpolating proxy to config objects. * There is still an important known bug: this is impossible to load textmode save games now, because the statistics module saves some WML with spaces in keys, which the parser refuses. I am commiting anyway to respect the string freeze; the fix for this bug will come tomorrow Hoping I do not break everything...
90 lines
1.5 KiB
INI
90 lines
1.5 KiB
INI
[unit]
|
|
id=Elvish Hero
|
|
name= _ "Elvish Hero"
|
|
race=elf
|
|
image="elvish-hero.png"
|
|
image_long="elvish-hero-bow.png"
|
|
image_defensive="elvish-hero-defend.png"
|
|
image_defensive_long="elvish-hero-bow-defend.png"
|
|
hitpoints=48
|
|
movement_type=woodland
|
|
movement=5
|
|
{LESS_NIMBLE_ELF}
|
|
experience=80
|
|
level=2
|
|
alignment=neutral
|
|
advanceto=Elvish Champion
|
|
cost=40
|
|
usage=fighter
|
|
unit_description= _ "Elvish Heroes focus on individual performance on the battlefield, having honed their combat skills to a frightening level. Elvish Heroes prefer fighting at close range with the sword, but are also skilled at the bow."
|
|
get_hit_sound=groan.wav
|
|
[attack]
|
|
name=sword
|
|
type=blade
|
|
range=short
|
|
damage=8
|
|
number=4
|
|
|
|
[frame]
|
|
begin=-100
|
|
end=100
|
|
image="elvish-hero-attack.png"
|
|
[/frame]
|
|
|
|
[sound]
|
|
time=-250
|
|
sound=sword-swish.wav
|
|
[/sound]
|
|
|
|
[/attack]
|
|
[attack]
|
|
name=bow
|
|
type=pierce
|
|
range=long
|
|
damage=6
|
|
number=3
|
|
[sound]
|
|
time=-100
|
|
sound=firearrow.wav
|
|
[/sound]
|
|
|
|
[sound]
|
|
time=0
|
|
sound=arrow-hit.wav
|
|
sound_miss=arrow-miss.wav
|
|
[/sound]
|
|
[frame]
|
|
begin=-600
|
|
end=-450
|
|
image="elvish-hero-bow.png"
|
|
[/frame]
|
|
[frame]
|
|
begin=-450
|
|
end=-300
|
|
image="elvish-hero-bow-attack1.png"
|
|
[/frame]
|
|
[frame]
|
|
begin=-300
|
|
end=-200
|
|
image="elvish-hero-bow-attack2.png"
|
|
[/frame]
|
|
[frame]
|
|
begin=-200
|
|
end=0
|
|
image="elvish-hero-bow-attack3.png"
|
|
[/frame]
|
|
|
|
[frame]
|
|
begin=0
|
|
end=100
|
|
image="elvish-hero-bow.png"
|
|
[/frame]
|
|
[missile_frame]
|
|
begin=-100
|
|
end=0
|
|
image="projectiles/missile-n.png"
|
|
image_diagonal="projectiles/missile-ne.png"
|
|
[/missile_frame]
|
|
[/attack]
|
|
[/unit]
|