Important Dates

Latest Posts

Topic: Terrain enhancement addon

OIPUN
Avatar
Topic Opener
Joined: 2020-11-17, 09:34
Posts: 139
Ranking
At home in WL-forums
Location: Czech
Posted at: Yesterday 15:42

I think the terrain enhancement property for addons is wrong in the documentation. Name of the enhancement is missing. I tried "wl.Descriptions():modify_unit("terrain", "winter_taiga1", "enhancement", "meadow", "amazons")". Addon looks fine but the enhancement doesn't work. Does anyone know how should the correct syntax look like.


Attachment:
Snímek obrazovky 2024-11-13 152211.png

Top Quote
Nordfriese
Avatar
Joined: 2017-01-17, 18:07
Posts: 2041
OS: Debian Testing
Version: Latest master
Ranking
One Elder of Players
Location: 0x55555d3a34c0
Posted at: Yesterday 16:49

Looking at the code I think the order of "meadow" and "amazons" should be the other way around, like so:

wl.Descriptions():modify_unit("terrain", "winter_taiga1", "enhancement", "amazons", "meadow")

Please check if this works for you.

The "category" argument is missing from the doc, will make a branch to fix this. – Edit: PR is up

Edited: Yesterday 16:58

Top Quote
OIPUN
Avatar
Topic Opener
Joined: 2020-11-17, 09:34
Posts: 139
Ranking
At home in WL-forums
Location: Czech
Posted at: Yesterday 17:28

Yes, it works. Last two arguments should be switched.


Top Quote