Skip to content

Commit

Permalink
fixed crusader influence type request params; converted files to UTF-…
Browse files Browse the repository at this point in the history
…8 BOM (#1061)

* fixed incorrect crusader influence type request param; changed file encodings to utf-8 bom

* updated data files, notes
  • Loading branch information
Eruyome committed Dec 16, 2019
1 parent cfcf89e commit a300320
Show file tree
Hide file tree
Showing 26 changed files with 38 additions and 32 deletions.
2 changes: 1 addition & 1 deletion Run_TradeMacro.ahk
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
; #####################################################################################################################
; #####################################################################################################################
; # This script checks if the right AHK version is installed and runs the TradeMacro merge script.
; #####################################################################################################################
#SingleInstance, Force
Expand Down
2 changes: 1 addition & 1 deletion data_trade/currency_tags.json

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion data_trade/uniques.json

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion lib/AssociatedProgram.ahk
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
;-- Function: AssociatedProgram
;-- Function: AssociatedProgram
;-- Description: Returns the full path of the program (if any) associated to
; a file extension (p_FileExt).
;-- Original author: TheGood
Expand Down
2 changes: 1 addition & 1 deletion lib/Class_AdvancedToolTipGui.ahk
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
; AutoHotkey
; AutoHotkey
; Language: English
; Authors: Eruyome | https://github.com/eruyome
;
Expand Down
2 changes: 1 addition & 1 deletion lib/Class_ColorPicker.ahk
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
; AutoHotkey Version: 1.1.12.00
; AutoHotkey Version: 1.1.12.00
; Language: English
; Dev Platform: Windows 7 Home Premium x64
; Original Author: Joe DF | http://joedf.co.nr | joedf@users.sourceforge.net
Expand Down
2 changes: 1 addition & 1 deletion lib/Class_Console.ahk
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
/*
/*
Name: [Class] Console
Version: 1.8 (Tue March 11, 2014)
Created: Tue February 11, 2014
Expand Down
2 changes: 1 addition & 1 deletion lib/Class_GdipTooltip.ahk
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
; AutoHotkey
; AutoHotkey
; Language: English
; Authors: esunder | https://github.com/esunder
; Eruyome | https://github.com/eruyome
Expand Down
2 changes: 1 addition & 1 deletion lib/DebugPrintArray.ahk
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
DebugPrintArray(Array, Display=1, Level=0, guiWidth=800, guiHeight=900)
DebugPrintArray(Array, Display=1, Level=0, guiWidth=800, guiHeight=900)
{
Global DebugPrintArray

Expand Down
2 changes: 1 addition & 1 deletion lib/EasyIni.ahk
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
; #############################################################################################################
; #############################################################################################################
; # Verdlin's INI library
; # Original thread: https://autohotkey.com/board/topic/91578-class-easyini-native-syntax-inisectionkey-val-formatting-retained/
; # Original source code: https://github.com/Aatoz/AutoHotKey/blob/master/Lib/class_EasyIni.ahk
Expand Down
2 changes: 1 addition & 1 deletion lib/Gdip2.ahk
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
class Gdip
class Gdip
{
__New()
{
Expand Down
2 changes: 1 addition & 1 deletion lib/IEComObjectTestCall.ahk
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#SingleInstance, force
#SingleInstance, force

userFolderPath = %1%

Expand Down
2 changes: 1 addition & 1 deletion lib/JSON.ahk
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
/**
/**
* Lib: JSON.ahk
* JSON lib for AutoHotkey.
* Version:
Expand Down
2 changes: 1 addition & 1 deletion lib/PoEScripts_DownloadLanguageFiles.ahk
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
PoEScripts_DownloadLanguageFiles(ByRef currentLocale, dlAll = false, SplashTitle = "", SplashText = "", onlyParseFiles = false) {
PoEScripts_DownloadLanguageFiles(ByRef currentLocale, dlAll = false, SplashTitle = "", SplashText = "", onlyParseFiles = false) {
; onlyParseFiles = skip downloading anything for development purposes (if the data files exist).
currentLocale := PoEScripts_GetClientLanguage()
If (currentLocale = "en" or not currentLocale) {
Expand Down
2 changes: 1 addition & 1 deletion lib/_Struct.ahk
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
;: Title: _Struct by HotKeyIt
;: Title: _Struct by HotKeyIt
;

; Function: _Struct
Expand Down
2 changes: 1 addition & 1 deletion lib/sizeof.ahk
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
;: Title: sizeof function by HotKeyIt
;: Title: sizeof function by HotKeyIt
;

; Function: sizeof
Expand Down
2 changes: 1 addition & 1 deletion lib/tooltip.ahk
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@


Gosub, Example1 ;Simple ToolTip

Gosub, Example2 ;Links in ToolTip
Expand Down
2 changes: 1 addition & 1 deletion resources/AUTHORS.txt
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
mcpower
mcpower
Immo
olop4444
Aeons
Expand Down
2 changes: 1 addition & 1 deletion resources/AUTHORS_Trade.txt
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
Eruyome
Eruyome
thirdy
mktums
jn64
Expand Down
2 changes: 1 addition & 1 deletion resources/Updates.txt
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
The following is a list of what has been updated, starting with 1.9.3.
The following is a list of what has been updated, starting with 1.9.3.
Current Script Caretaker: aRTy (GitHub/PoE Account: aRTy42, Reddit: -aRTy-)

3.5.00
Expand Down
8 changes: 7 additions & 1 deletion resources/Updates_Trade.txt
Original file line number Diff line number Diff line change
@@ -1,4 +1,10 @@
The following is a list of what has been updated, starting with 1.1.0
The following is a list of what has been updated, starting with 1.1.0

2.15.6
================================================================================================
* Fixed incorrect request parameter for the Crusader influence on items.
* Converted all files to UTF-8 BOM to improve support for korean characters.
* Updated data files (uniques etc).

2.15.5
================================================================================================
Expand Down
2 changes: 1 addition & 1 deletion resources/Version.txt
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
ReleaseVersion := "3.5.00"
ReleaseVersion := "3.5.00"
AHKVersionRequired := "1.1.26"
2 changes: 1 addition & 1 deletion resources/VersionTrade.txt
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
TradeReleaseVersion := "v2.15.5"
TradeReleaseVersion := "v2.15.6"
TradeAHKVersionRequired := "1.1.26.00"
2 changes: 1 addition & 1 deletion resources/ahk/AdditionalMacros.ahk
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
;###########----------------------- Additional Macros -------------------------###########
;###########----------------------- Additional Macros -------------------------###########
;# Use AdditionaMacros.ini in the user folder to enable/disable hotkeys and set a key #
;# combination. #
;# #
Expand Down
14 changes: 7 additions & 7 deletions resources/ahk/TradeMacro.ahk
Original file line number Diff line number Diff line change
Expand Up @@ -646,7 +646,7 @@ TradeFunc_Main(openSearchInBrowser = false, isAdvancedPriceCheck = false, isAdva
}
}

; special bases (elder/shaper/fractured/synthesised/redeemer/hunter/conquerer/warlord)
; special bases (elder/shaper/fractured/synthesised/redeemer/hunter/crusader/warlord)
If (Item.HasInfluence.length() or Item.isFracturedBase or Item.isSynthesisedBase) {
If (Item.HasInfluence.length()) {
Item.UsedInSearch.specialBase := ""
Expand Down Expand Up @@ -802,7 +802,7 @@ TradeFunc_Main(openSearchInBrowser = false, isAdvancedPriceCheck = false, isAdva
RequestParams.corrupted := "0"
}

; special bases (elder/shaper/synthesised/fractured/conquerer/warlord/redeemer/hunter)
; special bases (elder/shaper/synthesised/fractured/crusader/warlord/redeemer/hunter)
If (s.useSpecialBase) {
If (Item.HasInfluence.length()) {
For key, val in Item.HasInfluence {
Expand All @@ -818,7 +818,7 @@ TradeFunc_Main(openSearchInBrowser = false, isAdvancedPriceCheck = false, isAdva
} Else {
RequestParams.Shaper := ""
RequestParams.Elder := ""
RequestParams.Conquerer := ""
RequestParams.crusader := ""
RequestParams.Warlord := ""
RequestParams.Redeemer := ""
RequestParams.Hunter := ""
Expand Down Expand Up @@ -969,7 +969,7 @@ TradeFunc_Main(openSearchInBrowser = false, isAdvancedPriceCheck = false, isAdva
If (isAdvancedPriceCheckRedirect and not TradeGlobals.Get("AdvancedPriceCheckItem").useSpecialBase) {
RequestParams.Shaper := ""
RequestParams.Elder := ""
RequestParams.Conquerer := ""
RequestParams.crusader := ""
RequestParams.Warlord := ""
RequestParams.Redeemer := ""
RequestParams.Hunter := ""
Expand Down Expand Up @@ -3487,7 +3487,7 @@ class RequestParams_ {
shaper := ""
elder := ""
hunter := "" ; check todo
conquerer := "" ; check
crusader := "" ; check
redeemer := "" ; check
warlord := "" ; check
synthesised := ""
Expand Down Expand Up @@ -3881,7 +3881,7 @@ TradeFunc_GetItemsPoeTradeMods(_item, isMap = false) {
_item.mods[k]["param"] := TradeFunc_FindInModGroup(mods["hunter"], _item.mods[k])
}
If (StrLen(_item.mods[k]["param"]) < 1 and not isMap) {
_item.mods[k]["param"] := TradeFunc_FindInModGroup(mods["conquerer"], _item.mods[k])
_item.mods[k]["param"] := TradeFunc_FindInModGroup(mods["crusader"], _item.mods[k])
}
If (StrLen(_item.mods[k]["param"]) < 1 and not isMap) {
_item.mods[k]["param"] := TradeFunc_FindInModGroup(mods["redeemer"], _item.mods[k])
Expand Down Expand Up @@ -5181,7 +5181,7 @@ TradeFunc_AdvancedPriceCheckGui(advItem, Stats, Sockets, Links, UniqueStats = ""
iLvlValue := ""
If (advItem.specialBase or advItem.IsBeast) {
iLvlCheckState := TradeOpts.AdvancedSearchCheckILVL ? "Checked" : ""
iLvlValue := advItem.iLvl ; use itemlevel to fill the box in any case (elder/shaper/conquerer/redeemer/hunter/warlord)
iLvlValue := advItem.iLvl ; use itemlevel to fill the box in any case (elder/shaper/crusader/redeemer/hunter/warlord)
}
Else If (TradeOpts.AdvancedSearchCheckILVL) {
iLvlCheckState := "Checked"
Expand Down
2 changes: 1 addition & 1 deletion resources/ahk/jsonData.ahk
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
; Can't get JSON load working inside any Function/Class or in TradeMacroInit
; Can't get JSON load working inside any Function/Class or in TradeMacroInit
; Works here, though.
; Data is available via global variables
; json scraped with https://github.com/Eruyome/scrapeVariableUniqueItems/
Expand Down

0 comments on commit a300320

Please sign in to comment.