Object Class and set_item_quality

NOTICE: This forum is archived as read only.
Please use the Github Discussions at https://github.com/exult/exult/discussions
Forum rules
NOTICE: This forum is archived as read only.
Please use the Github Discussions at https://github.com/exult/exult/discussions
Locked
Knight Captain
Posts: 1219
Joined: Thu May 14, 2020 1:34 pm

Object Class and set_item_quality

Post by Knight Captain »

A year and a half ago I wrote new code for the alchemist burner, to allow both the red and blue burners to go on/off to the correct color. The code uses get_item_quality and set_item_quality to keep track.

The Usecode documentation may have a mistake. It says that UI_set_item_quality will return a boolean (0|1) rather than the specific value. This doesn't appear to be the case. UI_get_item_quality returns an integer.

To get the new code to work, I had to change the Shape's Object Class in Exult Studio. Originally it was set to "Quality Flags" which did not work for this, but changing that class to just "Quality" allows the same code to work as expected.

Is this behavior a bug?
And should the documentation be changed?
Dominus
Site Admin
Posts: 5656
Joined: Thu May 14, 2020 1:34 pm

Re: Object Class and set_item_quality

Post by Dominus »

Please file a bug report.
--
Read the documentation and the FAQ! There is no excuse for not reading them! RTFM
Read the Rules!
We do not support Piracy/Abandonware/Warez!
Locked