Our regular users may have noticed a bit of weirdness with landmark detection in Tradewind_Rider's new Age of Allure campaign — on the worldmap, for instance, the Bluethrop Mines zone entrance is listed in the "Level exits" section. Turns out Age of Allure is doing some clever stuff with its zone-change and level-change landmarks (sometimes, for instance, where they take you is determined on the fly based on your quest state) that we didn't know how to detect.
Well, I've taken a stab at it, scraping what I can out of the grids' .change_level_check() method, so v5j, just released, should get it right more often.
[v1.0.4-1.0.5] Go to Landmark
Moderator: Moderator
-
Zizzo
- Sher'Tul Godslayer
- Posts: 2670
- Joined: Thu Jan 23, 2003 8:13 pm
- Location: A shallow water area south of Bree
- Contact:
Re: [v1.0.4-1.0.5] Go to Landmark
"Blessed are the yeeks, for they shall inherit Arda..."
-
Zizzo
- Sher'Tul Godslayer
- Posts: 2670
- Joined: Thu Jan 23, 2003 8:13 pm
- Location: A shallow water area south of Bree
- Contact:
Re: [v1.0.4-1.0.5] Go to Landmark
Was taking my Jury-rig Brawler to get his second pair of hands,
but I couldn't find Roenni's workshop on the landmarks list — until I found it listed under "Zones" instead of "Towns/bases" as I was expecting. As it happens, this addon's API (and it still feels weird saying that…
) did not previously allow other addons to influence the landmark type for a zone-change grid; it was always categorized as either "Town/base" or "Zone", and it only checked for towns and bases that it knew how to look for.
So in v5j.1, we add a new hook, "Landmark:zoneIsBase", to allow addons a word in edgewise on zone-change grids if it's not already one of the cases we recognize. In particular, the Race: Jury-rig addon will now list Roenni's workshop under "Towns/bases". We also add to the existing "Landmark:listEntry" callback a convenience method .add_levrange() to append the "(lev.range 10-20)" suffix to your landmark's name as needed.
So in v5j.1, we add a new hook, "Landmark:zoneIsBase", to allow addons a word in edgewise on zone-change grids if it's not already one of the cases we recognize. In particular, the Race: Jury-rig addon will now list Roenni's workshop under "Towns/bases". We also add to the existing "Landmark:listEntry" callback a convenience method .add_levrange() to append the "(lev.range 10-20)" suffix to your landmark's name as needed.
"Blessed are the yeeks, for they shall inherit Arda..."