Crossfire Server, Branch 1.12  R12190
Data Fields
shopitem Struct Reference

Shop-related information for a map. More...

#include <map.h>

Data Fields

int index
 Being the size of the shopitems array.
const char * name
 Name of the item in question, null if it is the default item.
const char * name_pl
 Plural name.
sint8 strength
 The degree of specialisation the shop has in this item, as a percentage from -100 to 100.
int typenum
 Itemtype number we need to match, 0 if it is the default price.

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 324 of file map.h.


Field Documentation

Being the size of the shopitems array.

Definition at line 330 of file map.h.

Referenced by describe_shop(), parse_shop_string(), print_shop_string(), and shop_specialisation_ratio().

const char* shopitem::name

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

Definition at line 325 of file map.h.

Referenced by describe_shop(), parse_shop_string(), and print_shop_string().

const char* shopitem::name_pl

Plural name.

Definition at line 326 of file map.h.

Referenced by describe_shop(), and parse_shop_string().

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

Definition at line 328 of file map.h.

Referenced by describe_shop(), parse_shop_string(), print_shop_string(), and shop_specialisation_ratio().

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

Definition at line 327 of file map.h.

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


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