Skip to content

Commit

Permalink
DM: Fix Delfador portrait and character progression
Browse files Browse the repository at this point in the history
Previously young_delfador.png ended up unused in play. From cleanup in
previous commit, it looks like the portrait change was intended for when
Delfador reached level 3, so that has been set now.

Previously, old_delfador.png was unused, as Delfador never became
an elder mage. Is now used for S20 on, where Delfador is now an elder mage.
  • Loading branch information
sigurdfdragon authored and GregoryLundberg committed Nov 30, 2017
1 parent b520d45 commit e0b04db
Show file tree
Hide file tree
Showing 7 changed files with 29 additions and 28 deletions.
Expand Up @@ -185,7 +185,7 @@
{MODIFY_UNIT id=Eldred hitpoints 1}

[move_unit_fake]
type=$delfador_store.type
type=Elder Mage
x=25,24,24
y=18,17,16
[/move_unit_fake]
Expand Down
Expand Up @@ -42,7 +42,7 @@
#### Delfador's code ####
#wmllint: validate-off
[side]
{YOUNG_DELFADOR}
{OLD_DELFADOR}
side=1
save_id=Player
persistent=yes
Expand Down
Expand Up @@ -25,7 +25,7 @@

#wmllint: validate-off
[side]
{YOUNG_DELFADOR}
{OLD_DELFADOR}
side=1
save_id=Player
persistent=yes
Expand Down
1 change: 0 additions & 1 deletion data/campaigns/Delfadors_Memoirs/units/Journeyman_Mage.cfg
Expand Up @@ -5,7 +5,6 @@
[/base_unit]
id=Journeyman Mage
name=_"Journeyman Mage"
# profile="portraits/young_delfador.png"
movement=6 # To "travel far", or at least a little faster
alignment=neutral # Rather than lawful
cost=25 # A little more expensive
Expand Down
1 change: 0 additions & 1 deletion data/campaigns/Delfadors_Memoirs/units/Mage_Magister.cfg
Expand Up @@ -14,7 +14,6 @@
fire=60 # Add fire resistance
[/resistance]
movement=6 # A little faster
# advances_to=Elder Mage
cost=125 # Rather more expensive
description=_"A Mage Magister, though equivalent in degree to a Great Mage, has special abilities of command and healing derived from extensive experience of battle."+{SPECIAL_NOTES}+{SPECIAL_NOTES_MAGICAL}+{SPECIAL_NOTES_LEADERSHIP}+{SPECIAL_NOTES_HEALS}
[attack]
Expand Down
17 changes: 15 additions & 2 deletions data/campaigns/Delfadors_Memoirs/utils/characters.cfg
Expand Up @@ -27,14 +27,27 @@
[effect]
apply_to=profile
[filter]
type=Elder Mage
type=Mage Commander,Mage Magister
[/filter]
portrait=portraits/old_delfador.png
portrait=portraits/young_delfador.png
[/effect]
[/object]
[/modifications]
#enddef

#define OLD_DELFADOR
id=Delfador
name= _"Delfador"
type=Elder Mage
profile="portraits/old_delfador.png"
canrecruit=yes
unrenamable=yes
[modifications]
{TRAIT_RESILIENT}
{TRAIT_INTELLIGENT}
[/modifications]
#enddef

#define CHANTAL
type=Elvish Druid
id=Chantal
Expand Down
32 changes: 11 additions & 21 deletions data/campaigns/Delfadors_Memoirs/utils/sides.cfg
Expand Up @@ -628,28 +628,18 @@
# At the end of Prince of Wesnoth (20), Delfador intervenes.

#define DELFADOR_ARRIVES X Y
[unstore_unit]
variable=delfador_store
find_vacant=yes
x,y={X},{Y}
[/unstore_unit]
{CLEAR_VARIABLE delfador_store}
[modify_unit]
[filter]
id=Delfador
[/filter]
type=""
[/modify_unit]
[heal_unit]
[filter]
id=Delfador
[/filter]
amount=full
animate=no
moves=full
restore_attacks=yes
restore_statuses=yes
[/heal_unit]
# recreate Delfador as he is now 54, 26 years older than last time.
[unit]
{OLD_DELFADOR}
x,y={X},{Y}
placement=map
passable=yes
overwrite=no
facing=ne
side=1
[/unit]
# clears any fog around his appearance
[redraw]
side=1
[/redraw]
Expand Down

0 comments on commit e0b04db

Please sign in to comment.