Decoupled slow and poison sounds from animations
This commit is contained in:
parent
d1d0990235
commit
1ff69616bf
2 changed files with 103 additions and 0 deletions
|
@ -134,6 +134,8 @@ Version 1.13.0-dev:
|
|||
for more details.
|
||||
* Replays:
|
||||
* Added a button that allows playing a single move in replay mode.
|
||||
* Sound:
|
||||
* Fixed issues with slowed and poisoned sounds not always playing correctly.
|
||||
* Units:
|
||||
* Increased the experience requirement for the Rami from 32 to 39
|
||||
* Increased the experience requirement for the Saree from 56 to 64
|
||||
|
@ -212,6 +214,8 @@ Version 1.13.0-dev:
|
|||
* Fixed nested macros emitting incorrect bindings to the default 'wesnoth'
|
||||
textdomain at the end of a substitution instead of the parent textdomain,
|
||||
this breaking localization of subsequent strings (bug #22962).
|
||||
* Sounds for slow and poison are automatically played when slowing/poisoning
|
||||
a unit, and should no longer be played by the attack animations.
|
||||
* Miscellaneous and bug fixes:
|
||||
* replace 'fight_on_without_leader'=yes/no with defeat_condition=no_leader/
|
||||
no_units/always/never which allows the wml developer to decide when a side
|
||||
|
|
|
@ -910,3 +910,102 @@ zombie-hit-[1~6].ogg #enddef
|
|||
[/attack_sound_frame]
|
||||
[/if]
|
||||
#enddef
|
||||
|
||||
[lua]
|
||||
code=<<
|
||||
|
||||
wesnoth.wml_actions.event{
|
||||
name="attacker hits",
|
||||
id="attacker hits and slows",
|
||||
first_time_only=false,
|
||||
|
||||
{ "filter_attack", {
|
||||
special="slow"
|
||||
}},
|
||||
|
||||
{ "filter_second", {
|
||||
{ "not", {
|
||||
{ "filter_wml", {
|
||||
{ "status", {
|
||||
slowed=true
|
||||
}}
|
||||
}}
|
||||
}}
|
||||
}},
|
||||
|
||||
{ "sound", {
|
||||
name="slowed.wav"
|
||||
}}
|
||||
}
|
||||
wesnoth.wml_actions.event{
|
||||
name="defender hits",
|
||||
id="defender hits and slows",
|
||||
first_time_only=false,
|
||||
|
||||
{ "filter_second_attack", {
|
||||
special="slow"
|
||||
}},
|
||||
|
||||
{ "filter", {
|
||||
{ "not", {
|
||||
{ "filter_wml", {
|
||||
{ "status", {
|
||||
slowed=true
|
||||
}}
|
||||
}}
|
||||
}}
|
||||
}},
|
||||
|
||||
{ "sound", {
|
||||
name="slowed.wav"
|
||||
}}
|
||||
}
|
||||
|
||||
wesnoth.wml_actions.event{
|
||||
name="attacker hits",
|
||||
id="attacker hits and poisons",
|
||||
first_time_only=false,
|
||||
|
||||
{ "filter_attack", {
|
||||
special="poison"
|
||||
}},
|
||||
|
||||
{ "filter_second", {
|
||||
{ "not", {
|
||||
{ "filter_wml", {
|
||||
{ "status", {
|
||||
poisoned=true
|
||||
}}
|
||||
}}
|
||||
}}
|
||||
}},
|
||||
|
||||
{ "sound", {
|
||||
name="poison.ogg"
|
||||
}}
|
||||
}
|
||||
wesnoth.wml_actions.event{
|
||||
name="defender hits",
|
||||
id="defender hits and poisons",
|
||||
first_time_only=false,
|
||||
|
||||
{ "filter_second_attack", {
|
||||
special="poison"
|
||||
}},
|
||||
|
||||
{ "filter", {
|
||||
{ "not", {
|
||||
{ "filter_wml", {
|
||||
{ "status", {
|
||||
poisoned=true
|
||||
}}
|
||||
}}
|
||||
}}
|
||||
}},
|
||||
|
||||
{ "sound", {
|
||||
name="poison.ogg"
|
||||
}}
|
||||
}
|
||||
>>
|
||||
[/lua]
|
||||
|
|
Loading…
Add table
Reference in a new issue