#pragma once

#include "system/object-type-definition.h"
#include "system/angband.h"

typedef struct object_kind object_kind;
typedef struct flavor_type {
    char *buf;
    object_type *o_ptr;
    BIT_FLAGS mode;
    concptr kindname;
    concptr basenm;
    concptr modstr;
    int power;
    int fire_rate;
    bool aware;
    bool known; // 鑑定 or *鑑定* 済.
    bool flavor;
    bool show_weapon;
    bool show_armour;
    concptr s;
    concptr s0;
    char *t;
    char p1; // const.
    char p2; // const.
    char b1; // const.
    char b2; // const.
    char c1; // const.
    char c2; // const.
    char tmp_val[MAX_NLEN + 160];
    char tmp_val2[MAX_NLEN + 10];
    char fake_insc_buf[30];
    BIT_FLAGS tr_flags[TR_FLAG_SIZE];
    object_type *bow_ptr;
    object_kind *k_ptr;
    object_kind *flavor_k_ptr;
    int avgdam;
} flavor_type;

flavor_type *initialize_flavor_type(flavor_type *flavor_ptr, char *buf, object_type *o_ptr, BIT_FLAGS mode);
char *object_desc_chr(char *t, char c);
char *object_desc_str(char *t, concptr s);
char *object_desc_num(char *t, uint n);
char *object_desc_int(char *t, int v);
char *get_ability_abbreviation(player_type *player_ptr, char *ptr, object_type *o_ptr, bool kanji, bool all);
void get_inscription(player_type *player_ptr, char *buff, object_type *o_ptr);

#ifdef JP
char *object_desc_count_japanese(char *t, object_type *o_ptr);
#endif
