Skip to content

Commit

Permalink
DM: Fix #3277
Browse files Browse the repository at this point in the history
Make heroes have no upkeep, and remove hero status from character that
didn't need it. Minor touch ups.
  • Loading branch information
sigurdfdragon committed Jul 10, 2018
1 parent f595e4f commit 401c943
Show file tree
Hide file tree
Showing 3 changed files with 37 additions and 7 deletions.
1 change: 0 additions & 1 deletion data/campaigns/Delfadors_Memoirs/scenarios/01_Overture.cfg
Expand Up @@ -69,7 +69,6 @@
facing=nw
side=1
x,y=18,15
{IS_HERO}
[/unit]
[/event]

Expand Down
11 changes: 6 additions & 5 deletions data/campaigns/Delfadors_Memoirs/scenarios/17_A_New_Ally.cfg
Expand Up @@ -43,12 +43,13 @@
{RESTORE_WESNOTHIAN_VETERANS}
{MODIFY_UNIT (side=1) facing nw}

{NAMED_UNIT 2 (Dwarvish Fighter) 5 10 "Relgorn" (_"Relgorn") (ai_special=guardian)}
{FACING se}
[+unit]
unrenamable=yes
[unit]
{RELGORN}
facing=se
side=2
x,y=5,10
ai_special=guardian
[/unit]
{MAKE_HERO Relgorn}
{NAMED_UNIT 2 (Dwarvish Fighter) 9 7 "Udrin" (_"Udrin") (ai_special=guardian)}
{FACING se}
[/event]
Expand Down
32 changes: 31 additions & 1 deletion data/campaigns/Delfadors_Memoirs/utils/characters.cfg
@@ -1,4 +1,16 @@
#textdomain wesnoth-dm

#define OBJECT_LOYAL
# There are several changes of leader to hero & vice versa during the campaign,
# so this object is given to any that may have hero status at some point to ensure
# the unit has no upkeep and to avoid taking up another trait slot
[object]
[effect]
apply_to=loyal
[/effect]
[/object]
#enddef

#define KALENZ
id=Kalenz
name= _"Kalenz"
Expand All @@ -7,6 +19,7 @@
type=Elvish High Lord
side=1
[modifications]
{OBJECT_LOYAL}
{TRAIT_STRONG}
{TRAIT_RESILIENT}
[/modifications]
Expand All @@ -20,9 +33,9 @@
canrecruit=yes
unrenamable=yes
[modifications]
{OBJECT_LOYAL}
{TRAIT_RESILIENT}
{TRAIT_INTELLIGENT}

[object]
[effect]
apply_to=profile
Expand All @@ -43,6 +56,7 @@
canrecruit=yes
unrenamable=yes
[modifications]
{OBJECT_LOYAL}
{TRAIT_RESILIENT}
{TRAIT_INTELLIGENT}
[/modifications]
Expand All @@ -59,6 +73,7 @@
controller=ai
recruit=Elvish Ranger,Elvish Rider
[modifications]
{OBJECT_LOYAL}
{TRAIT_INTELLIGENT}
{TRAIT_RESILIENT}
[object]
Expand All @@ -81,6 +96,7 @@
profile="portraits/lionel.png"
{IS_HERO}
[modifications]
{OBJECT_LOYAL}
{TRAIT_FEARLESS}
{TRAIT_STRONG}
[/modifications]
Expand All @@ -92,11 +108,25 @@
name= _ "Ulrek"
unrenamable=yes
[modifications]
{OBJECT_LOYAL}
{TRAIT_QUICK}
{TRAIT_STRONG}
[/modifications]
#enddef

#define RELGORN
type=Dwarvish Fighter
id=Relgorn
name= _ "Relgorn"
unrenamable=yes # Shows up in HttT S14
{IS_HERO}
[modifications]
{OBJECT_LOYAL}
{TRAIT_STRONG}
{TRAIT_HEALTHY}
[/modifications]
#enddef

#define METHOR
id=Methor
name=_"Methor"
Expand Down

0 comments on commit 401c943

Please sign in to comment.