DM Fix bug: Kalenz takes over

Kalenz should take over a no_leader side, have his unit brought in as a [unit] tag, and his unit should not have side attributes.

This caused a number of errors in stderr, including dumping the full WML for the scene.
This commit is contained in:
Gregory A Lundberg 2016-07-24 16:06:08 -05:00
parent 8d3894a565
commit d1c6a4ab0c
4 changed files with 26 additions and 7 deletions

View File

@ -33,6 +33,8 @@
# wmllint: recognize Kalenz
# wmllint: validate-off
[side]
id=Delfador
name= _ "Delfador"
side=1
no_leader=yes
controller=human

View File

@ -24,8 +24,14 @@
#wmllint: validate-off
[side]
{KALENZ}
# wmllint: recognize Kalenz
id=Delfador
name= _ "Delfador"
side=1
no_leader=yes
controller=human
persistent=yes
save_id=Player
recruit={ELVES}
fog=yes
{FLAG_VARIANT wood-elvish}
@ -109,6 +115,10 @@
[event]
name=prestart
[recall]
id=Kalenz
x,y=24,8
[/recall]
[recall]
id=Chantal
[/recall]

View File

@ -42,11 +42,22 @@
#### Kalenz's code ####
#wmllint: validate-off
[side]
{KALENZ}
canrecruit=yes
# wmllint: recognize Kalenz
recruit={ELVES}
id=Delfador
name= _ "Delfador"
side=1
no_leader=yes
controller=human
save_id=Player
persistent=yes
fog=yes
[unit]
{KALENZ}
x=2
y=19
canrecruit=yes
[/unit]
{GOLD 130 100 100}
{FLAG_VARIANT wood-elvish}
[/side]

View File

@ -1,15 +1,11 @@
#textdomain wesnoth-dm
#define KALENZ
id=Kalenz
save_id=Player
persistent=yes
name= _"Kalenz"
unrenamable=yes
profile="portraits/kalenz.png"
type=Elvish High Lord
side=1
controller=human
team_name=player
[modifications]
{TRAIT_STRONG}
{TRAIT_RESILIENT}