Crossfire Server, Trunk
shopitems Struct Reference

#include <map.h>

+ Collaboration diagram for shopitems:

Data Fields

int index
 
const char * name
 
const char * name_pl
 
int8_t strength
 
int typenum
 

Detailed Description

Shop-related information for a map. This is one item type the shop will deal in, and the price-chance.

Definition at line 293 of file map.h.

Field Documentation

◆ index

int shopitems::index

Being the size of the shopitems array.

Definition at line 299 of file map.h.

Referenced by include_map_in_map(), parse_shop_string(), and shop_specialisation_ratio().

◆ name

const char* shopitems::name

Name of the item in question, null if it is the default item.

Definition at line 294 of file map.h.

Referenced by parse_shop_string().

◆ name_pl

const char* shopitems::name_pl

Plural name.

Definition at line 295 of file map.h.

Referenced by parse_shop_string().

◆ strength

int8_t shopitems::strength

The degree of specialisation the shop has in this item, as a percentage from -100 to 100.

Definition at line 297 of file map.h.

Referenced by parse_shop_string(), and shop_specialisation_ratio().

◆ typenum

int shopitems::typenum

Itemtype number we need to match, -1 if it is the default price.

Definition at line 296 of file map.h.

Referenced by parse_shop_string(), and shop_specialisation_ratio().


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