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...
71 lines
1.3 KiB
INI
71 lines
1.3 KiB
INI
[unit]
|
|
id=Sergeant
|
|
name= _ "Sergeant"
|
|
race=human
|
|
image="human-sergeant.png"
|
|
image_defensive="human-sergeant-defend.png"
|
|
image_leading="human-sergeant-leading.png"
|
|
#ifdef CAMPAIGN_EASTERN_INVASION
|
|
profile=portraits/Eastern_Invasion/gweddry.png
|
|
#endif
|
|
hitpoints=36
|
|
movement_type=smallfoot
|
|
movement=6
|
|
experience=32
|
|
level=1
|
|
alignment=lawful
|
|
advanceto=Lieutenant
|
|
cost=20
|
|
usage=fighter
|
|
ability=leadership
|
|
unit_description= _ "The Sergeant is an officer in the ranks of the Royal Army. He is not stronger than other fighters, but he has hopes of advancing to greatness. As the leader of his unit, he must survive for the battle to be won."
|
|
get_hit_sound=groan.wav
|
|
[attack]
|
|
name=sword
|
|
type=blade
|
|
range=short
|
|
damage=5
|
|
number=3
|
|
[frame]
|
|
begin=-200
|
|
end=200
|
|
image="human-sergeant-attack-sword.png"
|
|
[/frame]
|
|
|
|
[sound]
|
|
time=-250
|
|
sound=sword-swish.wav
|
|
[/sound]
|
|
[/attack]
|
|
[attack]
|
|
name=crossbow
|
|
type=pierce
|
|
range=long
|
|
damage=4
|
|
number=3
|
|
[frame]
|
|
begin=-150
|
|
end=100
|
|
image="human-sergeant-attack-crossbow.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]
|