Skip to content

Commit

Permalink
UtBS: Changed the support ability to only lower upkeep costs by 1
Browse files Browse the repository at this point in the history
  • Loading branch information
ln-zookeeper committed Dec 31, 2016
1 parent 169946f commit f75dc8d
Showing 1 changed file with 9 additions and 27 deletions.
36 changes: 9 additions & 27 deletions data/campaigns/Under_the_Burning_Suns/utils/abilities.cfg
Expand Up @@ -135,7 +135,7 @@ _" This unit is capable of healing those around it, slowing dehydration, and cur
[dummy]
id=support
name= _ "support"
description= _ "At the start of each turn, no upkeep costs are incurred by adjacent friendly units."
description= _ "The upkeep costs of adjacent friendly units are lowered by 1."
[/dummy]
#enddef

Expand Down Expand Up @@ -633,7 +633,7 @@ _"This unit is capable of distracting opponents, allowing allied units to trespa

{VARIABLE unit.variables.original_upkeep $unit.upkeep}
{VARIABLE unit.variables.upkeep_supported yes}
{VARIABLE unit.upkeep loyal}
{VARIABLE unit.upkeep "$($unit.level - 1)"}

[unstore_unit]
variable=unit
Expand Down Expand Up @@ -663,7 +663,7 @@ _"This unit is capable of distracting opponents, allowing allied units to trespa
[then]
{VARIABLE update_support_units[$i].variables.original_upkeep $update_support_units[$i].upkeep}
{VARIABLE update_support_units[$i].variables.upkeep_supported yes}
{VARIABLE update_support_units[$i].upkeep loyal}
{VARIABLE update_support_units[$i].upkeep "$($update_support_units[$i].level - 1)"}
[/then]

[else]
Expand All @@ -672,7 +672,9 @@ _"This unit is capable of distracting opponents, allowing allied units to trespa
x,y=$update_support_units[$i].x,$update_support_units[$i].y

[filter_wml]
upkeep=loyal
[variables]
upkeep_supported=yes
[/variables]
[/filter_wml]

[not]
Expand Down Expand Up @@ -722,10 +724,6 @@ _"This unit is capable of distracting opponents, allowing allied units to trespa
[/filter_adjacent]

[or]
[filter_wml]
upkeep=loyal
[/filter_wml]

[filter_wml]
[variables]
upkeep_supported=yes
Expand Down Expand Up @@ -764,10 +762,6 @@ _"This unit is capable of distracting opponents, allowing allied units to trespa
[/filter_location]

[or]
[filter_wml]
upkeep=loyal
[/filter_wml]

[filter_wml]
[variables]
upkeep_supported=yes
Expand Down Expand Up @@ -807,10 +801,6 @@ _"This unit is capable of distracting opponents, allowing allied units to trespa
[/filter_location]

[or]
[filter_wml]
upkeep=loyal
[/filter_wml]

[filter_wml]
[variables]
upkeep_supported=yes
Expand Down Expand Up @@ -863,7 +853,9 @@ _"This unit is capable of distracting opponents, allowing allied units to trespa

[or]
[filter_wml]
upkeep=loyal
[variables]
upkeep_supported=yes
[/variables]
[/filter_wml]

[not]
Expand All @@ -872,12 +864,6 @@ _"This unit is capable of distracting opponents, allowing allied units to trespa
ability=support
[/filter_adjacent]
[/not]

[filter_wml]
[variables]
upkeep_supported=yes
[/variables]
[/filter_wml]
[/or]
[/and]
[/filter]
Expand Down Expand Up @@ -946,10 +932,6 @@ _"This unit is capable of distracting opponents, allowing allied units to trespa

[store_unit]
[filter]
[filter_wml]
upkeep=loyal
[/filter_wml]

[filter_wml]
[variables]
upkeep_supported=yes
Expand Down

0 comments on commit f75dc8d

Please sign in to comment.