DCDecomp
A decompilation of Dark Cloud for the PlayStation 2
Loading...
Searching...
No Matches
WEAPON_HAVE Struct Reference

#include <itemdata.hpp>

Public Attributes

s16 item_no
 
s16 level
 
s16 attack
 
s16 endurance
 
s16 speed
 
s16 magic
 
s16 durability
 
s16 unk_0E
 
float durability_f
 
s16 experience
 
s8 best_elem
 
s8 elem [5]
 
char vs_monster [10]
 
char unk_26 [2]
 
ATTACH_LIST attach [6]
 
s8 attach_kind [6]
 
s16 flags
 
s32 synthesis_count
 
char unk_F4 [4]
 

Detailed Description

One weapon as the player holds it.

Definition at line 686 of file itemdata.hpp.

Member Data Documentation

◆ item_no

s16 WEAPON_HAVE::item_no

Identifies the weapon.

Definition at line 687 of file itemdata.hpp.

◆ level

s16 WEAPON_HAVE::level

Weapon level, up to 99.

Definition at line 688 of file itemdata.hpp.

◆ attack

s16 WEAPON_HAVE::attack

Seeded from WEAPON_DATA::attack.

Definition at line 689 of file itemdata.hpp.

◆ endurance

s16 WEAPON_HAVE::endurance

Seeded from WEAPON_DATA::endurance.

Definition at line 690 of file itemdata.hpp.

◆ speed

s16 WEAPON_HAVE::speed

Seeded from WEAPON_DATA::speed.

Definition at line 691 of file itemdata.hpp.

◆ magic

s16 WEAPON_HAVE::magic

Seeded from WEAPON_DATA::magic.

Definition at line 692 of file itemdata.hpp.

◆ durability

s16 WEAPON_HAVE::durability

Seeded from WEAPON_DATA::durability.

Definition at line 693 of file itemdata.hpp.

◆ unk_0E

s16 WEAPON_HAVE::unk_0E

Definition at line 694 of file itemdata.hpp.

◆ durability_f

float WEAPON_HAVE::durability_f

The durability again, converted on the way in.

Definition at line 695 of file itemdata.hpp.

◆ experience

s16 WEAPON_HAVE::experience

Accumulated ABS toward the next weapon level.

Definition at line 696 of file itemdata.hpp.

◆ best_elem

s8 WEAPON_HAVE::best_elem

Indexes the largest entry of elem, or -1 for none.

Definition at line 697 of file itemdata.hpp.

◆ elem

s8 WEAPON_HAVE::elem[5]

AttachStat order: fire, ice, thunder, wind, holy.

Definition at line 698 of file itemdata.hpp.

◆ vs_monster

char WEAPON_HAVE::vs_monster[10]

Monster effectiveness, one byte per WEAPON_DATA entry.

Definition at line 699 of file itemdata.hpp.

◆ unk_26

char WEAPON_HAVE::unk_26[2]

Definition at line 700 of file itemdata.hpp.

◆ attach

ATTACH_LIST WEAPON_HAVE::attach[6]

One entry per hole the weapon data gives it.

Definition at line 701 of file itemdata.hpp.

◆ attach_kind

s8 WEAPON_HAVE::attach_kind[6]

Three while the matching hole's attachment is doubled.

Definition at line 702 of file itemdata.hpp.

◆ flags

s16 WEAPON_HAVE::flags

Bit 3 and bit 4 each scale the water-drain rate (CUserStatus::Step).

Definition at line 703 of file itemdata.hpp.

◆ synthesis_count

s32 WEAPON_HAVE::synthesis_count

Synthesis points the weapon has gathered over its level-ups, drawn as stars.

Definition at line 704 of file itemdata.hpp.

◆ unk_F4

char WEAPON_HAVE::unk_F4[4]

Definition at line 705 of file itemdata.hpp.