Unit item_lookup

Classes, Interfaces, Objects and Records
Types
Variables

Description

Lookup table for items, based on the environment

Uses

Overview

Functions and Procedures

procedure dispenseItem(dungeon: dungeonTerrain);
procedure lookupUse(x: smallint; equipped: boolean; id: smallint);
procedure dropFirstItem;

Constants

caveItems1: array[1..8] of string = ('aleTankard', 'clothArmour1', 'wineFlask', 'basicClub', 'rock', 'pointyStick', 'arrow', 'gold');
caveItems2: array[1..7] of string = ('aleTankard', 'aleTankard', 'crudeDagger', 'leatherArmour1', 'rock', 'arrow', 'shortBow');
caveItems3: array[1..6] of string = ('gold', 'crudeDagger', 'aleTankard', 'leatherArmour1', 'wineFlask', 'arrow');
stoneCavernItems1: array[1..7] of string = ('aleTankard', 'leatherArmour1', 'wineFlask', 'basicClub', 'rock', 'arrow', 'gold');
stoneCavernItems2: array[1..6] of string = ('aleTankard', 'crudeDagger', 'leatherArmour1', 'rock', 'arrow', 'shortBow');
stoneCavernItems3: array[1..6] of string = ('gold', 'crudeDagger', 'aleTankard', 'leatherArmour1', 'wineFlask', 'arrow');
cptItems1: array[1..6] of string = ('aleTankard', 'stickyWeb', 'wineFlask', 'arrow', 'dimPixieJar', 'gold');
cptItems2: array[1..8] of string = ('rock', 'aleTankard', 'crudeDagger', 'staffBewilder', 'gold', 'dimPixieJar', 'arrow', 'shortBow');
cptItems3: array[1..7] of string = ('aleTankard', 'staffVampire', 'aleTankard', 'rock', 'wineFlask', 'arrow', 'gold');
dgnItems1: array[1..5] of string = ('aleTankard', 'stickyWeb', 'wineFlask', 'arrow', 'dimPixieJar');
dgnItems2: array[1..8] of string = ('aleTankard', 'aleTankard', 'crudeDagger', 'leatherArmour1', 'dimPixieJar', 'arrow', 'shortBow', 'gold');
dgnItems3: array[1..7] of string = ('aleTankard', 'crudeDagger', 'aleTankard', 'staffBewilder', 'wineFlask', 'arrow', 'gold');

Description

Functions and Procedures

procedure dispenseItem(dungeon: dungeonTerrain);

Choose an item and call the generate code directly

procedure lookupUse(x: smallint; equipped: boolean; id: smallint);

Execute useItem procedure

procedure dropFirstItem;

Used to drop a specific special item on each level

Constants

caveItems1: array[1..8] of string = ('aleTankard', 'clothArmour1', 'wineFlask', 'basicClub', 'rock', 'pointyStick', 'arrow', 'gold');

Array of items found in a cave, ordered by cave level

caveItems2: array[1..7] of string = ('aleTankard', 'aleTankard', 'crudeDagger', 'leatherArmour1', 'rock', 'arrow', 'shortBow');
 
caveItems3: array[1..6] of string = ('gold', 'crudeDagger', 'aleTankard', 'leatherArmour1', 'wineFlask', 'arrow');
 
stoneCavernItems1: array[1..7] of string = ('aleTankard', 'leatherArmour1', 'wineFlask', 'basicClub', 'rock', 'arrow', 'gold');

Array of items found in a stone cavern, ordered by cave level

stoneCavernItems2: array[1..6] of string = ('aleTankard', 'crudeDagger', 'leatherArmour1', 'rock', 'arrow', 'shortBow');
 
stoneCavernItems3: array[1..6] of string = ('gold', 'crudeDagger', 'aleTankard', 'leatherArmour1', 'wineFlask', 'arrow');
 
cptItems1: array[1..6] of string = ('aleTankard', 'stickyWeb', 'wineFlask', 'arrow', 'dimPixieJar', 'gold');

Array of items found in a crypt, ordered by dungeon level

cptItems2: array[1..8] of string = ('rock', 'aleTankard', 'crudeDagger', 'staffBewilder', 'gold', 'dimPixieJar', 'arrow', 'shortBow');
 
cptItems3: array[1..7] of string = ('aleTankard', 'staffVampire', 'aleTankard', 'rock', 'wineFlask', 'arrow', 'gold');
 
dgnItems1: array[1..5] of string = ('aleTankard', 'stickyWeb', 'wineFlask', 'arrow', 'dimPixieJar');

Array of items found in a dungeon, ordered by dungeon level

dgnItems2: array[1..8] of string = ('aleTankard', 'aleTankard', 'crudeDagger', 'leatherArmour1', 'dimPixieJar', 'arrow', 'shortBow', 'gold');
 
dgnItems3: array[1..7] of string = ('aleTankard', 'crudeDagger', 'aleTankard', 'staffBewilder', 'wineFlask', 'arrow', 'gold');
 

Generated by PasDoc 0.16.0.