Skip to content

Commit

Permalink
fix wesnoth version
Browse files Browse the repository at this point in the history
  • Loading branch information
newfrenchy83 committed May 24, 2021
1 parent 9fd246e commit 4363faf
Show file tree
Hide file tree
Showing 3 changed files with 102 additions and 6 deletions.
6 changes: 5 additions & 1 deletion episode3/scenarios/06_Divergence.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -114,7 +114,11 @@
id=Irylean
[has_attack]
type=arcane
special_type=poison
#ifver WESNOTH_VERSION < 1.15.2
special=poison
#else
special_id=poison
#endif
[/has_attack]
[/have_unit]
[then]
Expand Down
6 changes: 5 additions & 1 deletion episode3/scenarios/07A_Dark_Fire_part_2.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -502,7 +502,11 @@
type=Boss Guardian of Darkness Elyssa
[/filter_second]
[filter_attack]
special_type=slow
#ifver WESNOTH_VERSION < 1.15.2
special=slow
#else
special_id=slow
#endif
[/filter_attack]

[fire_event]
Expand Down
96 changes: 92 additions & 4 deletions macros/weapon-specials-implementation.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,11 @@
name=attacker hits
first_time_only=no
[filter_attack]
#ifver WESNOTH_VERSION < 1.15.2
special=stun
#else
special_id=stun
#endif
[/filter_attack]
[filter_second]
[not]
Expand Down Expand Up @@ -93,7 +97,11 @@
name=defender hits
first_time_only=no
[filter_second_attack]
#ifver WESNOTH_VERSION < 1.15.2
special=seismic
#else
special_id=seismic
#endif
[/filter_second_attack]

{EVENT_INVERSE_DISPATCH "seismic hits"}
Expand Down Expand Up @@ -126,7 +134,11 @@
[filter]
[not]
[has_attack]
#ifver WESNOTH_VERSION < 1.15.2
special=enemy_dazed
#else
special_id=enemy_dazed
#endif
[/has_attack]
[/not]
[/filter]
Expand All @@ -141,13 +153,25 @@
[effect]
apply_to=attack
[not]
#ifver WESNOTH_VERSION < 1.15.2
special=magical
#else
special_id=magical
#endif
[/not]
[not]
#ifver WESNOTH_VERSION < 1.15.2
special=marksman
#else
special_id=marksman
#endif
[/not]
[not]
#ifver WESNOTH_VERSION < 1.15.2
special=enemy_dazed
#else
special_id=enemy_dazed
#endif
[/not]

[set_specials]
Expand All @@ -170,12 +194,24 @@
[/effect]
[effect]
apply_to=attack
#ifver WESNOTH_VERSION < 1.15.2
special=marksman
#else
special_id=marksman
#endif
[and]
special_type=poison
#ifver WESNOTH_VERSION < 1.15.2
special=poison
#else
special_id=poison
#endif
[/and]
[not]
#ifver WESNOTH_VERSION < 1.15.2
special=enemy_dazed
#else
special_id=enemy_dazed
#endif
[/not]

# Note: instead of simply appending, we have to use replace and
Expand Down Expand Up @@ -222,12 +258,24 @@
[/effect]
[effect]
apply_to=attack
#ifver WESNOTH_VERSION < 1.15.2
special=marksman
#else
special_id=marksman
#endif
[not]
special_type=poison
#ifver WESNOTH_VERSION < 1.15.2
special=poison
#else
special_id=poison
#endif
[/not]
[not]
#ifver WESNOTH_VERSION < 1.15.2
special=enemy_dazed
#else
special_id=enemy_dazed
#endif
[/not]

# Note: instead of simply appending, we have to use replace and
Expand Down Expand Up @@ -280,7 +328,11 @@
first_time_only=no

[filter_attack]
#ifver WESNOTH_VERSION < 1.15.2
special=daze
#else
special_id=daze
#endif
[/filter_attack]

[filter_second]
Expand Down Expand Up @@ -313,13 +365,25 @@
[effect]
apply_to=attack
[not]
#ifver WESNOTH_VERSION < 1.15.2
special=magical
#else
special_id=magical
#endif
[/not]
[not]
#ifver WESNOTH_VERSION < 1.15.2
special=marksman
#else
special_id=marksman
#endif
[/not]
[not]
#ifver WESNOTH_VERSION < 1.15.2
special=self_dazed
#else
special_id=self_dazed
#endif
[/not]

[set_specials]
Expand All @@ -342,12 +406,24 @@
[/effect]
[effect]
apply_to=attack
#ifver WESNOTH_VERSION < 1.15.2
special=marksman
#else
special_id=marksman
#endif
[and]
special_type=poison
#ifver WESNOTH_VERSION < 1.15.2
special=poison
#else
special_id=poison
#endif
[/and]
[not]
#ifver WESNOTH_VERSION < 1.15.2
special=self_dazed
#else
special_id=self_dazed
#endif
[/not]

[set_specials]
Expand Down Expand Up @@ -390,12 +466,24 @@
[/effect]
[effect]
apply_to=attack
#ifver WESNOTH_VERSION < 1.15.2
special=marksman
#else
special_id=marksman
#endif
[not]
special_type=poison
#ifver WESNOTH_VERSION < 1.15.2
special=poison
#else
special_id=poison
#endif
[/not]
[not]
#ifver WESNOTH_VERSION < 1.15.2
special=self_dazed
#else
special_id=self_dazed
#endif
[/not]

[set_specials]
Expand Down

0 comments on commit 4363faf

Please sign in to comment.