Crossfire Server, Trunk
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
Definition: artifact.h:28
artifact::item
object * item
Definition: artifact.h:15
artifactlist::next
artifactlist * next
Definition: artifact.h:27
artifact::allowed
std::vector< sstring > allowed
Definition: artifact.h:18
artifactlist
Definition: artifact.h:24
artifact::chance
uint16_t chance
Definition: artifact.h:16
artifactlist::total_chance
uint16_t total_chance
Definition: artifact.h:26
artifact::difficulty
uint8_t difficulty
Definition: artifact.h:17
artifact
Definition: artifact.h:14
artifactlist::type
uint8_t type
Definition: artifact.h:25