Crossfire Server  1.75.0
artifact Struct Reference

This is one artifact, ie one special item. More...

#include <artifact.h>

Data Fields

std::vector< sstringallowed
 List of archetypes the artifact can affect. More...
 
uint16_t chance
 Chance of the artifact to happen. More...
 
uint8_t difficulty
 Minimum map difficulty for the artifact to happen. More...
 
objectitem
 Special values of the artifact. More...
 

Detailed Description

This is one artifact, ie one special item.

Definition at line 14 of file artifact.h.

Field Documentation

◆ allowed

std::vector<sstring> artifact::allowed

List of archetypes the artifact can affect.

Definition at line 18 of file artifact.h.

Referenced by artifact_describe(), artifact_get_face(), free_artifact(), legal_artifact_combination(), ArtifactLoader::load(), and ArtifactWriter::write().

◆ chance

uint16_t artifact::chance

◆ difficulty

uint8_t artifact::difficulty

Minimum map difficulty for the artifact to happen.

Definition at line 17 of file artifact.h.

Referenced by get_empty_artifact(), ArtifactLoader::load(), and ArtifactWriter::write().

◆ item


The documentation for this struct was generated from the following file: