Skip to content

Commit 70acce5

Browse files
authored
Merge pull request #79 from wduda/develop
Merge for v1.0.13beta
2 parents 45d67d8 + d144883 commit 70acce5

7 files changed

+21
-18
lines changed

CHANGELOG.md

+2
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
# Changelog
22

3+
## v1.0.13beta
4+
- fixed plugin crash for Wardens with travel to Trestlebridge learned (bugfix)
35
## v1.0.12beta
46
- fixed unloadable settings for 64bit DE and FR clients (bugfix)
57
- fixed label of Hultvis hunter guide in FR client (enhancement)

TravelWindowII.plugin

+1-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
<Information>
44
<Name>Travel Window II</Name>
55
<Author>Hyoss</Author>
6-
<Version>v1.0.12beta</Version>
6+
<Version>v1.0.13beta</Version>
77
<Description>
88
This plugin creates a single window that contains all the available travel skills, including the race, class and reputation skills.
99
It is a further development of Travel Window, that has been worked on by multiple authors before.

TravelWindowII.plugincompendium

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
<PluginConfig xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
33
<Id>1113</Id>
44
<Name>Travel Window II</Name>
5-
<Version>v1.0.12beta</Version>
5+
<Version>v1.0.13beta</Version>
66
<Author>Hyoss</Author>
77
<InfoUrl>http://www.lotrointerface.com/downloads/info1113</InfoUrl>
88
<DownloadUrl>http://www.lotrointerface.com/downloads/download1113</DownloadUrl>

doc/lotrointerface.md

+3
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,9 @@ How to handle the settings reset introduced by v1.0.7beta?
4141
[/LIST]
4242

4343
Version history:
44+
v1.0.13beta
45+
- fixed plugin crash for Wardens with travel to Trestlebridge learned (bugfix)
46+
4447
v1.0.12beta
4548
- fixed unloadable settings for 64bit DE and FR clients (bugfix)
4649
- fixed label of Hultvis hunter guide in FR client (bugfix)

src/IndexedDictionaryDe.lua

+2-2
Original file line numberDiff line numberDiff line change
@@ -190,7 +190,7 @@ function TravelDictionaries:CreateDictionaries()
190190
wardenLocations:AddSkill("Appell in Limlók", "0x70057635", "Limlók (Appell)");
191191
wardenLocations:AddSkill("Appell in Annâk-khurfu", "0x70058572", "Annâk-khurfu (Appell)");
192192
wardenLocations:AddSkill("Appell am Händlerkai", "0x70059D09", "Händlerkai (Appell)");
193-
wardenLocations:AddSkill("Appell in Schragen", "0x700559D10", "Schragen (Appell)");
193+
wardenLocations:AddSkill("Appell in Schragen", "0x70059D10", "Schragen (Appell)");
194194

195195
racialLocations:AddSkill("Rückkehr nach Bree", "0x700062F6", "Bree (Rasse)");
196196
racialLocations:AddSkill("Rückkehr ins Auenland", "0x700062C8", "Michelbinge (Rasse)");
@@ -253,7 +253,7 @@ function TravelDictionaries:CreateDictionaries()
253253
repLocations:AddSkill("Zurück nach Estolad Lân", "0x700551F8", "Estolad Lân (Ruf)");
254254
repLocations:AddSkill("Rückkehr nach Limlók", "0x70057629", "Limlók (Ruf)");
255255
repLocations:AddSkill("Rückkehr nach Annâk-khurfu", "0x7005856F", "Annâk-khurfu (Ruf)");
256-
repLocations:AddSkill("Kehrt zum Händlerkai zurück.", "0x70059D0E", "Händlerkai (Rep)");
256+
repLocations:AddSkill("Kehrt zum Händlerkai zurück.", "0x70059D0E", "Händlerkai (Ruf)");
257257
repLocations:AddSkill("Kehrt nach Schragen zurück.", "0x70059D12", "Schragen (Ruf)");
258258

259259
-- monster player maps

src/IndexedDictionaryEn.lua

+1-1
Original file line numberDiff line numberDiff line change
@@ -190,7 +190,7 @@ function TravelDictionaries:CreateDictionaries()
190190
wardenLocations:AddSkill("Muster in Limlók", "0x70057635", "Limlók (Muster)");
191191
wardenLocations:AddSkill("Muster in Annâk-khurfu", "0x70058572", "Annâk-khurfu (Muster)");
192192
wardenLocations:AddSkill("Muster in Trader's Wharf", "0x70059D09", "Trader's Wharf (Muster)");
193-
wardenLocations:AddSkill("Muster in Trestlebridge", "0x700559D10", "Trestlebridge (Muster)");
193+
wardenLocations:AddSkill("Muster in Trestlebridge", "0x70059D10", "Trestlebridge (Muster)");
194194

195195
-- add the racial travel skills
196196
racialLocations:AddSkill("Return to Bree", "0x700062F6", "Bree (Racial)");

src/TravelWindow.lua

+11-13
Original file line numberDiff line numberDiff line change
@@ -298,7 +298,7 @@ function TravelWindow:Constructor()
298298
end
299299

300300
Plugins["Travel Window II"].Load = function(sender, args)
301-
Turbine.Shell.WriteLine("<u><rgb=#DAA520>Travel Window II v" .. Plugins["Travel Window II"]:GetVersion() .. " by Hyoss</rgb></u>");
301+
Turbine.Shell.WriteLine("<u><rgb=#DAA520>Travel Window II " .. Plugins["Travel Window II"]:GetVersion() .. " by Hyoss</rgb></u>");
302302
end
303303
end
304304

@@ -341,7 +341,7 @@ end
341341

342342
function TravelWindow:LoadSettings()
343343
-- load the self.settings
344-
-- If a value is not available, set a default value
344+
-- if a value is not available, set a default value
345345

346346
-- load TWII settings file
347347
pcall(function()
@@ -743,7 +743,7 @@ function TravelWindow:SetShortcuts()
743743
TravelShortcuts = {};
744744
local shortcutIndex = 1;
745745

746-
-- set the travel skills for free people
746+
-- set the either the travel skills for free people or monsters
747747
if (PlayerAlignment == Turbine.Gameplay.Alignment.FreePeople) then
748748
-- set the generic travel items
749749
for i = 1, travelCount[3], 1 do
@@ -774,12 +774,12 @@ function TravelWindow:SetShortcuts()
774774
-- add the race travel to the list
775775
local racialShortcutIndex = self:TableIndex(settings.order, racialLocations:IdAtIndex(settings.playerRaceKey));
776776
table.insert(TravelShortcuts, TravelShortcut(6.0,
777-
racialLocations:IdAtIndex(settings.playerRaceKey),
778-
racialLocations:NameAtIndex(settings.playerRaceKey),
779-
2,
780-
racialShortcutIndex,
781-
settings.enabled[racialLocations:IdAtIndex(settings.playerRaceKey)],
782-
racialLocations:LabelAtIndex(settings.playerRaceKey)));
777+
racialLocations:IdAtIndex(settings.playerRaceKey),
778+
racialLocations:NameAtIndex(settings.playerRaceKey),
779+
2,
780+
racialShortcutIndex,
781+
settings.enabled[racialLocations:IdAtIndex(settings.playerRaceKey)],
782+
racialLocations:LabelAtIndex(settings.playerRaceKey)));
783783

784784
-- set the reputation travel items
785785
for i = 1, travelCount[4], 1 do
@@ -1035,16 +1035,14 @@ function TravelWindow:TableIndex(tableToSearch, elementToSearchFor)
10351035
end
10361036

10371037
function TravelWindow:SortShortcuts()
1038-
-- ensure we have more than 2 shortcuts
1038+
-- do not sort if there is one or less shortcuts
10391039
if #TravelShortcuts < 2 then
1040-
Turbine.Engine.WriteLine("Table does not have enough data in it");
10411040
return;
10421041
end
10431042

1044-
-- perform the bubble sort
1043+
-- perform a bubble sort
10451044
for i = 1, #TravelShortcuts do
10461045
for j = 2, #TravelShortcuts do
1047-
10481046
-- if the index of the second shortcut is lower than the index of
10491047
-- the first, switch the shortcuts
10501048
if TravelShortcuts[j]:GetIndex() < TravelShortcuts[j - 1]:GetIndex() then

0 commit comments

Comments
 (0)