Crossfire Server, Trunk  1.75.0
artifact.h
Go to the documentation of this file.
1 
8 #ifndef ARTIFACT_H
9 #define ARTIFACT_H
10 
14 struct artifact {
15  object *item;
16  uint16_t chance;
17  uint8_t difficulty;
18  std::vector<sstring> allowed;
19 };
20 
24 struct artifactlist {
25  uint8_t type;
26  uint16_t total_chance;
28  std::vector<artifact *> items;
29 };
30 
31 #endif /* ARTIFACT_H */
artifactlist::items
std::vector< artifact * > items
Artifacts for this type.
Definition: artifact.h:28
artifact::item
object * item
Special values of the artifact.
Definition: artifact.h:15
artifactlist::next
artifactlist * next
Next list of artifacts.
Definition: artifact.h:27
artifact::allowed
std::vector< sstring > allowed
List of archetypes the artifact can affect.
Definition: artifact.h:18
artifactlist
This represents all archetypes for one particular object type.
Definition: artifact.h:24
artifact::chance
uint16_t chance
Chance of the artifact to happen.
Definition: artifact.h:16
artifactlist::total_chance
uint16_t total_chance
Sum of chance for are artifacts on this list.
Definition: artifact.h:26
artifact::difficulty
uint8_t difficulty
Minimum map difficulty for the artifact to happen.
Definition: artifact.h:17
artifact
This is one artifact, ie one special item.
Definition: artifact.h:14
artifactlist::type
uint8_t type
Object type that this list represents.
Definition: artifact.h:25