UCC Reference

UI_set_item_quality

bool UI_set_item_quality(object obj, int qual)
bool obj->set_item_quality(int qual)

Sets the quality of the desired object.

Parameters

Parameter / value Description
obj The object whose quality is to be changed.
qual The desired value for the quality. Quality is unchanged if qual == QUALITY_ANY.

Return

Returns true if the object has a quality or if qual == QUALITY_ANY, false otherwise.

Related intrinsics

Full intrinsic reference | Reference definitions