mirror of
https://github.com/wesnoth/wesnoth
synced 2024-09-22 19:27:52 +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...
86 lines
1.6 KiB
INI
86 lines
1.6 KiB
INI
[unit]
|
|
id=Elvish Scout
|
|
name= _ "Elvish Scout"
|
|
image="elvish-scout.png"
|
|
image_defensive="elvish-scout-defend.png"
|
|
image_moving="elvish-scout-moving.png"
|
|
race=elf
|
|
hitpoints=32
|
|
movement_type=woodland
|
|
|
|
#mostly like a foot Elf, but they
|
|
#are bad at defending in villages
|
|
[defense]
|
|
village=60
|
|
forest=40
|
|
[/defense]
|
|
|
|
#they are weak against piercing attacks
|
|
[resistance]
|
|
pierce=120
|
|
[/resistance]
|
|
movement=9
|
|
experience=37
|
|
level=1
|
|
alignment=neutral
|
|
advanceto=Elvish Rider
|
|
cost=18
|
|
usage=scout
|
|
unit_description= _ "Elvish Scouts move swiftly through forest and grassland alike. Their skill on horseback is virtually unmatched, although they do lack power in combat."
|
|
get_hit_sound=groan.wav
|
|
[attack]
|
|
name=sword
|
|
type=blade
|
|
range=short
|
|
damage=4
|
|
number=3
|
|
[frame]
|
|
begin=-200
|
|
end=-100
|
|
image="elvish-scout-moving.png"
|
|
[/frame]
|
|
[frame]
|
|
begin=-100
|
|
end=100
|
|
image="elvish-scout-attack.png"
|
|
[/frame]
|
|
[sound]
|
|
time=-200
|
|
sound=horse-elf-canter.wav
|
|
[/sound]
|
|
[/attack]
|
|
[attack]
|
|
name=bow
|
|
type=pierce
|
|
range=long
|
|
damage=5
|
|
number=2
|
|
[frame]
|
|
begin=-300
|
|
end=-150
|
|
image="elvish-scout-attack1.png"
|
|
[/frame]
|
|
[frame]
|
|
begin=-150
|
|
end=0
|
|
image="elvish-scout-attack2.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]
|
|
[/unit]
|
|
|