Skip to content

Commit

Permalink
Removed all redundant {IS_LOYAL} (#123)
Browse files Browse the repository at this point in the history
* Removed all redundant {IS_LOYAL}
  • Loading branch information
Toranks authored Mar 31, 2023
1 parent 62ff63f commit f2e5475
Show file tree
Hide file tree
Showing 12 changed files with 1 addition and 40 deletions.
1 change: 0 additions & 1 deletion macros/ano-20macros.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -113,7 +113,6 @@
[modifications]
{TRAIT_LOYAL}
[/modifications]
{IS_LOYAL}
[/unit]
#enddef

Expand Down
8 changes: 0 additions & 8 deletions scenarios/01_Breaking_the_Circle.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -184,7 +184,6 @@
{TRAIT_RESILIENT}
#endif
[/modifications]
{IS_LOYAL}
[/unit]
[unit]
id=Iree Rothe
Expand All @@ -200,7 +199,6 @@
{TRAIT_RESILIENT}
#endif
[/modifications]
{IS_LOYAL}
[/unit]
[unit]
id=Reuke Rothe
Expand All @@ -220,7 +218,6 @@
{TRAIT_RESILIENT}
#endif
[/modifications]
{IS_LOYAL}
[/unit]
[unit]
id=Strome Ohavenort
Expand All @@ -236,7 +233,6 @@
{TRAIT_RESILIENT}
#endif
[/modifications]
{IS_LOYAL}
[/unit]
[unit]
id=Reonee
Expand All @@ -256,7 +252,6 @@
{TRAIT_RESILIENT}
#endif
[/modifications]
{IS_LOYAL}
[/unit]
[unit]
id=Raoke
Expand All @@ -276,7 +271,6 @@
{TRAIT_STRONG}
#endif
[/modifications]
{IS_LOYAL}
[/unit]
#ifdef NIGHTMARE
# We are still in a side declaration here and I don't like leaving empty branches in my ifdefs:
Expand All @@ -299,7 +293,6 @@
{TRAIT_STRONG}
#endif
[/modifications]
{IS_LOYAL}
[/unit]
#endif
#endif # NIGHTMARE
Expand All @@ -316,7 +309,6 @@
[modifications]
{TRAIT_LOYAL}
[/modifications]
{IS_LOYAL}
[/unit]
#endif
[/side]
Expand Down
1 change: 0 additions & 1 deletion scenarios/07_Ally_From_the_Past.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -331,7 +331,6 @@
[modifications]
{TRAIT_LOYAL}
[/modifications]
{IS_LOYAL}
[/unit]
{MESSAGE (Karl Regven) (portraits/regven.png) (Karl Regven) _"My lord, I was not able to stop her."}
{MSG_Karen _"Don't be too hard on him, father. He really tried. So, this is little Haldric whom you told us about? He looks quite normal, not Akladian at all."}
Expand Down
1 change: 0 additions & 1 deletion scenarios/08_Outlaw_Base.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -465,7 +465,6 @@
{TRAIT_LOYAL}
# (maybe give him an additional trait on EASY?)
[/modifications]
{IS_LOYAL}
[/unit]
{CLEAR_VARIABLE ano_robroe_unit}
# (new recruits are dealt with later)
Expand Down
3 changes: 0 additions & 3 deletions scenarios/13_Scouting.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -183,7 +183,6 @@
{TRAIT_LOYAL}
{TRAIT_DEXTROUS}
[/modifications]
{IS_LOYAL}
[/unit]
{ELSE}
{MESSAGE (narrator) ({IMG}) () _"Ha, ha, and I thought you were serious."}
Expand Down Expand Up @@ -251,7 +250,6 @@
{TRAIT_STRONG}
{TRAIT_RESILIENT}
[/modifications]
{IS_LOYAL}
[/unit]
{END_IF}
#IMPOSSIBLE
Expand Down Expand Up @@ -900,7 +898,6 @@
{TRAIT_DEXTROUS}
{TRAIT_INTELLIGENT}
[/modifications]
{IS_LOYAL}
[/unit]
{MSGW_Ruvio _"Someone is hiding here!"}
{IF ano_lorin_joined equals yes}
Expand Down
6 changes: 0 additions & 6 deletions scenarios/14d_Avenging_Ruen.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -326,7 +326,6 @@
{TRAIT_STRONG}
{TRAIT_RESILIENT}
[/modifications]
{IS_LOYAL}
[/unit]
[unit]
type=Peasant
Expand All @@ -341,7 +340,6 @@
{TRAIT_RESILIENT}
# maybe add an image mod to make his portrait and/or sprite smaller?
[/modifications]
{IS_LOYAL}
[/unit]
[unit]
type=Peasant
Expand All @@ -355,7 +353,6 @@
{TRAIT_QUICK}
{TRAIT_INTELLIGENT}
[/modifications]
{IS_LOYAL}
[/unit]
{MESSAGE (Quick Herman) () (Quick Herman) _"Hurray! We are free! Now, death to the orcs!"}
[/event]
Expand All @@ -380,7 +377,6 @@
{TRAIT_STRONG}
{TRAIT_RESILIENT}
[/modifications]
{IS_LOYAL}
[/unit]
[unit]
type=Peasant
Expand All @@ -394,7 +390,6 @@
{TRAIT_DEXTROUS}
{TRAIT_RESILIENT}
[/modifications]
{IS_LOYAL}
[/unit]
[unit]
type=Peasant
Expand All @@ -408,7 +403,6 @@
{TRAIT_QUICK}
{TRAIT_INTELLIGENT}
[/modifications]
{IS_LOYAL}
[/unit]
{MESSAGE (Fast Robin) () (Fast Robin) _"Hurray! We are free! Now, death to the orcs!"}
[/event]
Expand Down
4 changes: 0 additions & 4 deletions scenarios/18_Start_of_the_Quest.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -330,7 +330,6 @@
{TRAIT_LOYAL}
{TRAIT_RESILIENT}
[/modifications]
{IS_LOYAL}
[/unit]
{ELSE}
{MESSAGE (narrator) (portraits/akladian_peasant.png) (_"Village leader") _"Fight for you? Against my own kin? No thanks."}
Expand Down Expand Up @@ -404,7 +403,6 @@
{TRAIT_STRONG}
{TRAIT_RESILIENT}
[/modifications]
{IS_LOYAL}
[/unit]
{ELSE}
# (no)
Expand All @@ -429,7 +427,6 @@
{TRAIT_STRONG}
{TRAIT_RESILIENT}
[/modifications]
{IS_LOYAL}
[/unit]
{ELSE}
# (no)
Expand Down Expand Up @@ -515,7 +512,6 @@
{TRAIT_LOYAL}
{TRAIT_RESILIENT}
[/modifications]
{IS_LOYAL}
[/unit]
{ELSE}
# (no)
Expand Down
1 change: 0 additions & 1 deletion scenarios/19c_The_Oracle.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -1831,7 +1831,6 @@
{TRAIT_STRONG}
#endif
[/modifications]
{IS_LOYAL}
[/unit]
[delay]
time=100
Expand Down
2 changes: 0 additions & 2 deletions scenarios/20_Okladia.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -107,7 +107,6 @@
{TRAIT_INTELLIGENT}
#endif
[/modifications]
{IS_LOYAL}
[/unit]
{MAKE_HERO Deorien}
{END_IF}
Expand Down Expand Up @@ -378,7 +377,6 @@
{TRAIT_STRONG}
{TRAIT_LOYAL}
[/modifications]
{IS_LOYAL}
[/unit]
{END_IF}
{ELSE_IF ano_opt equals deorien}
Expand Down
5 changes: 0 additions & 5 deletions scenarios/23_Trapped.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -668,7 +668,6 @@
{TRAIT_STRONG}
{TRAIT_RESILIENT}
[/modifications]
{IS_LOYAL}
#endif
[/unit]
[gold]
Expand All @@ -692,7 +691,6 @@
{TRAIT_LOYAL}
{TRAIT_RESILIENT}
[/modifications]
{IS_LOYAL}
[/unit]
[unit]
side=3
Expand All @@ -703,7 +701,6 @@
{TRAIT_LOYAL}
{TRAIT_RESILIENT}
[/modifications]
{IS_LOYAL}
[/unit]
#endif
[/event]
Expand All @@ -723,7 +720,6 @@
{TRAIT_LOYAL}
{TRAIT_RESILIENT}
[/modifications]
{IS_LOYAL}
[/unit]
[unit]
side=3
Expand All @@ -734,7 +730,6 @@
{TRAIT_LOYAL}
{TRAIT_RESILIENT}
[/modifications]
{IS_LOYAL}
[/unit]
#endif
[/event]
Expand Down
7 changes: 0 additions & 7 deletions scenarios/25_The_Awakening.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,6 @@
{TRAIT_STRONG}
{TRAIT_RESILIENT}
[/modifications]
{IS_LOYAL}
[/unit]
#ifdef EASY
[gold]
Expand All @@ -88,7 +87,6 @@
{TRAIT_QUICK}
{TRAIT_INTELLIGENT}
[/modifications]
{IS_LOYAL}
[/unit]
#ifdef EASY
[gold]
Expand All @@ -109,7 +107,6 @@
{TRAIT_QUICK}
{TRAIT_RESILIENT}
[/modifications]
{IS_LOYAL}
[/unit]
#ifdef EASY
[gold]
Expand All @@ -130,7 +127,6 @@
{TRAIT_QUICK}
{TRAIT_STRONG}
[/modifications]
{IS_LOYAL}
[/unit]
#ifdef EASY
[gold]
Expand All @@ -151,7 +147,6 @@
{TRAIT_INTELLIGENT}
{TRAIT_STRONG}
[/modifications]
{IS_LOYAL}
[/unit]
#ifdef EASY
[gold]
Expand All @@ -172,7 +167,6 @@
{TRAIT_INTELLIGENT}
{TRAIT_RESILIENT}
[/modifications]
{IS_LOYAL}
[/unit]
#ifdef EASY
[gold]
Expand Down Expand Up @@ -217,7 +211,6 @@
{TRAIT_STRONG}
{TRAIT_RESILIENT}
[/modifications]
{IS_LOYAL}
[/unit]
{MESSAGE ({CLANSMAN_ID}) () ({CLANSMAN_ID}) _"Long live our king Gawen Haldric! It will be honour to fight for you, my king!"}
#enddef
Expand Down
2 changes: 1 addition & 1 deletion scenarios/27_Orannon.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -321,7 +321,7 @@
{INCOME4 6 8 10 12}
[modifications]
{TRAIT_WEAK}
{TRAIT_LOYAL}
{TRAIT_LOYAL OVERLAY=""}
{TRAIT_INTELLIGENT}
[/modifications]
[ai]
Expand Down

0 comments on commit f2e5475

Please sign in to comment.