Atrinik Server 2.5
Data Fields
treasurestruct Struct Reference

#include <treasure.h>

Data Fields

struct archtitem
const char * name
struct treasurestructnext
struct treasurestructnext_yes
struct treasurestructnext_no
int t_style
int magic_chance
int magic_fix
int artifact_chance
int magic
int difficulty
uint16 nrof
sint16 chance_fix
uint8 chance
struct _change_arch change_arch

Detailed Description

Treasure is one element in a linked list, which together consists of a complete treasurelist.

Any arch can point to a treasurelist to get generated standard treasure when an archetype of that type is generated.

Definition at line 103 of file treasure.h.


Field Documentation

Chance to generate artifact from this.

Possible values of artifact chance:

  • -1: Ignore this value (default)
  • 0: NEVER make an artifact for this treasure.
  • 1 - 100: % chance of making an artifact from this treasure.

Definition at line 142 of file treasure.h.

Percent chance for this item

Definition at line 159 of file treasure.h.

Will overrule chance: if set (not -1) it will create 1 / chance_single

Definition at line 156 of file treasure.h.

Override default arch values if set in treasure list

Definition at line 162 of file treasure.h.

If the entry is a list transition, it contains the difficulty required to go to the new list

Definition at line 150 of file treasure.h.

Which item this link can be

Definition at line 106 of file treasure.h.

Max magic bonus to item

Definition at line 145 of file treasure.h.

Value from 0 - 1000. Chance of item is magic.

Definition at line 126 of file treasure.h.

If this value is not 0, use this as fixed magic value. if it 0, look at magic to generate perhaps a random magic value

Definition at line 131 of file treasure.h.

const char* treasurestruct::name

If not NULL, name of list to use instead

Definition at line 109 of file treasure.h.

Next treasure item in a linked list

Definition at line 112 of file treasure.h.

If this item was not generated, then continue here

Definition at line 118 of file treasure.h.

If this item was generated, use this link instead of ->next

Definition at line 115 of file treasure.h.

Random 1 to nrof items are generated

Definition at line 153 of file treasure.h.

Local t_style (will overrule global one) - used from artifacts.

See also:
Treasure style

Definition at line 123 of file treasure.h.


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