mirror of
https://github.com/wesnoth/wesnoth
synced 2025-05-06 19:30:20 +00:00

* 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...
59 lines
1.1 KiB
INI
59 lines
1.1 KiB
INI
[unit]
|
|
id=Wraith
|
|
name= _ "Wraith"
|
|
race=undead
|
|
image="undead-wraith.png"
|
|
image_defensive="undead-wraith-defend.png"
|
|
hitpoints=25
|
|
movement_type=undeadspirit
|
|
movement=7
|
|
[resistance]
|
|
blade=60
|
|
pierce=60
|
|
impact=60
|
|
[/resistance]
|
|
experience=150
|
|
level=2
|
|
alignment=chaotic
|
|
advanceto=Spectre
|
|
cost=34
|
|
usage=scout
|
|
unit_description= _ "Wraiths are some of the most powerful ghosts in the undead ranks. They can summon a spectral sword that drains the life out of their foes, thereby strengthening themselves. They also have a terrible wail that freezes the heart of the weak."
|
|
get_hit_sound=groan.wav
|
|
[attack]
|
|
name=baneblade
|
|
type=blade
|
|
range=short
|
|
damage=7
|
|
number=4
|
|
special=drain
|
|
[frame]
|
|
begin=-100
|
|
end=100
|
|
image=""undead-wraith-attack.png""
|
|
[/frame]
|
|
[sound]
|
|
time=-100
|
|
sound=sword-swish.wav
|
|
[/sound]
|
|
[/attack]
|
|
[attack]
|
|
name=wail
|
|
type=cold
|
|
range=long
|
|
damage=4
|
|
number=3
|
|
[frame]
|
|
begin=-250
|
|
end=50
|
|
image="undead-wraith-attack1.png"
|
|
[/frame]
|
|
[missile_frame]
|
|
begin=-200
|
|
end=0
|
|
image="projectiles/darkmissile-n.png"
|
|
image_diagonal="projectiles/darkmissile-ne.png"
|
|
[/missile_frame]
|
|
[/attack]
|
|
[/unit]
|