bottledata#

Variables#

int[]

Counter

int[]

Amount

bool[]

IsPercent

bool[]

Flags

int

NextType

Functions#

void

GetName(char32[] str)

void

SetName(char32[] str)

Enumerations#

enum BottleFlag: 🔗 Source

BottleFlag BTF_REVIVE = 0

BottleFlag BTF_USEWHENFULL = 1

BottleFlag BTF_CURESWORDJINX = 2

BottleFlag BTF_CUREITEMJINX = 3

BottleFlag BTF_CURESHIELDJINX = 4

Added in version 3.0.

BottleFlag BTF_MAX = 5


Variable descriptions#

int[] Counter 🔗 Source

length 3

index CounterIndex (CR_)

The refill counters of this bottle type.


int[] Amount 🔗 Source

length 3

index CounterIndex (CR_)

The amount to refill each counter (0-65535)


bool[] IsPercent 🔗 Source

length 3

index CounterIndex (CR_)

Whether the given counter refill is a percentage of max, instead of a direct value.


bool[] Flags 🔗 Source


int NextType 🔗 Source

What bottle type will remain in the bottle after drinking the current type.


Function descriptions#

void GetName(char32[] str) 🔗 Source

Changed in version 2.55.17: The buffer is now resized to fit if it is too small (it used to be truncated, with an error).

Loads the name of the bottledata into the provided string buffer.

If the buffer is too small, it is resized to fit.


void SetName(char32[] str) 🔗 Source

Sets the name of the bottledata to the provided string.