Total-RP / Total-RP-3-Extended

Extended module for the Total RP 3 add-on for World of Warcraft, adding creation tools.
http://extended.totalrp.com
11 stars 13 forks source link

Parse variables when responding to an inspection request #158

Closed Solanya closed 4 years ago

Solanya commented 4 years ago

When receiving an inspection request, the item info sent to the inspector is the raw database info. This means variables in item info will be parsed on reception without values to match, only showing variable names or default values.

As inspection data is not saved in the database, we can parse the variables before sending them to the inspector, which will show the same item info as the player he inspects would see. Table copy is required as to not modify the database content.

The fields we parse match the "Item info" fields listed here: https://github.com/Total-RP/Total-RP-3-Extended/wiki/Variable-tags#item