diff --git a/src/trait.cc b/src/trait.cc index d833315..c9bbf06 100644 --- a/src/trait.cc +++ b/src/trait.cc @@ -1,6 +1,7 @@ #include "trait.h" #include "game.h" +#include "message.h" #include "object.h" #include "platform_compat.h" #include "skill.h" @@ -8,16 +9,31 @@ #include +// Provides metadata about traits. +typedef struct TraitDescription { + // The name of trait. + char* name; + + // The description of trait. + // + // The description is only used in character editor to inform player about + // effects of this trait. + char* description; + + // Identifier of art in [intrface.lst]. + int frmId; +} TraitDescription; + // 0x66BE38 -MessageList gTraitsMessageList; +static MessageList gTraitsMessageList; // List of selected traits. // // 0x66BE40 -int gSelectedTraits[TRAITS_MAX_SELECTED_COUNT]; +static int gSelectedTraits[TRAITS_MAX_SELECTED_COUNT]; // 0x51DB84 -TraitDescription gTraitDescriptions[TRAIT_COUNT] = { +static TraitDescription gTraitDescriptions[TRAIT_COUNT] = { { NULL, NULL, 55 }, { NULL, NULL, 56 }, { NULL, NULL, 57 }, diff --git a/src/trait.h b/src/trait.h index f2cf382..ee3fd2f 100644 --- a/src/trait.h +++ b/src/trait.h @@ -2,28 +2,8 @@ #define TRAIT_H #include "db.h" -#include "message.h" #include "trait_defs.h" -// Provides metadata about traits. -typedef struct TraitDescription { - // The name of trait. - char* name; - - // The description of trait. - // - // The description is only used in character editor to inform player about - // effects of this trait. - char* description; - - // Identifier of art in [intrface.lst]. - int frmId; -} TraitDescription; - -extern MessageList gTraitsMessageList; -extern int gSelectedTraits[TRAITS_MAX_SELECTED_COUNT]; -extern TraitDescription gTraitDescriptions[TRAIT_COUNT]; - int traitsInit(); void traitsReset(); void traitsExit();