Darklands alchemical formulae

Files with this format: "darkland.alc".

Contains descriptions, ingredients, and other values for alchemical formulae.

Table of Contents

Offsets

starting at 0x00

Structures

formula_definition
ingredient

Offsets

Offset: starting at 0x00

0x00: num_formulae: byte = 0x42
Number of formula definitions.
0x01: formula_definitions: array[ num_formulae ] of struct formula_definition (each size 0x68)
Formula definitions.

Structures

Structure: formula_definition

Size 0x68.

A definition of an alchemical formula.

0x00: description: string(80)
Text description of the formula.
  • The last character is always a null, as is any unused space
0x50: mystic_number: word
Mystic number (the base difficulty when mixing a new potion).
0x52: risk_factor: word
Risk factor (when mixing a new potion).
  • 0=low, 1=medium, 2=high.
0x54: ingredients: array[ 5 ] of struct ingredient (each size 4)
Ingredients required to mix a potion.
  • Ingredients are given in increasing item code value
  • If fewer than 5 ingredients are needed, the remaining space in the array is filled with zeroes.

Structure: ingredient

Size 4.

An ingredient (and quantity) for an alchemical formula.

0x00: quantity: word
The amount of this ingredient needed.
  • Ranges from 1-5.
0x02: item_code: word
The item code of the ingredient.