Méthode | Description | |
---|---|---|
CreateItem ( List |
||
CreateItem ( int internalID ) : |
||
CreateItem ( int itemID, string name, string description, string graphic, int value, bool equippable, int armourRating, int damageRating, string damageType, string category, string equippableLocation, int woundPotential, int stunAmount, bool stackable, int effect, int effectPower, bool isRanged ) : |
||
FillTreasureChest ( InventoryCategory categories, int spendValue ) : List |
Fills a treasure chest as follows: 1. Pick a random category. Produce an item of that category costing between 1/5 and 3/3 of the remaining value 2. Repeat 1 for 6 more times 3. Done
|
|
GetBestCanAfford ( string tag, int maximum ) : |
Returns the most expensive item of that particular tag which still costs less or equal to the maximum
|
|
GetItemWithinPriceRange ( string category, int minimum, int maximum ) : |
Creates an item with an optional category costing between a minimum and maximum price
|
|
GetItemsWithAMaxValue ( string category, int maximum ) : List |
Creates a number of items having a total maximum value (or as close as possible to) the assigned value.
|
public CreateItem ( List |
||
parameters | List |
|
Résultat |
public CreateItem ( int internalID ) : |
||
internalID | int | |
Résultat |
public CreateItem ( int itemID, string name, string description, string graphic, int value, bool equippable, int armourRating, int damageRating, string damageType, string category, string equippableLocation, int woundPotential, int stunAmount, bool stackable, int effect, int effectPower, bool isRanged ) : |
||
itemID | int | |
name | string | |
description | string | |
graphic | string | |
value | int | |
equippable | bool | |
armourRating | int | |
damageRating | int | |
damageType | string | |
category | string | |
equippableLocation | string | |
woundPotential | int | |
stunAmount | int | |
stackable | bool | |
effect | int | |
effectPower | int | |
isRanged | bool | |
Résultat |
public FillTreasureChest ( InventoryCategory categories, int spendValue ) : List |
||
categories | InventoryCategory | |
spendValue | int | |
Résultat | List |
public GetBestCanAfford ( string tag, int maximum ) : |
||
tag | string | |
maximum | int | |
Résultat |
public GetItemWithinPriceRange ( string category, int minimum, int maximum ) : |
||
category | string | |
minimum | int | |
maximum | int | |
Résultat |
public GetItemsWithAMaxValue ( string category, int maximum ) : List |
||
category | string | |
maximum | int | |
Résultat | List |