forked from wesnoth/wesnoth
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Command line --preprocess missing some macros.
Command line --preprocess doesn't process macros in data/core/units.cfg. Fixes wesnoth#4152.
- Loading branch information
1 parent
ae2d89b
commit 95286cb
Showing
2 changed files
with
129 additions
and
120 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,129 @@ | ||
# a special macro to define slightly less nimble elves such | ||
# as fighters, who don't do quite so well in forest | ||
#define LESS_NIMBLE_ELF | ||
[defense] | ||
forest=40 | ||
[/defense] | ||
#enddef | ||
|
||
#define WOODLAND_RESISTANCE | ||
[resistance] | ||
blade=100 | ||
pierce=100 | ||
impact=100 | ||
fire=100 | ||
cold=100 | ||
arcane=110 | ||
[/resistance] | ||
#enddef | ||
|
||
#define FLY_MOVE | ||
deep_water=1 | ||
shallow_water=1 | ||
reef=1 | ||
swamp_water=1 | ||
flat=1 | ||
sand=1 | ||
forest=1 | ||
hills=1 | ||
mountains=1 | ||
village=1 | ||
castle=1 | ||
frozen=1 | ||
unwalkable=1 | ||
#enddef | ||
|
||
#define FLY_DEFENSE DEFENSE_NUMBER | ||
deep_water={DEFENSE_NUMBER} | ||
shallow_water={DEFENSE_NUMBER} | ||
reef={DEFENSE_NUMBER} | ||
swamp_water={DEFENSE_NUMBER} | ||
flat={DEFENSE_NUMBER} | ||
sand={DEFENSE_NUMBER} | ||
forest={DEFENSE_NUMBER} | ||
hills={DEFENSE_NUMBER} | ||
mountains={DEFENSE_NUMBER} | ||
village={DEFENSE_NUMBER} | ||
castle={DEFENSE_NUMBER} | ||
frozen={DEFENSE_NUMBER} | ||
unwalkable={DEFENSE_NUMBER} | ||
#enddef | ||
|
||
#define FLY_RESISTANCE | ||
[resistance] | ||
blade=100 | ||
pierce=100 | ||
impact=120 | ||
fire=100 | ||
cold=100 | ||
arcane=80 | ||
[/resistance] | ||
#enddef | ||
|
||
#define MOUNTAIN_MOVE | ||
[movement_costs] | ||
shallow_water=3 | ||
reef=2 | ||
swamp_water=3 | ||
flat=1 | ||
sand=1 | ||
forest=1 | ||
hills=1 | ||
mountains=1 | ||
village=1 | ||
castle=1 | ||
cave=1 | ||
frozen=2 | ||
fungus=1 | ||
[/movement_costs] | ||
#enddef | ||
|
||
#define MOUNTAIN_DEFENSE | ||
[defense] | ||
shallow_water=80 | ||
reef=70 | ||
swamp_water=80 | ||
flat=70 | ||
sand=70 | ||
forest=70 | ||
hills=40 | ||
mountains=30 | ||
village=50 | ||
castle=40 | ||
cave=50 | ||
frozen=70 | ||
fungus=60 | ||
[/defense] | ||
#enddef | ||
|
||
#define DRAKEFLY_MOVE | ||
[movement_costs] | ||
deep_water=2 | ||
shallow_water=1 | ||
reef=1 | ||
swamp_water=1 | ||
flat=1 | ||
sand=1 | ||
forest=1 | ||
hills=1 | ||
mountains=1 | ||
village=1 | ||
castle=1 | ||
cave=3 | ||
fungus=2 | ||
frozen=2 | ||
unwalkable=1 | ||
[/movement_costs] | ||
#enddef | ||
|
||
#define DRAKEFLY_RESISTANCE | ||
[resistance] | ||
blade=90 | ||
pierce=110 | ||
impact=80 | ||
fire=50 | ||
cold=150 | ||
arcane=130 | ||
[/resistance] | ||
#enddef | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters