24 for (
const auto allowed : item->
allowed) {
uint8_t anim_speed
Ticks between animation-frames.
void stringbuffer_append_printf(StringBuffer *sb, const char *format,...)
Append a formatted string to a string buffer instance.
uint8_t difficulty
Minimum map difficulty for the artifact to happen.
void stringbuffer_append_string(StringBuffer *sb, const char *str)
Append a string to a string buffer instance.
sstring name
The name of the object, obviously...
archetype * empty_archetype
Nice to have fast access to it.
void get_ob_diff(StringBuffer *sb, const object *op, const object *op2)
Returns a pointer to a static string which contains all variables which are different in the two give...
object * inv
Pointer to the first object in the inventory.
virtual void write(const artifact *item, StringBuffer *buf)
Write the specified asset to the StringBuffer.
A buffer that will be expanded as content is added to it.
This is one artifact, ie one special item.
object clone
An object from which to do object_copy()
object * item
Special values of the artifact.
uint16_t chance
Chance of the artifact to happen.
std::vector< sstring > allowed
List of archetypes the artifact can affect.