Skip to content

Commit

Permalink
Low: Work around OOS caused by [advancefrom]
Browse files Browse the repository at this point in the history
Cleaner Alternative: not allowing the advancement
  • Loading branch information
sevu committed Mar 30, 2019
1 parent eb43c55 commit f84f7ee
Showing 1 changed file with 17 additions and 0 deletions.
17 changes: 17 additions & 0 deletions data/campaigns/Legend_of_Wesmere/_main.cfg
Expand Up @@ -28,6 +28,9 @@
#endif

[campaign]
# "extra_defines" cause OOS errors if used to change unit types (e.g. their advancements)
# Using event below instead to change advancement. Though players won't that they can advance to this unit.
# leaving extra define so it looks still right from the hosts perspective.
extra_defines=ENABLE_DWARVISH_RUNESMITH
id=LOW
define=CAMPAIGN_LOW
Expand Down Expand Up @@ -56,6 +59,20 @@
{CAMPAIGN_DIFFICULTY NORMAL "units/elves-wood/lord.png~RC(magenta>brown)" ( _ "Lord") ( _ "Normal")} {DEFAULT_DIFFICULTY}
{CAMPAIGN_DIFFICULTY HARD "units/elves-wood/high-lord.png~RC(magenta>brown)" ( _ "High Lord") ( _ "Challenging")}

[event]
name=unit placed
[filter]
type=Dwarvish Fighter
[/filter]

[modify_unit]
[filter]
id=$unit.id
[/filter]
advances_to=Dwarvish Steelclad,Dwarvish Runesmith
[/modify_unit]
[/event]

[about]
title= _ "Creator and Lead Designer"
[entry]
Expand Down

0 comments on commit f84f7ee

Please sign in to comment.