implement proper equip/unequip tracking

This commit is contained in:
Martin Michelsen
2023-11-15 12:47:14 -08:00
parent ac57fb16a4
commit be6fd25190
7 changed files with 140 additions and 67 deletions
+14 -1
View File
@@ -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);