THoT: Create heroes if they don't exist (#9130)

* fix for #5520
This commit is contained in:
Oleksii 2024-08-03 18:44:57 +03:00 committed by GitHub
parent 24859f861a
commit e768b6ce4c
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
12 changed files with 93 additions and 65 deletions

View file

@ -141,15 +141,7 @@
[unit]
x,y=45,29
id=Movrur
name= _ "Movrur"
[modifications]
{TRAIT_LOYAL_HERO}
[/modifications]
side=1
type=Dwarvish Masked Steelclad
profile=portraits/maskeddwarf3.webp~RIGHT()
random_traits=no
{CHARACTER_STATS_MOVRUR}
animate=yes
[/unit]

View file

@ -36,8 +36,6 @@
# wmllint: recognize Aiglondur
{CHARACTER_STATS_AIGLONDUR}
facing=sw
[/side]
# wmllint: validate-on
@ -82,10 +80,12 @@
[event]
name=prestart
[recall]
id=Movrur
[unit]
{CHARACTER_STATS_MOVRUR}
x,y=13,12
[/recall]
[/unit]
{MODIFY_UNIT (side=1) facing sw}
[lock_view][/lock_view]
[/event]

View file

@ -146,15 +146,15 @@
[/gold_carryover]
[/objectives]
[recall]
id=Angarthing
[unit]
{CHARACTER_STATS_ANGARTHING}
x,y=5,12
[/recall]
[/unit]
[recall]
id=Movrur
[unit]
{CHARACTER_STATS_MOVRUR}
x,y=5,11
[/recall]
[/unit]
{MODIFY_UNIT (side=1) facing se}
[/event]

View file

@ -123,13 +123,15 @@
[/gold_carryover]
[/objectives]
[recall]
id=Angarthing
[/recall]
[unit]
{CHARACTER_STATS_ANGARTHING}
x,y=1,11
[/unit]
[recall]
id=Movrur
[/recall]
[unit]
{CHARACTER_STATS_MOVRUR}
x,y=1,13
[/unit]
{MODIFY_UNIT (side=1) facing ne}
[/event]

View file

@ -138,13 +138,15 @@
[/gold_carryover]
[/objectives]
[recall]
id=Angarthing
[/recall]
[unit]
{CHARACTER_STATS_ANGARTHING}
x,y=3,14
[/unit]
[recall]
id=Movrur
[/recall]
[unit]
{CHARACTER_STATS_MOVRUR}
x,y=3,15
[/unit]
{MODIFY_UNIT (side=1) facing ne}

View file

@ -157,13 +157,15 @@
[/gold_carryover]
[/objectives]
[recall]
id=Angarthing
[/recall]
[unit]
{CHARACTER_STATS_ANGARTHING}
x,y=1,16
[/unit]
[recall]
id=Movrur
[/recall]
[unit]
{CHARACTER_STATS_MOVRUR}
x,y=1,17
[/unit]
{MODIFY_UNIT (side=1) facing se}
[/event]

View file

@ -242,13 +242,15 @@
[/gold_carryover]
[/objectives]
[recall]
id=Angarthing
[/recall]
[unit]
{CHARACTER_STATS_ANGARTHING}
x,y=1,19
[/unit]
[recall]
id=Movrur
[/recall]
[unit]
{CHARACTER_STATS_MOVRUR}
x,y=1,20
[/unit]
{MODIFY_UNIT (side=1) facing ne}
[/event]

View file

@ -152,17 +152,19 @@
[/gold_carryover]
[/objectives]
[unit]
{CHARACTER_STATS_ANGARTHING}
x,y=8,10
[/unit]
[unit]
{CHARACTER_STATS_MOVRUR}
x,y=8,12
[/unit]
{RECALL_VETERAN (Dwarvish Dragonguard) 8 10}
{RECALL_VETERAN (Dwarvish Lord) 8 12}
[recall]
id=Angarthing
[/recall]
[recall]
id=Movrur
[/recall]
{MODIFY_UNIT (side=1) facing se}
[/event]

View file

@ -228,13 +228,15 @@
{IS_LAST_SCENARIO}
[/objectives]
[recall]
id=Angarthing
[/recall]
[unit]
{CHARACTER_STATS_ANGARTHING}
x,y=4,18
[/unit]
[recall]
id=Dulcatulos
[/recall]
[unit]
{CHARACTER_STATS_DULCATULOS}
x,y=4,19
[/unit]
{MODIFY_UNIT (side=1) facing se}

View file

@ -96,15 +96,15 @@
kill=yes
[/store_unit]
[recall]
id=Angarthing
[unit]
{CHARACTER_STATS_ANGARTHING}
x,y=16,10
[/recall]
[/unit]
[recall]
id=Dulcatulos
[unit]
{CHARACTER_STATS_DULCATULOS}
x,y=16,12
[/recall]
[/unit]
{RECALL_VETERAN (Dwarvish Lord) 17 10}
{RECALL_VETERAN (Dwarvish Dragonguard) 17 13}

View file

@ -25,6 +25,30 @@
[/modifications]
#enddef
#define CHARACTER_STATS_ANGARTHING
type=Dwarvish Witness
id=Angarthing
name= _ "Angarthing"
profile=portraits/angarthing.webp
unrenamable=yes
[modifications]
{TRAIT_LOYAL_HERO}
{TRAIT_QUICK}
[/modifications]
#enddef
#define CHARACTER_STATS_MOVRUR
type=Dwarvish Masked Steelclad
id=Movrur
name= _ "Movrur"
profile=portraits/maskeddwarf3.webp~RIGHT()
unrenamable=yes
[modifications]
{TRAIT_LOYAL_HERO}
[/modifications]
random_traits=no
#enddef
#define CHARACTER_STATS_DULCATULOS_AS_LEADER
type=Dwarvish Steelclad
id=Dulcatulos

View file

@ -7,7 +7,7 @@
race=dwarf
[/or]
[not]
id=Aiglondur,Dulcatulos
id=Aiglondur,Dulcatulos,Movrur
[/not]
x,y={X},{Y}
[/recall]