Adds reactions to the elements/:element_name endpoint.
reactions is an array containing objects. Each object is an reaction. An reaction contains name, elements and description keys.
The following keys are:
name - [string] Name of the reactions
elements - [array] List of names of elements that can create this reaction
description - [string] The description listed in Genshin Impact under Tutorials > Elements > {reaction name} (See attachments)
(If an reaction had multiple descriptions, an newline (\n) is added in between each description)
I tested these changes locally and everything seems to work and returned the new information correctly. However I was not sure whether I should have used keys for the elements field instead of their current names. Maybe a maintainer can look at that 😉
(Each element has both a name and a key)
Adds
reactions
to theelements/:element_name
endpoint.reactions
is an array containing objects. Each object is an reaction. An reaction containsname
,elements
anddescription
keys. The following keys are:name
- [string] Name of the reactionselements
- [array] List of names of elements that can create this reactiondescription
- [string] The description listed in Genshin Impact under Tutorials > Elements > {reaction name} (See attachments)(If an reaction had multiple descriptions, an newline (
\n
) is added in between each description)I tested these changes locally and everything seems to work and returned the new information correctly. However I was not sure whether I should have used keys for the
elements
field instead of their current names. Maybe a maintainer can look at that 😉 (Each element has both aname
and akey
)Source of descriptions: