diff options
| author | NopoTheGamer <40329022+NopoTheGamer@users.noreply.github.com> | 2022-07-16 20:57:12 +1000 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2022-07-16 12:57:12 +0200 |
| commit | e91d0907148e08352f3679324dc3e6460de1be38 (patch) | |
| tree | 425ba2fa651fbdfed0d4956e9e7fa9a36ad9819a /src/main/java/io/github/moulberry/notenoughupdates/profileviewer/PlayerStats.java | |
| parent | 28cc91aee8ec804d3b8b707d1b63a8a6ac9a603a (diff) | |
| download | notenoughupdates-e91d0907148e08352f3679324dc3e6460de1be38.tar.gz notenoughupdates-e91d0907148e08352f3679324dc3e6460de1be38.tar.bz2 notenoughupdates-e91d0907148e08352f3679324dc3e6460de1be38.zip | |
fixed magic power (#187)
* fixed magic power
* I feel like this is an important change
* fix location
* added support for trade money signs
Diffstat (limited to 'src/main/java/io/github/moulberry/notenoughupdates/profileviewer/PlayerStats.java')
| -rw-r--r-- | src/main/java/io/github/moulberry/notenoughupdates/profileviewer/PlayerStats.java | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/src/main/java/io/github/moulberry/notenoughupdates/profileviewer/PlayerStats.java b/src/main/java/io/github/moulberry/notenoughupdates/profileviewer/PlayerStats.java index 19668019..4ee1f208 100644 --- a/src/main/java/io/github/moulberry/notenoughupdates/profileviewer/PlayerStats.java +++ b/src/main/java/io/github/moulberry/notenoughupdates/profileviewer/PlayerStats.java @@ -742,6 +742,7 @@ public class PlayerStats { } NBTTagList loreTagList = tag.getCompoundTag("display").getTagList("Lore", 8); + String id = tag.getCompoundTag("ExtraAttributes").getString("id"); String lastElement = loreTagList.getStringTagAt(loreTagList.tagCount() - 1); //strip information that suggests the rarity has been upgraded (obfuscated char) @@ -751,6 +752,16 @@ public class PlayerStats { JsonArray lastElementJsonArray = new JsonArray(); lastElementJsonArray.add(new JsonPrimitive(lastElement)); + if (id.equals("HEGEMONY_ARTIFACT")) { + switch (Utils.getRarityFromLore(lastElementJsonArray)) { + case 4: + powderAmount += 16; + break; + case 5: + powderAmount += 22; + break; + } + } switch (Utils.getRarityFromLore(lastElementJsonArray)) { case 0: case 6: |
