Skip to content

Commit

Permalink
shorter knockback
Browse files Browse the repository at this point in the history
  • Loading branch information
ProditorMagnus committed Aug 23, 2024
1 parent d4f060e commit 5adc79c
Showing 1 changed file with 1 addition and 82 deletions.
83 changes: 1 addition & 82 deletions data/SH_data/weapon_specials/knockback.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -33,88 +33,7 @@
[/variable]

[then]
[if]
[have_unit]
x,y=$x1,$y1
[filter_adjacent]
x,y=$x2,$y2
adjacent=n
[/filter_adjacent]
[/have_unit]
[then]
{VARIABLE knockback_direction n}
[/then]
[else]
[if]
[have_unit]
x,y=$x1,$y1
[filter_adjacent]
x,y=$x2,$y2
adjacent=ne
[/filter_adjacent]
[/have_unit]
[then]
{VARIABLE knockback_direction ne}
[/then]
[else]
[if]
[have_unit]
x,y=$x1,$y1
[filter_adjacent]
x,y=$x2,$y2
adjacent=se
[/filter_adjacent]
[/have_unit]
[then]
{VARIABLE knockback_direction se}
[/then]
[else]
[if]
[have_unit]
x,y=$x1,$y1
[filter_adjacent]
x,y=$x2,$y2
adjacent=s
[/filter_adjacent]
[/have_unit]
[then]
{VARIABLE knockback_direction s}
[/then]
[else]
[if]
[have_unit]
x,y=$x1,$y1
[filter_adjacent]
x,y=$x2,$y2
adjacent=sw
[/filter_adjacent]
[/have_unit]
[then]
{VARIABLE knockback_direction sw}
[/then]
[else]
[if]
[have_unit]
x,y=$x1,$y1
[filter_adjacent]
x,y=$x2,$y2
adjacent=nw
[/filter_adjacent]
[/have_unit]
[then]
{VARIABLE knockback_direction nw}
[/then]
[/if]
[/else]
[/if]
[/else]
[/if]
[/else]
[/if]
[/else]
[/if]
[/else]
[/if]
{VARIABLE knockback_direction "$(relative_dir(loc($unit.x,$unit.y), loc($second_unit.x,$second_unit.y)))"}

[store_locations]
[not]
Expand Down

0 comments on commit 5adc79c

Please sign in to comment.