Go to the documentation of this file.
20 :
AssetTWrapper(parent,
"Artifact", art), myResourcesManager(resourcesManager), mySpecificItem(nullptr)
29 name = tr(
"%1 (%2%, %3 chances on %4)")
31 .arg(qRound(100. * n / d))
36 if (
list &&
list->total_chance != 0) {
37 name = tr(
"%1 (%2%, %3 chances on %4)")
41 .arg(
list->total_chance);
83 auto face =
dynamic_cast<const FaceWrapper *
>(asset);
virtual QIcon displayIcon() const override
ArchetypeWrapper * wrap(archetype *arch, AssetWrapper *parent)
static QIcon getIcon(uint16_t faceNumber)
std::vector< sstring > allowed
virtual PossibleUse uses(const AssetWrapper *asset, std::string &) const override
ArtifactWrapper(AssetWrapper *parent, artifact *art, ResourcesManager *resourcesManager)
const Animations * animation
void artifact_compute_chance_for_item(const object *op, const artifact *art, int *numerator, int *denominator)
const object * mySpecificItem
uint16_t artifact_get_face(const artifact *art)
ResourcesManager * myResourcesManager
void markModified(ChangeType change, int extra=0)
virtual QString displayName() const override
void setChance(int chance)
artifactlist * find_artifactlist(int type)