Skip to content

Commit

Permalink
Corrected typeLine_ for items that are "hybrid"
Browse files Browse the repository at this point in the history
It seems that support gems that have more than one skill within it (e.g. Predator Support), it would currently interpret that secondary skill as the gem name. Should have it fixed now to pull a "hybrid.baseTypeName" field, if it should exist.

will tag this fix as v0.9.7
  • Loading branch information
testpushpleaseignore committed Dec 31, 2022
1 parent d6d98a4 commit 4149f73
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 6 deletions.
5 changes: 4 additions & 1 deletion src/item.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,10 @@ Item::Item(const rapidjson::Value& json, const ItemLocation& loc) :
if (json.HasMember("name") && json["name"].IsString())
name_ = fixup_name(json["name"].GetString());
if (json.HasMember("typeLine") && json["typeLine"].IsString())
typeLine_ = fixup_name(json["typeLine"].GetString());
if(json.HasMember("hybrid") && json["hybrid"].HasMember("baseTypeName") && json["hybrid"]["baseTypeName"].IsString())
typeLine_ = fixup_name(json["hybrid"]["baseTypeName"].GetString());
else
typeLine_ = fixup_name(json["typeLine"].GetString());
if (json.HasMember("baseType") && json["baseType"].IsString())
baseType_ = fixup_name(json["baseType"].GetString());

Expand Down
8 changes: 4 additions & 4 deletions src/version_defines.h
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,10 @@
//The program will look to this file in the GitHub repo, and compare it to
//the VER_CODE in the current installation. If the number in the version.txt
//file is greater than VER_CODE, then the updater will notify the user
#define VER_CODE 47
#define VER_STR "v0.9.6"
#define VER_FILEVERSION 0,9,0,6
#define VER_FILEVERSION_STR "0.9.0.6"
#define VER_CODE 48
#define VER_STR "v0.9.7"
#define VER_FILEVERSION 0,9,0,7
#define VER_FILEVERSION_STR "0.9.0.7"

#define VER_PRODUCTVERSION VER_FILEVERSION
#define VER_PRODUCTVERSION_STR VER_FILEVERSION_STR
Expand Down
2 changes: 1 addition & 1 deletion version.txt
Original file line number Diff line number Diff line change
@@ -1 +1 @@
47
48

0 comments on commit 4149f73

Please sign in to comment.