-
Notifications
You must be signed in to change notification settings - Fork 19
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fixing some misconceptions about achivement bit
- Loading branch information
1 parent
31db759
commit d874564
Showing
10 changed files
with
88 additions
and
55 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,13 +1,46 @@ | ||
--- | ||
name: Achievement Bitmask | ||
type: Fixed32 | ||
name: Achievement Bit Index | ||
type: Int32 | ||
applies_to: [Icon, Trail] | ||
xml_fields: ["AchievementBit"] | ||
protobuf_field: achievement_bit | ||
xml_fields: ["AchievementBit", "AchievementBitIndex"] | ||
protobuf_field: achievement_bit_index | ||
examples: ["0", "1", "2", "14"] | ||
--- | ||
A portion of an achievement that, if completed, will hide this marker. | ||
A portion of the achievement that will hide this marker if it is completed. | ||
|
||
This value corrisponds to an `index` of a "bit" of an achivment. For example we can look at the achivement "RGB" which has the id `2655`. | ||
|
||
[https://api.guildwars2.com/v2/achievements?ids=2655](https://api.guildwars2.com/v2/achievements?ids=2655) | ||
|
||
```json | ||
[ | ||
{ | ||
"id": 2655, | ||
"name": "RGB", | ||
"description": "", | ||
"requirement": "Obtain each pylon attunement once, and defeat the Vale Guardian.", | ||
"locked_text": "", | ||
"type": "Default", | ||
"flags": ["Permanent"], | ||
"bits": [ | ||
{"type": "Text", "text": "Red Attunement"}, | ||
{"type": "Text", "text": "Green Attunement"}, | ||
{"type": "Text", "text": "Blue Attunement"} | ||
], | ||
"tiers": [{"count": 3, "points": 1}] | ||
} | ||
] | ||
``` | ||
`Red Attunement` is the first one, so because we start with 0 it has the index **"0"** | ||
`Green Attunement` is the second, so it has the index **"1"** | ||
`Blue Attunement` is the third, so it has the index **"2"** | ||
|
||
If we wanted to hide this marker when "Green Attunment" had been completed we would set the Achievement Bit Index to `1` | ||
|
||
|
||
|
||
External Resources | ||
-------------------------------------------------------------------------------- | ||
* [https://gw2pathing.com/docs/marker-dev/attributes/achievement/](https://gw2pathing.com/docs/marker-dev/attributes/achievement/) | ||
|
||
Notes | ||
===== | ||
|
||
https://blishhud.com/docs/markers/attributes/achievement |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Binary file modified
BIN
-31 Bytes
(81%)
...converter/integration_tests/test_cases/achievement_bitmask_valid/output_proto/markers.bin
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
xml_converter/integration_tests/test_cases/achievement_id/output_proto/markers.bin
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters