implement proper equip/unequip tracking
This commit is contained in:
+14
-1
@@ -6,10 +6,21 @@
|
||||
#include "Text.hh"
|
||||
#include "Version.hh"
|
||||
|
||||
constexpr uint32_t MESETA_IDENTIFIER = 0x00040000;
|
||||
constexpr uint32_t MESETA_IDENTIFIER = 0x040000;
|
||||
|
||||
class ItemParameterTable;
|
||||
|
||||
enum class EquipSlot {
|
||||
MAG = 0x01,
|
||||
ARMOR = 0x02,
|
||||
SHIELD = 0x03,
|
||||
WEAPON = 0x06,
|
||||
UNIT_1 = 0x09,
|
||||
UNIT_2 = 0x0A,
|
||||
UNIT_3 = 0x0B,
|
||||
UNIT_4 = 0x0C,
|
||||
};
|
||||
|
||||
struct ItemMagStats {
|
||||
uint16_t iq;
|
||||
uint16_t synchro;
|
||||
@@ -152,6 +163,8 @@ struct ItemData { // 0x14 bytes
|
||||
bool has_bonuses() const;
|
||||
bool is_s_rank_weapon() const;
|
||||
|
||||
bool can_be_equipped_in_slot(EquipSlot slot) const;
|
||||
|
||||
bool empty() const;
|
||||
|
||||
static bool compare_for_sort(const ItemData& a, const ItemData& b);
|
||||
|
||||
Reference in New Issue
Block a user