V-Gears 0
Free Final Fantasy VII engine.
KernelDataInstaller::ItemData Struct Reference

Data for each items. More...

Collaboration diagram for KernelDataInstaller::ItemData:

Public Attributes

u32 unknown_0
 Unknown data (Always 0XFFFF). More...
 
u32 unknown_1
 Unknown data (Always 0XFFFF). More...
 
u16 camera
 Camera movement ID. More...
 
u16 restrict_raw
 Item restrictions. More...
 
u8 target_raw
 Targeting mode. More...
 
u8 effect
 Item effect ID. More...
 
u8 damage_raw
 Damage formula. More...
 
u8 power
 The item power. More...
 
u8 condition_raw
 The restore type. More...
 
u8 status_change_raw
 Information about status change mode and chance. More...
 
u8 additional_effects_raw
 Special flags. More...
 
u8 additional_effects_mod_raw
 Special flags. More...
 
u32 status_raw
 Information about what status can be inflicted or cured. More...
 
u16 element_raw
 Information about the item elements. More...
 
u16 special_raw
 Special flags. More...
 
int id
 Item ID. More...
 
std::string name
 Item name. More...
 
std::string description
 Item description. More...
 
bool sellable
 Indicates if the item can be sold. More...
 
bool useable_battle
 Indicates if the item can be used in battle. More...
 
bool useable_menu
 Indicates if the item can be used in the menu. More...
 
Target target
 Target selection mode. More...
 
u8 damage_formula
 The damage formula. More...
 
u8 damage_modifier
 The damage modifier. More...
 
RESTORE_TYPE restore_type
 What the item restores when used. More...
 
StatusEffect status
 Status effects. More...
 
std::vector< int > elements
 Elements of the item. More...
 

Detailed Description

Data for each items.

As found in KERNEL.BIN, file 4, in order, up to special. Members after special are not found literally in KERNEL.BIN, but are derived from other members or found in other files of the kernel (text files).

Member Data Documentation

◆ additional_effects_mod_raw

u8 KernelDataInstaller::ItemData::additional_effects_mod_raw

Special flags.

1 byte.

Todo:
Document and retrieve with info from https://wiki.ffrtt.ru/index.php?title=FF7/Item_data

◆ additional_effects_raw

u8 KernelDataInstaller::ItemData::additional_effects_raw

Special flags.

1 byte.

Todo:
Document and retrieve with info from https://wiki.ffrtt.ru/index.php?title=FF7/Battle/Attack_Special_Effects

◆ camera

u16 KernelDataInstaller::ItemData::camera

Camera movement ID.

2 bytes.

Used for items useable in battle, determines the camera movement.

◆ condition_raw

u8 KernelDataInstaller::ItemData::condition_raw

The restore type.

See {

See also
restore_type} and {
RESTORE_TYPE} for more information.

◆ damage_formula

u8 KernelDataInstaller::ItemData::damage_formula

The damage formula.

It's the upper nybble in {

See also
damage_raw}.

◆ damage_modifier

u8 KernelDataInstaller::ItemData::damage_modifier

The damage modifier.

It's the lower nybble in {

See also
damage_raw}.

◆ damage_raw

u8 KernelDataInstaller::ItemData::damage_raw

Damage formula.

1 byte.

This byte is divided into two nybbles (four bits). Upper nybble determines what considerations are made in calculating damage such as physical/magical, allowing criticals, how to calculate accuracy, etc. There are also three sets of known formulae that are paired with the upper nybble values. These are selected in the Lower Nybble and determine how to calculate pre-defense damage

◆ description

std::string KernelDataInstaller::ItemData::description

Item description.

Not found in the same file as the rest of the data, but on file 11.

◆ effect

u8 KernelDataInstaller::ItemData::effect

Item effect ID.

1 byte.

Used for animation in battle.

◆ element_raw

u16 KernelDataInstaller::ItemData::element_raw

Information about the item elements.

2 bytes.

◆ elements

std::vector<int> KernelDataInstaller::ItemData::elements

Elements of the item.

Derived from {

See also
element_raw}.

◆ id

int KernelDataInstaller::ItemData::id

Item ID.

Not actually in the item file data, it's the order at which it appears.

◆ name

std::string KernelDataInstaller::ItemData::name

Item name.

Not found in the same file as the rest of the data, but on file 19.

◆ power

u8 KernelDataInstaller::ItemData::power

The item power.

1 byte.

Used for damage/healing calculation.

◆ restore_type

RESTORE_TYPE KernelDataInstaller::ItemData::restore_type

What the item restores when used.

Same as {

See also
condition_raw}, except for the wrong cases.

◆ restrict_raw

u16 KernelDataInstaller::ItemData::restrict_raw

Item restrictions.

2 bytes.

Contains bits indicating if the item is {

See also
selleable}, {
useable_battle} and {
useable_menu}.

◆ sellable

bool KernelDataInstaller::ItemData::sellable

Indicates if the item can be sold.

True if the bit 0 in {

See also
restrict_raw} is 0.

◆ special_raw

u16 KernelDataInstaller::ItemData::special_raw

Special flags.

2 bytes.

Todo:
document and parse with info from https://wiki.ffrtt.ru/index.php?title=FF7/Battle/Special_Attack_Flags

◆ status

StatusEffect KernelDataInstaller::ItemData::status

Status effects.

Derived from {

See also
status_change_raw} and {
status_raw}.

◆ status_change_raw

u8 KernelDataInstaller::ItemData::status_change_raw

Information about status change mode and chance.

1 bytes.

◆ status_raw

u32 KernelDataInstaller::ItemData::status_raw

Information about what status can be inflicted or cured.

4 bytes.

The first six bits are the chance of inflicting/curing (out of 63). If the seventh bit is set, the status is cured instead of inflicted. If the eighth bit is set, then the status is toggled (cured if present, inflicted if not present).

◆ target

Target KernelDataInstaller::ItemData::target

Target selection mode.

Derived from {

See also
target_raw}.

◆ target_raw

u8 KernelDataInstaller::ItemData::target_raw

Targeting mode.

1 byte.

See {

See also
target} and {
TargetModes} for more information.

◆ unknown_0

u32 KernelDataInstaller::ItemData::unknown_0

Unknown data (Always 0XFFFF).

4 bytes.

◆ unknown_1

u32 KernelDataInstaller::ItemData::unknown_1

Unknown data (Always 0XFFFF).

4 bytes.

◆ useable_battle

bool KernelDataInstaller::ItemData::useable_battle

Indicates if the item can be used in battle.

True if the bit 2 in {

See also
restrict_raw} is 0.

◆ useable_menu

bool KernelDataInstaller::ItemData::useable_menu

Indicates if the item can be used in the menu.

True if the bit 4 in {

See also
restrict_raw} is 0.

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