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

Data for each accessory. More...

Collaboration diagram for KernelDataInstaller::AccessoryData:

Public Attributes

u8 stat_raw [2]
 Stat the weapon raises. More...
 
u8 stat_bonus_raw [2]
 The amount the raised stats are raised by. More...
 
u8 element_defense_mode
 Elemental resistance mode. More...
 
u8 effect
 The special status effect the accesory induces. More...
 
u16 element_raw
 Elements the armor protects against. More...
 
u32 status_raw
 The status effect the armor protects against. More...
 
u16 equip_raw
 Characters that can equip the armor. More...
 
u16 restrict_raw
 Weapon restrictions. More...
 
int id
 Accessory ID. More...
 
std::string name
 Accessory name. More...
 
std::string description
 Accessory description. More...
 
bool sellable
 Indicates if the accessory can be sold. More...
 
bool useable_battle
 Indicates if the accessory can be used in battle. More...
 
bool useable_menu
 Indicates if the accessory can be used in the menu. More...
 
std::vector< u8equip
 The weapon battle model index. More...
 
std::vector< StatBonusstat_bonus
 Bonus in stats. More...
 
std::vector< int > elements
 Elements of the accesory. More...
 
std::vector< int > status
 Statuses the accessory protects against. More...
 

Detailed Description

Data for each accessory.

As found in KERNEL.BIN, file 7, in order, up to unknown_3. Members after unknown_3 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

◆ description

std::string KernelDataInstaller::AccessoryData::description

Accessory description.

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

◆ effect

u8 KernelDataInstaller::AccessoryData::effect

The special status effect the accesory induces.

0: Auto haste. 1: Auto berserk. 2: Curse. 3: Auto reflect. 4: Steal rate +. 5: Manipulate rate +. 6: Barrier + MBarrier. Other: Nothing.

◆ element_defense_mode

u8 KernelDataInstaller::AccessoryData::element_defense_mode

Elemental resistance mode.

1 byte.

For all elements in {

See also
element_raw}: If 0: Absorbs. If 1: Nullifies. If 2: Halves. If any other value: normal.

◆ element_raw

u16 KernelDataInstaller::AccessoryData::element_raw

Elements the armor protects against.

2 bytes.

The defense type is defined in {

See also
element_defense_mode}.

◆ elements

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

Elements of the accesory.

Derived from {

See also
element_raw}.

◆ equip

std::vector<u8> KernelDataInstaller::AccessoryData::equip

The weapon battle model index.

It's the lower nybble in {

See also
model_raw}.

◆ equip_raw

u16 KernelDataInstaller::AccessoryData::equip_raw

Characters that can equip the armor.

2 bytes.

Contains bits indicating the characters that can equip the armor {

See also
character} for more info.

◆ id

int KernelDataInstaller::AccessoryData::id

Accessory ID.

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

◆ name

std::string KernelDataInstaller::AccessoryData::name

Accessory name.

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

◆ restrict_raw

u16 KernelDataInstaller::AccessoryData::restrict_raw

Weapon restrictions.

2 bytes.

Contains bits indicating if the item is {

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

◆ sellable

bool KernelDataInstaller::AccessoryData::sellable

Indicates if the accessory can be sold.

True if the bit 0 in {

See also
restrict_raw} is 0.

◆ stat_bonus

std::vector<StatBonus> KernelDataInstaller::AccessoryData::stat_bonus

Bonus in stats.

Derived from {

See also
stat_raw} and {
stat_bonus_raw}.

◆ stat_bonus_raw

u8 KernelDataInstaller::AccessoryData::stat_bonus_raw[2]

The amount the raised stats are raised by.

{

See also
stat_bonus} for more info.

◆ stat_raw

u8 KernelDataInstaller::AccessoryData::stat_raw[2]

Stat the weapon raises.

{

See also
stat_bonus} for more info.

◆ status

std::vector<int> KernelDataInstaller::AccessoryData::status

Statuses the accessory protects against.

Derived from {

See also
status_raw}.

◆ status_raw

u32 KernelDataInstaller::AccessoryData::status_raw

The status effect the armor protects against.

4 bytes.

◆ useable_battle

bool KernelDataInstaller::AccessoryData::useable_battle

Indicates if the accessory can be used in battle.

True if the bit 2 in {

See also
restrict_raw} is 0.

◆ useable_menu

bool KernelDataInstaller::AccessoryData::useable_menu

Indicates if the accessory 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: